/* ═══════════════════════════════════════════════════════
   OPENCLAW INSTALLER — style.css
   Color scheme: openclaw.ai (dark navy + orange accent)
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Core palette — from openclaw.ai */
  --bg:           #0a0c10;       /* deepest background */
  --bg-dark:      #0d0f16;       /* section dark */
  --bg-darker:    #07080d;       /* deepest sections */
  --bg-mid:       #141720;       /* slightly lifted surface */
  --surface:      #1a1d2e;       /* cards, inputs */
  --surface-2:    #21253a;       /* hover surfaces */
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(232,70,26,0.45);

  /* Accent */
  --orange:       #e8461a;       /* primary CTA / accent */
  --orange-dark:  #bf3512;
  --orange-glow:  rgba(232,70,26,0.18);

  /* Text */
  --text:         #e8e6e0;       /* primary text */
  --text-muted:   #7a7d8c;       /* secondary / labels */
  --text-dim:     #4a4d5c;       /* dimmed */

  /* Semantic */
  --green:        #28c840;
  --blue:         #64b5f6;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Bricolage Grotesque', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Shape */
  --radius:       6px;
  --radius-lg:    14px;
  --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ── SECTION BACKGROUNDS ── */
.section-dark   { background: var(--bg-dark); }
.section-darker { background: var(--bg-darker); }
.section-mid    { background: var(--bg-mid); }

/* ══════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10,12,16,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav-logo .lobster { font-size: 1.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--orange); }

.nav-cta {
  background: var(--orange) !important;
  color: white !important;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius);
  color: white;
}
.nav-cta:hover {
  background: var(--orange-dark) !important;
  box-shadow: 0 0 18px var(--orange-glow);
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero-wrap {
  background: var(--bg);
  /* subtle radial glow behind hero */
  background-image: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(232,70,26,0.06) 0%, transparent 70%);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 2.5rem 5rem;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content { max-width: 640px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(232,70,26,0.1);
  color: #f07050;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232,70,26,0.25);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}
.badge::before {
  content: '●';
  font-size: 0.45rem;
  color: var(--orange);
  animation: pulse 2s ease infinite;
}

@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.25; } }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
h1 em { font-style: italic; color: var(--orange); }

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--orange);
  color: white;
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--orange-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(232,70,26,0.06);
}

/* ── Terminal ── */
.hero-visual { animation: fadeUp 0.7s 0.15s ease both; }

.terminal {
  background: #0a0d14;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,70,26,0.1);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.terminal:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 30px var(--orange-glow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.terminal-title {
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2;
  color: rgba(232,230,224,0.7);
}
.line-prompt  { color: var(--orange); }
.line-comment { color: var(--text-dim); }
.line-success { color: var(--green); }
.line-info    { color: var(--blue); }
.line-dim     { color: var(--text-dim); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--orange);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* ══════════════════════════════════════════════════════
   PROOF BAR
══════════════════════════════════════════════════════ */
.proof-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.proof-stat { display: flex; align-items: center; gap: 0.5rem; }
.proof-stat strong { color: var(--orange); font-size: 1rem; }

/* ══════════════════════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════════════════════ */
section { padding: 6rem 2.5rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
h2 em { font-style: italic; color: var(--orange); }

.section-intro {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ══════════════════════════════════════════════════════
   WHAT IS OPENCLAW
══════════════════════════════════════════════════════ */
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 4rem;
}

.what-features { display: flex; flex-direction: column; gap: 1.25rem; }

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all var(--transition);
}
.feature-item:hover {
  border-color: var(--orange);
  transform: translateX(5px);
  box-shadow: -4px 0 0 var(--orange), 0 4px 20px rgba(0,0,0,0.3);
}

.feature-icon { font-size: 1.5rem; flex-shrink: 0; }
.feature-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.feature-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Stat card */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '🦞';
  position: absolute;
  right: -1rem; top: -1rem;
  font-size: 8rem;
  opacity: 0.05;
  transform: rotate(-20deg);
}
.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at top left, rgba(232,70,26,0.08), transparent 60%);
  pointer-events: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 0.25rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.mini-stat strong {
  display: block;
  font-size: 1.4rem;
  font-family: var(--font-display);
  color: var(--text);
}
.mini-stat span {
  font-size: 0.73rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ══════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 1.45rem;
  left: 12%;
  right: 12%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0, var(--orange) 6px,
    transparent 6px, transparent 14px
  );
  opacity: 0.4;
}

.step { text-align: center; position: relative; }
.step-num {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px var(--orange-glow);
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════
   INTEGRATIONS
══════════════════════════════════════════════════════ */
.int-group-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.integration-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem 0.5rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition);
  cursor: default;
}
.integration-chip svg { flex-shrink: 0; border-radius: 3px; }
.integration-chip:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(232,70,26,0.2);
}

/* ══════════════════════════════════════════════════════
   CONTACT FORM
══════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
  margin-top: 4rem;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.contact-info p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.contact-detail a { color: var(--orange); text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 8px 48px rgba(0,0,0,0.35);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }

label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-dark);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,70,26,0.12);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7d8c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
select option { background: var(--surface); color: var(--text); }

textarea { resize: vertical; min-height: 120px; }

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.submit-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--orange-glow);
}
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 1rem;
}

.success-msg { display: none; text-align: center; padding: 2.5rem 1rem; }
.success-msg.show { display: block; }
.success-msg .check { font-size: 3rem; margin-bottom: 1rem; }
.success-msg h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.success-msg p { color: var(--text-muted); font-size: 0.95rem; }

/* ══════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3.5rem;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
details[open] { border-color: rgba(232,70,26,0.35); }

summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--orange);
  transition: transform 0.2s;
  flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--orange); }

details p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
footer p { font-size: 0.82rem; }
footer a { color: var(--orange); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-copy { font-size: 0.72rem; margin-top: 0.25rem; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .what-grid { grid-template-columns: 1fr; gap: 3rem; }
  .what-aside { max-width: 500px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 7rem; }
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .form-row { grid-template-columns: 1fr; }
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  .proof-bar { gap: 1.5rem; }
}

@media (max-width: 500px) {
  .steps { grid-template-columns: 1fr; }
  h1 { font-size: 2.6rem; }
}
