:root {
  --bg: #0b0d12;
  --panel: rgba(255,255,255,0.06);
  --panel-2: rgba(255,255,255,0.04);
  --text: #e7ebf3;
  --muted: #9aa4b2;
  --primary: #6aa5ff;
  --accent: #7b61ff;
  --success: #3ddc97;
  --warning: #f6c945;
  --danger: #ff6b6b;
  --glass: rgba(255,255,255,0.08);
  --stroke: rgba(255,255,255,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #0f1430 0%, transparent 60%),
             radial-gradient(1000px 700px at 100% 0%, #161a2b 0%, transparent 55%),
             var(--bg);
  line-height: 1.6;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(8px); background: linear-gradient(180deg, rgba(11,13,18,0.85), rgba(11,13,18,0.55)); border-bottom: 1px solid var(--stroke); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--text); font-family: "Space Grotesk", Inter, sans-serif; font-size: 22px; }
.logo .dot { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.main-nav a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 700; border: 1px solid var(--stroke); color: var(--text); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--primary)); border: none; color: #0b0d12; box-shadow: 0 6px 24px rgba(106,165,255,0.35); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; }

.nav-toggle { display: none; background: transparent; border: 0; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: 0.3s; }
.nav-toggle span:nth-child(1){ top: 12px; }
.nav-toggle span:nth-child(2){ top: 19px; }
.nav-toggle span:nth-child(3){ top: 26px; }

/* Hero */
.hero { padding: 88px 0 36px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 12px; }
.hero-copy p { color: var(--muted); font-size: 18px; margin: 0 0 22px; }
.cta-row { display: flex; gap: 14px; }
.trust { color: var(--muted); font-size: 14px; margin-top: 14px; }

.tool-panel { position: relative; min-height: 420px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border: 1px solid var(--stroke); overflow: hidden; box-shadow: var(--shadow); padding: 18px; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.tool-header { display: flex; align-items: center; gap: 10px; }
.tool-header h3 { margin: 0; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spark { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, var(--primary) 60%); box-shadow: 0 0 20px var(--primary); display: inline-block; }
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: center; }
.logo-cell { background: linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.18)); border: 1px solid rgba(255,255,255,0.32); border-radius: 14px; display: grid; place-items: center; padding: 12px; height: 110px; box-shadow: 0 8px 22px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.45); }
.logo-cell:hover { background: linear-gradient(180deg, rgba(255,255,255,0.36), rgba(255,255,255,0.22)); }
.logo-cell img { max-width: 120px; max-height: 60px; filter: saturate(0.9) brightness(0.98); }
.tool-note { text-align: center; color: var(--muted); margin: 0; font-size: 14px; }
.mobile-break { display: none; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, var(--panel-2), transparent); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.section-title { font-family: "Space Grotesk", Inter, sans-serif; font-size: 28px; margin: 0 0 22px; letter-spacing: -0.01em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--stroke); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease; }
.card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.10); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { color: var(--muted); margin: 0 0 10px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }

/* Process Flow - Superpower.com Style */
.process-flow { display: flex; flex-direction: column; gap: 0; position: relative; }
.process-step { display: flex; align-items: flex-start; gap: 24px; padding: 32px 0; position: relative; opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.process-step.visible { opacity: 1; transform: translateY(0); }
.process-step:nth-child(odd) { flex-direction: row; }
.process-step:nth-child(even) { flex-direction: row-reverse; }

.step-visual { position: relative; flex-shrink: 0; }
.step-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--accent), var(--primary)); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #0b0d12; margin-bottom: 12px; box-shadow: 0 8px 32px rgba(123, 97, 255, 0.3); }
.step-number { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; background: var(--bg); border: 2px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: var(--primary); }

.step-content { flex: 1; max-width: 600px; }
.step-content h3 { margin: 0 0 12px; font-size: 24px; font-weight: 700; color: var(--text); }
.step-description { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 16px; }
.step-details { background: var(--panel); border: 1px solid var(--stroke); border-radius: 12px; padding: 16px; margin-top: 16px; }
.step-details ul { margin: 0; padding-left: 0; list-style: none; color: var(--muted); }
.step-details li { margin-bottom: 6px; }

.process-connector { height: 40px; width: 2px; background: linear-gradient(180deg, var(--primary), var(--accent)); margin: 0 auto; position: relative; }
.process-connector::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* Mobile responsive */
@media (max-width: 768px) {
  .process-step { flex-direction: column !important; text-align: center; }
  .step-visual { align-self: center; }
  .process-connector { height: 20px; }
}

.work { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.work-item { background: var(--panel); border: 1px solid var(--stroke); border-radius: 16px; padding: 18px; min-height: 140px; box-shadow: var(--shadow); }
.work-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(123,97,255,0.2); border: 1px solid rgba(123,97,255,0.35); color: #cfd3ff; font-size: 12px; font-weight: 700; margin-bottom: 8px; }

.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.badges li { background: var(--panel); border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 12px; color: var(--muted); text-align: center; }

/* Contact */
.contact .contact-card { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border: 1px solid var(--stroke); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; color: var(--muted); font-weight: 600; }
.form input, .form textarea { background: #0e121a; color: var(--text); border: 1px solid var(--stroke); border-radius: 12px; padding: 12px 12px; font: inherit; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(106,165,255,0.25); }
.contact .form button.btn.btn-primary { 
  /* restore original height-like padding and left alignment */
  padding: 12px 18px; 
  font-size: 14px; 
  border-radius: 12px; 
  align-self: flex-start; 
  width: 20%;
  min-width: 140px; /* fallback so it's not too tiny on narrow screens */
  text-align: center;
  justify-content: center;
}

/* Footer */
.site-footer { padding: 26px 0 40px; border-top: 1px solid var(--stroke); background: rgba(255,255,255,0.02); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.foot-right { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-right a { color: var(--muted); text-decoration: none; }
.sub { color: var(--muted); }

/* Step infographics */
.process-step { align-items: stretch; }
.process-step > .step-content { flex: 1; }
.process-step > .step-infographic { flex: 1; display: flex; align-items: center; }
.info-card { width: 100%; background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.info-title { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info-card svg { width: 100%; height: 120px; display: block; }

@media (max-width: 980px) {
  .process-step > .step-infographic { margin-top: 12px; }
}

/* Utilities */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards, .steps, .work { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .main-nav { display: none; position: absolute; right: 4vw; top: 64px; flex-direction: column; background: #0e121a; border: 1px solid var(--stroke); border-radius: 12px; padding: 12px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-note { white-space: normal; line-height: 1.4; font-size: 13px; }
  .mobile-break { display: inline; }
  .footer-grid { flex-direction: column; gap: 16px; align-items: center; text-align: center; }
  .foot-right { justify-content: center; }
}

/* Extra small screens */
@media (max-width: 480px) {
  .tool-panel { 
    min-height: 380px; 
    padding: 12px; 
  }
  .tool-note { 
    font-size: 12px; 
    padding: 0 4px;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
  }
  .logo-grid { gap: 8px; }
  .logo-cell { height: 80px; padding: 6px; }
  .logo-cell img { max-width: 90px; max-height: 45px; }
  .foot-right { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
    width: 100%; 
    max-width: 200px;
  }
  .foot-right a { 
    text-align: center; 
    padding: 8px 4px; 
    font-size: 14px;
  }
}

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* Form Messages */
.form-message {
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 16px;
  font-weight: 600;
  border: 1px solid;
  animation: slideIn 0.3s ease-out;
}

.form-message-success {
  background: rgba(61, 220, 151, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.form-message-error {
  background: rgba(255, 107, 107, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


