:root,
[data-theme="light"]{
  /* Neutral Light Base (Stripe / Linear / Vercel style) */
  --bg-canvas:#F8FAFC;
  --bg-surface:#FFFFFF;
  --bg-surface-elevated:#F1F5F9;
  --bg-glass:rgba(248,250,252,0.82);

  /* Hairline Borders */
  --border-subtle:rgba(15,23,42,0.08);
  --border-hover:rgba(15,23,42,0.16);
  --border-active:rgba(42,62,245,0.5);

  /* Typography Colors */
  --text-primary:#0F172A;
  --text-secondary:#334155;
  --text-muted:#64748B;
  --text-faint:#94A3B8;

  /* Accent Color (Logo Electric Blue) */
  --hw-blue:#003DF8;
  --hw-blue-hover:#0031D6;
  --hw-blue-active:#0024A8;
  --hw-blue-glow:rgba(0,61,248,0.22);
  --hw-blue-subtle:rgba(0,61,248,0.08);

  /* Card Shadows */
  --card-shadow:0 1px 3px rgba(15,23,42,0.05), 0 10px 24px -6px rgba(15,23,42,0.04);
  --card-shadow-hover:0 20px 40px -12px rgba(15,23,42,0.1), 0 0 24px rgba(0,61,248,0.08);

  /* Typography Families */
  --font-sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --font-display:'Space Grotesk',var(--font-sans);
  --font-mono:'JetBrains Mono',monospace;

  /* Motion & Radii */
  --ease:cubic-bezier(0.16,1,0.3,1);
  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:16px;
  --radius-xl:24px;
}

[data-theme="dark"]{
  /* Neutral Dark Base */
  --bg-canvas:#08090C;
  --bg-surface:#0E1017;
  --bg-surface-elevated:#141722;
  --bg-glass:rgba(14,16,23,0.72);

  /* Hairline Borders */
  --border-subtle:rgba(255,255,255,0.08);
  --border-hover:rgba(255,255,255,0.16);
  --border-active:rgba(0,61,248,0.5);

  /* Typography Colors */
  --text-primary:#FFFFFF;
  --text-secondary:#C5CAD6;
  --text-muted:#8A8F98;
  --text-faint:#525660;

  /* Accent Color (Logo Electric Blue) */
  --hw-blue:#003DF8;
  --hw-blue-hover:#1F54FF;
  --hw-blue-active:#002BD6;
  --hw-blue-glow:rgba(0,61,248,0.38);
  --hw-blue-subtle:rgba(0,61,248,0.14);

  /* Card Shadows */
  --card-shadow:0 4px 20px rgba(0,0,0,0.25);
  --card-shadow-hover:0 20px 40px rgba(0,0,0,0.4), 0 0 24px rgba(0,61,248,0.08);
}

*{box-sizing:border-box;}
::selection{
  background:#003DF8 !important;
  color:#FFFFFF !important;
}
::-moz-selection{
  background:#003DF8 !important;
  color:#FFFFFF !important;
}
*::selection{
  background:#003DF8 !important;
  color:#FFFFFF !important;
}
*::-moz-selection{
  background:#003DF8 !important;
  color:#FFFFFF !important;
}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background-color:var(--bg-canvas);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(42,62,245,0.08), transparent),
    radial-gradient(circle at 50% 0%, var(--bg-surface), var(--bg-canvas) 85%);
  color:var(--text-secondary);
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  transition:background-color 200ms var(--ease), color 200ms var(--ease);
}
[data-theme="dark"] body{
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(42,62,245,0.18), transparent),
    radial-gradient(circle at 50% 0%, rgba(14,16,23,0.9), var(--bg-canvas) 85%);
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--text-primary);
  margin:0;
  letter-spacing:-0.025em;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}

.wrap{
  max-width:1240px;
  margin:0 auto;
  padding:0 32px;
}
@media(max-width:640px){.wrap{padding:0 20px;}}

/* Section Base */
section{
  padding:130px 0;
  position:relative;
}
@media(max-width:768px){section{padding:72px 0;}}

.section-head{
  max-width:720px;
  margin-bottom:64px;
}
.eyebrow{
  font-family:var(--font-mono);
  font-size:0.76rem;
  font-weight:500;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--hw-blue);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
}
.eyebrow::before{
  content:"";
  width:14px;
  height:2px;
  background:var(--hw-blue);
  border-radius:2px;
}
.section-head h2{
  font-family:var(--font-display);
  font-size:clamp(2.2rem,4vw,3.2rem);
  font-weight:700;
  color:var(--text-primary);
  line-height:1.15;
  letter-spacing:-0.025em;
  margin:0 0 16px;
}
.section-head p{
  font-size:1.06rem;
  color:var(--text-muted);
  line-height:1.65;
  margin:0;
  max-width:65ch;
}

:focus-visible{outline:2px solid var(--hw-blue);outline-offset:3px;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:var(--font-sans);
  font-weight:600;
  font-size:0.95rem;
  line-height:1;
  padding:14px 26px;
  border-radius:var(--radius-md);
  text-decoration:none;
  cursor:pointer;
  transition:all 180ms var(--ease);
  border:1px solid transparent;
}
.btn-primary{
  background:var(--hw-blue);
  color:#FFFFFF;
  box-shadow:0 0 0 1px rgba(255,255,255,0.15) inset, 0 8px 24px -4px rgba(42,62,245,0.45);
}
.btn-primary:hover{
  background:var(--hw-blue-hover);
  transform:translateY(-2px);
  box-shadow:0 0 0 1px rgba(255,255,255,0.25) inset, 0 12px 28px -4px rgba(42,62,245,0.55);
}
.btn-primary:active{
  background:var(--hw-blue-active);
  transform:translateY(0);
}
.btn-ghost{
  background:var(--bg-surface-elevated);
  border-color:var(--border-subtle);
  color:var(--text-primary);
  backdrop-filter:blur(10px);
}
.btn-ghost:hover{
  background:var(--border-hover);
  border-color:var(--border-active);
  color:var(--text-primary);
  transform:translateY(-2px);
}
.btn-ghost:active{
  transform:translateY(0);
}

/* ---------- Navbar ---------- */
.navbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  height:72px;
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--border-subtle);
  background:var(--bg-glass);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  transition:background 200ms var(--ease), border-color 200ms var(--ease);
}
.navbar.scrolled{
  background:var(--bg-surface);
  border-bottom-color:var(--border-hover);
}
.nav-inner{
  max-width:1240px;
  width:100%;
  margin:0 auto;
  padding:0 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
@media(max-width:640px){.nav-inner{padding:0 20px;}}
.logo-mark{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.25rem;
  letter-spacing:-0.02em;
  text-decoration:none;
}
.logo-half{color:var(--text-primary);transition:color 150ms var(--ease);}
.logo-wave{color:var(--hw-blue);}
.logo-img{
  height:32px;
  width:32px;
  border-radius:var(--radius-sm);
  object-fit:cover;
  display:block;
  box-shadow:0 2px 10px rgba(0,75,232,0.35);
}
.nav-links{
  display:flex;
  align-items:center;
  gap:32px;
  font-size:0.92rem;
  font-weight:500;
  color:var(--text-muted);
}
.nav-links a{
  transition:color 150ms var(--ease);
  position:relative;
}
.nav-links a:hover{
  color:var(--text-primary);
}
@media(max-width:980px){.nav-links{display:none;}}

.nav-right{
  display:flex;
  align-items:center;
  gap:16px;
}
.theme-toggle-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:var(--radius-md);
  background:var(--bg-surface);
  border:1px solid var(--border-subtle);
  color:var(--text-secondary);
  cursor:pointer;
  transition:all 180ms var(--ease);
  padding:0;
  flex-shrink:0;
}
.theme-toggle-btn:hover{
  background:var(--bg-surface-elevated);
  border-color:var(--border-hover);
  color:var(--text-primary);
  transform:translateY(-1px);
}
.theme-toggle-btn:active{
  transform:translateY(0);
}
.theme-toggle-btn svg{
  transition:transform 200ms var(--ease);
}
.theme-toggle-btn:hover svg{
  transform:rotate(12deg);
}
[data-theme="light"] .sun-icon{
  display:none;
}
[data-theme="light"] .moon-icon{
  display:block;
}
[data-theme="dark"] .sun-icon{
  display:block;
}
[data-theme="dark"] .moon-icon{
  display:none;
}

.hamburger{
  display:none;
  background:var(--bg-surface);
  border:1px solid var(--border-subtle);
  color:var(--text-primary);
  width:40px;
  height:40px;
  font-size:1.25rem;
  cursor:pointer;
  border-radius:var(--radius-md);
  align-items:center;
  justify-content:center;
  transition:all 180ms var(--ease);
}
.hamburger:hover{
  background:var(--bg-surface-elevated);
  border-color:var(--border-hover);
}
@media(max-width:980px){.hamburger{display:flex;}}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:94vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:144px 24px 88px;
  overflow:hidden;
}
.hero-glow{
  position:absolute;
  top:12%;
  left:50%;
  transform:translateX(-50%);
  width:680px;
  height:420px;
  background:radial-gradient(circle, rgba(42,62,245,0.22) 0%, rgba(42,62,245,0.05) 50%, transparent 70%);
  pointer-events:none;
  filter:blur(50px);
}
[data-theme="light"] .hero-glow{
  opacity:0.35;
}
.hero-logo{
  width:96px;
  height:96px;
  margin:0 auto 28px;
  position:relative;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 16px 40px rgba(0,75,232,0.4), 0 0 0 1px var(--border-subtle);
}
.hero-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:0;
  transform:scale(0.92) translateY(8px);
  transition:opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
}
.hero-logo img.in{
  opacity:1;
  transform:scale(1) translateY(0);
}
.hero h1{
  font-family:var(--font-sans);
  font-size:clamp(2.75rem,6.2vw,5.2rem);
  font-weight:800;
  line-height:1.06;
  letter-spacing:-0.038em;
  color:var(--text-primary);
  max-width:980px;
  margin:0 auto 22px;
}
.hero p.sub{
  font-size:clamp(1.05rem,1.6vw,1.25rem);
  line-height:1.65;
  color:var(--text-muted);
  max-width:65ch;
  margin:0 auto 36px;
  font-weight:400;
}
.hero-ctas{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom:64px;
}
.hero-metrics{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:32px;
  padding:16px 32px;
  background:var(--bg-surface);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  box-shadow:var(--card-shadow);
  backdrop-filter:blur(12px);
  max-width:860px;
  margin:0 auto;
}
.metric-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}
.metric-value{
  font-family:var(--font-display);
  font-size:1.2rem;
  font-weight:700;
  color:var(--text-primary);
}
.metric-label{
  font-family:var(--font-mono);
  font-size:0.72rem;
  letter-spacing:0.06em;
  color:var(--text-muted);
  text-transform:uppercase;
}
.metric-divider{
  width:1px;
  height:28px;
  background:var(--border-subtle);
}
@media(max-width:640px){
  .hero-metrics{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
    padding:20px;
  }
  .metric-divider{display:none;}
}

/* reveal-on-scroll */
.reveal{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.in{
  opacity:1;
  transform:translateY(0);
}
@media(prefers-reduced-motion:reduce){
  .reveal{transition:opacity .3s ease;transform:none !important;}
  *{animation-duration:0.001s !important;}
}

section{padding:120px 0;position:relative;}
.section-head{max-width:640px;margin-bottom:56px;}
.section-head h2{font-size:clamp(2rem,3.6vw,2.9rem);margin-top:14px;}
.section-head p{margin-top:16px;font-size:1.02rem;}

/* ---------- Glass card ---------- */
.glass-card{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(20px);
  padding:30px;
  border-radius:16px;
  transition:transform .35s var(--ease-hw), border-color .35s var(--ease-hw), box-shadow .35s var(--ease-hw);
}
.glass-card:hover{transform:translateY(-4px);border-color:var(--signal-blue);box-shadow:0 20px 50px rgba(42,62,245,0.12);}

/* ---------- About ---------- */
.about-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}
@media(max-width:1080px){
  .about-grid{
    grid-template-columns:repeat(2,1fr);
    gap:20px;
  }
}
@media(max-width:640px){
  .about-grid{
    grid-template-columns:1fr;
    gap:16px;
  }
}

.about-card{
  background:var(--bg-surface);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  padding:32px 28px;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
  box-shadow:var(--card-shadow);
  transition:transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.about-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--border-hover), transparent);
  opacity:0;
  transition:opacity 240ms var(--ease);
}
.about-card:hover{
  transform:translateY(-4px);
  border-color:rgba(42,62,245,0.4);
  box-shadow:var(--card-shadow-hover);
}
.about-card:hover::before{
  opacity:1;
}

.about-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px;
}
.about-icon-box{
  width:42px;
  height:42px;
  border-radius:var(--radius-md);
  background:rgba(42,62,245,0.08);
  border:1px solid rgba(42,62,245,0.22);
  color:var(--hw-blue);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:all 200ms var(--ease);
}
.about-card:hover .about-icon-box{
  background:rgba(42,62,245,0.16);
  border-color:var(--hw-blue);
  color:var(--hw-blue);
  box-shadow:0 0 16px rgba(42,62,245,0.25);
}
.about-tag{
  font-family:var(--font-mono);
  font-size:0.7rem;
  letter-spacing:0.07em;
  font-weight:600;
  text-transform:uppercase;
  color:var(--text-muted);
  background:var(--bg-surface-elevated);
  border:1px solid var(--border-subtle);
  padding:4px 10px;
  border-radius:var(--radius-full);
}
.about-card h4{
  font-family:var(--font-sans);
  font-size:1.25rem;
  font-weight:700;
  letter-spacing:-0.02em;
  color:var(--text-primary);
  margin-bottom:12px;
}
.about-card p{
  font-size:0.92rem;
  line-height:1.62;
  color:var(--text-muted);
  margin:0;
  flex:1;
}

/* ---------- Ecosystem ---------- */
.eco-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}
@media(max-width:1160px){
  .eco-grid{
    grid-template-columns:repeat(2,1fr);
    gap:20px;
  }
}
@media(max-width:640px){
  .eco-grid{
    grid-template-columns:1fr;
    gap:16px;
  }
}

.eco-card{
  background:var(--bg-surface);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  padding:28px 24px;
  display:flex;
  flex-direction:column;
  position:relative;
  cursor:pointer;
  overflow:hidden;
  outline:none;
  box-shadow:var(--card-shadow);
  transition:transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.eco-card:focus-visible{
  outline:2px solid var(--hw-blue);
  outline-offset:2px;
}
.eco-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--border-hover), transparent);
  opacity:0;
  transition:opacity 240ms var(--ease);
}
.eco-card:hover{
  transform:translateY(-4px);
  border-color:rgba(42,62,245,0.4);
  box-shadow:var(--card-shadow-hover);
}
.eco-card:hover::before{
  opacity:1;
}
.eco-card.open{
  border-color:var(--hw-blue);
  box-shadow:var(--card-shadow-hover);
}

.eco-top-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}
.eco-icon-box{
  width:42px;
  height:42px;
  border-radius:var(--radius-md);
  background:rgba(42,62,245,0.08);
  border:1px solid rgba(42,62,245,0.22);
  color:var(--hw-blue);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:all 200ms var(--ease);
}
.eco-card:hover .eco-icon-box{
  background:rgba(42,62,245,0.16);
  border-color:var(--hw-blue);
  color:var(--hw-blue);
  box-shadow:0 0 16px rgba(42,62,245,0.25);
}

.status-tag{
  font-family:var(--font-mono);
  font-size:0.68rem;
  letter-spacing:0.06em;
  padding:4px 10px;
  text-transform:uppercase;
  border-radius:var(--radius-full);
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:600;
}
.status-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  display:inline-block;
}
.status-live{
  color:#00E0B8;
  background:rgba(0,224,184,0.08);
  border:1px solid rgba(0,224,184,0.25);
}
.status-live .status-dot{
  background:#00E0B8;
  box-shadow:0 0 8px #00E0B8;
}
.status-dev{
  color:#60A5FA;
  background:rgba(96,165,250,0.08);
  border:1px solid rgba(96,165,250,0.25);
}
.status-dev .status-dot{
  background:#60A5FA;
  box-shadow:0 0 8px #60A5FA;
}
.status-research{
  color:#A78BFA;
  background:rgba(167,139,250,0.08);
  border:1px solid rgba(167,139,250,0.25);
}
.status-research .status-dot{
  background:#A78BFA;
  box-shadow:0 0 8px #A78BFA;
}

.eco-cat{
  font-family:var(--font-mono);
  font-size:0.68rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--text-muted);
  margin-bottom:8px;
}
.eco-card h4{
  font-family:var(--font-sans);
  font-size:1.15rem;
  font-weight:700;
  letter-spacing:-0.02em;
  color:var(--text-primary);
  margin-bottom:12px;
}
.eco-desc{
  font-size:0.88rem;
  line-height:1.6;
  color:var(--text-muted);
  margin:0 0 16px;
  flex:1;
}

.eco-expand-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:14px;
  border-top:1px solid var(--border-subtle);
  font-family:var(--font-mono);
  font-size:0.72rem;
  letter-spacing:0.04em;
  color:var(--hw-blue-hover);
}
.eco-expand-chevron{
  transition:transform 250ms var(--ease);
}
.eco-card.open .eco-expand-chevron{
  transform:rotate(180deg);
}

.eco-detail{
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition:max-height 300ms var(--ease), opacity 250ms var(--ease), margin 300ms var(--ease);
  font-size:0.86rem;
  line-height:1.55;
  color:var(--text-secondary);
  background:var(--hw-blue-subtle);
  border:1px solid rgba(42,62,245,0.2);
  border-radius:var(--radius-sm);
  padding:0 14px;
  margin-top:0;
}
.eco-card.open .eco-detail{
  max-height:140px;
  opacity:1;
  padding:12px 14px;
  margin-top:14px;
}

/* ---------- AI Interface Demo ---------- */
.ai-container{
  max-width:760px;
  margin:0 auto;
  position:relative;
}
.ai-container::before{
  content:'';
  position:absolute;
  top:-20%;
  left:15%;
  right:15%;
  height:70%;
  background:radial-gradient(circle, rgba(42,62,245,0.18) 0%, rgba(42,62,245,0) 70%);
  filter:blur(40px);
  pointer-events:none;
  z-index:0;
}
[data-theme="light"] .ai-container::before{
  opacity:0.35;
}
.ai-panel{
  position:relative;
  z-index:1;
  background:var(--bg-surface);
  border:1px solid var(--border-subtle);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--card-shadow-hover);
}
.ai-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 20px;
  border-bottom:1px solid var(--border-subtle);
  background:var(--bg-surface-elevated);
}
.ai-window-controls{
  display:flex;
  align-items:center;
  gap:7px;
}
.ai-dot-ctrl{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  opacity:0.8;
}
.ai-dot-red{background:#FF5F56;border:1px solid rgba(0,0,0,0.2);}
.ai-dot-yellow{background:#FFBD2E;border:1px solid rgba(0,0,0,0.2);}
.ai-dot-green{background:#27C93F;border:1px solid rgba(0,0,0,0.2);}

.ai-head-title{
  display:flex;
  align-items:center;
  gap:9px;
  font-family:var(--font-mono);
  font-size:0.75rem;
  letter-spacing:0.04em;
  color:var(--text-muted);
}
.ai-pulse-dot{
  width:7px;
  height:7px;
  background:#00E0B8;
  border-radius:50%;
  box-shadow:0 0 8px #00E0B8;
}
.ai-head-meta{
  display:flex;
  align-items:center;
}
.ai-model-tag{
  font-family:var(--font-mono);
  font-size:0.65rem;
  letter-spacing:0.06em;
  color:var(--hw-blue-hover);
  background:rgba(42,62,245,0.1);
  border:1px solid rgba(42,62,245,0.25);
  padding:2px 8px;
  border-radius:var(--radius-full);
}

.ai-messages{
  padding:24px 24px 16px;
  min-height:300px;
  max-height:400px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:16px;
  scroll-behavior:smooth;
}
.ai-messages::-webkit-scrollbar{
  width:5px;
}
.ai-messages::-webkit-scrollbar-thumb{
  background:var(--border-hover);
  border-radius:4px;
}

.msg{
  max-width:82%;
  padding:12px 18px;
  font-size:0.92rem;
  line-height:1.6;
  opacity:0;
  transform:translateY(8px);
  animation:msgin .4s var(--ease) forwards;
}
@keyframes msgin{to{opacity:1;transform:translateY(0);}}

.msg.user{
  align-self:flex-end;
  background:var(--hw-blue);
  border:1px solid var(--hw-blue);
  color:#FFFFFF;
  border-radius:16px 16px 4px 16px;
  box-shadow:0 4px 16px rgba(42,62,245,0.25);
}
.msg.bot{
  align-self:flex-start;
  background:var(--bg-surface-elevated);
  border:1px solid var(--border-subtle);
  color:var(--text-primary);
  border-radius:16px 16px 16px 4px;
}

.typing{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:12px 16px;
  border-radius:16px 16px 16px 4px;
  background:var(--bg-surface-elevated);
  border:1px solid var(--border-subtle);
}
.typing span{
  width:6px;
  height:6px;
  background:var(--hw-blue-hover);
  border-radius:50%;
  animation:blink 1.2s infinite;
}
.typing span:nth-child(2){animation-delay:.2s;}
.typing span:nth-child(3){animation-delay:.4s;}
@keyframes blink{0%,80%,100%{opacity:.25;}40%{opacity:1;}}

.ai-prompt-pills{
  display:flex;
  gap:8px;
  padding:0 24px 14px;
  overflow-x:auto;
  scrollbar-width:none;
}
.ai-prompt-pills::-webkit-scrollbar{display:none;}
.ai-pill{
  white-space:nowrap;
  font-family:var(--font-sans);
  font-size:0.75rem;
  color:var(--text-muted);
  background:var(--bg-surface-elevated);
  border:1px solid var(--border-subtle);
  padding:6px 12px;
  border-radius:var(--radius-full);
  cursor:pointer;
  transition:all 160ms var(--ease);
}
.ai-pill:hover{
  color:var(--text-primary);
  background:var(--hw-blue-subtle);
  border-color:rgba(42,62,245,0.3);
}

.ai-input-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 20px;
  border-top:1px solid var(--border-subtle);
  background:var(--bg-surface-elevated);
}
.ai-input-row input{
  flex:1;
  background:transparent;
  border:none;
  color:var(--text-primary);
  font-family:var(--font-sans);
  font-size:0.92rem;
  outline:none;
}
.ai-input-row input::placeholder{
  color:var(--text-muted);
}
.ai-send-btn{
  width:38px;
  height:38px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--radius-md);
  flex-shrink:0;
}
.ai-badge{
  text-align:center;
  font-family:var(--font-mono);
  font-size:0.72rem;
  color:var(--text-muted);
  margin-top:18px;
  letter-spacing:0.04em;
}

/* ---------- Development Process ---------- */
.process-section{
  position:relative;
  background:radial-gradient(circle at 50% 0%, rgba(42, 62, 245, 0.08) 0%, transparent 60%);
}
.process-section .section-head{
  margin:0 auto 56px;
  text-align:center;
}
.process-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
@media(max-width:1024px){
  .process-grid{
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
  }
}
@media(max-width:640px){
  .process-grid{
    grid-template-columns:1fr;
    gap:16px;
  }
}

.process-card{
  background:var(--bg-surface);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  padding:32px 28px;
  min-height:100%;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
  box-shadow:var(--card-shadow);
  transition:transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.process-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--border-hover), transparent);
  opacity:0;
  transition:opacity 240ms var(--ease);
}
.process-card:hover{
  transform:translateY(-4px);
  border-color:rgba(42,62,245,0.4);
  box-shadow:var(--card-shadow-hover);
}
.process-card:hover::before{
  opacity:1;
}

.process-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px;
}
.process-step-badge{
  font-family:var(--font-mono);
  font-size:0.72rem;
  font-weight:700;
  letter-spacing:0.06em;
  color:var(--hw-blue-hover);
  background:rgba(42,62,245,0.1);
  border:1px solid rgba(42,62,245,0.25);
  padding:4px 12px;
  border-radius:var(--radius-full);
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.process-step-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--hw-blue);
}
.process-icon-box{
  width:40px;
  height:40px;
  border-radius:var(--radius-md);
  background:var(--bg-surface-elevated);
  border:1px solid var(--border-subtle);
  color:var(--hw-blue);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:all 200ms var(--ease);
}
.process-card:hover .process-icon-box{
  color:var(--hw-blue);
  border-color:var(--hw-blue);
  background:rgba(42,62,245,0.16);
  box-shadow:0 0 16px rgba(42,62,245,0.25);
}

.process-phase-tag{
  font-family:var(--font-mono);
  font-size:0.68rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--text-muted);
  margin-bottom:8px;
}
.process-card h4{
  font-family:var(--font-sans);
  font-size:1.2rem;
  font-weight:700;
  letter-spacing:-0.02em;
  color:var(--text-primary);
  margin-bottom:12px;
}
.process-card p{
  font-size:0.92rem;
  line-height:1.62;
  color:var(--text-muted);
  margin:0;
  flex:1;
}

/* ---------- Timeline ---------- */
.timeline-wrap{
  position:relative;
}
.timeline-container{
  position:relative;
  margin-top:48px;
}
.timeline-track-bar{
  position:absolute;
  top:12px;
  left:0;
  right:0;
  height:2px;
  background:linear-gradient(90deg, var(--hw-blue) 0%, var(--hw-blue-hover) 65%, rgba(255,255,255,0.1) 100%);
  z-index:1;
}
.timeline-row{
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:18px;
  position:relative;
  z-index:2;
}

.tl-node{
  display:flex;
  flex-direction:column;
  position:relative;
}
.tl-marker{
  width:26px;
  height:26px;
  border-radius:50%;
  background:var(--bg-0);
  border:2px solid var(--hw-blue);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:24px;
  transition:all 200ms var(--ease);
  box-shadow:0 0 12px rgba(42,62,245,0.4);
}
.tl-marker-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--hw-blue);
}

.tl-node.is-present .tl-marker{
  border-color:#00E0B8;
  box-shadow:0 0 16px rgba(0,224,184,0.6);
}
.tl-node.is-present .tl-marker-dot{
  background:#00E0B8;
}

.tl-node.is-future .tl-marker{
  border-color:rgba(255,255,255,0.25);
  border-style:dashed;
  box-shadow:none;
}
.tl-node.is-future .tl-marker-dot{
  background:rgba(255,255,255,0.2);
}

.tl-card{
  background:var(--bg-surface);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  padding:24px 20px;
  flex:1;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
  box-shadow:var(--card-shadow);
  transition:transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.tl-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--border-hover), transparent);
  opacity:0;
  transition:opacity 240ms var(--ease);
}
.tl-node:hover .tl-card{
  transform:translateY(-4px);
  border-color:rgba(42,62,245,0.4);
  box-shadow:var(--card-shadow-hover);
}
.tl-node:hover .tl-card::before{
  opacity:1;
}

.tl-badge-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
  gap:8px;
  flex-wrap:wrap;
}
.tl-badge{
  font-family:var(--font-mono);
  font-size:0.68rem;
  letter-spacing:0.06em;
  font-weight:700;
  padding:3px 8px;
  border-radius:var(--radius-full);
  text-transform:uppercase;
}
.tl-badge.is-completed{
  color:var(--hw-blue-hover);
  background:rgba(42,62,245,0.1);
  border:1px solid rgba(42,62,245,0.22);
}
.tl-badge.is-present{
  color:#00E0B8;
  background:rgba(0,224,184,0.1);
  border:1px solid rgba(0,224,184,0.3);
}
.tl-badge.is-future{
  color:var(--text-muted);
  background:var(--bg-surface-elevated);
  border:1px solid var(--border-subtle);
}

.tl-status-live{
  font-family:var(--font-mono);
  font-size:0.65rem;
  letter-spacing:0.06em;
  color:#00E0B8;
  display:inline-flex;
  align-items:center;
  gap:5px;
}

.tl-card h4{
  font-family:var(--font-sans);
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:-0.02em;
  color:var(--text-primary);
  margin-bottom:8px;
}
.tl-card p{
  font-size:0.86rem;
  line-height:1.55;
  color:var(--text-muted);
  margin:0;
  flex:1;
}

@media(max-width:1100px){
  .timeline-track-bar{
    display:none;
  }
  .timeline-row{
    grid-template-columns:1fr;
    gap:20px;
    padding-left:42px;
    position:relative;
  }
  .timeline-row::before{
    content:'';
    position:absolute;
    top:12px;
    bottom:12px;
    left:13px;
    width:2px;
    background:linear-gradient(180deg, var(--hw-blue) 0%, var(--hw-blue-hover) 65%, rgba(255,255,255,0.1) 100%);
  }
  .tl-node{
    position:relative;
  }
  .tl-marker{
    position:absolute;
    top:20px;
    left:-42px;
    margin-bottom:0;
  }
}

/* ---------- Team ---------- */
.team-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
}
@media(max-width:1024px){
  .team-grid{
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
  }
}
@media(max-width:560px){
  .team-grid{
    grid-template-columns:1fr;
    gap:16px;
  }
}

.team-card{
  background:var(--bg-surface);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  padding:32px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  position:relative;
  overflow:hidden;
  box-shadow:var(--card-shadow);
  transition:transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.team-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--border-hover), transparent);
  opacity:0;
  transition:opacity 240ms var(--ease);
}
.team-card:hover{
  transform:translateY(-4px);
  border-color:rgba(42,62,245,0.4);
  box-shadow:var(--card-shadow-hover);
}
.team-card:hover::before{
  opacity:1;
}

.team-avatar-box{
  margin-bottom:20px;
}
.avatar{
  width:108px;
  height:108px;
  border-radius:24px;
  background:var(--bg-surface-elevated);
  border:1px solid var(--border-subtle);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
  box-shadow:0 8px 24px rgba(0,0,0,0.15);
  transition:border-color 200ms var(--ease);
}
.team-card:hover .avatar{
  border-color:rgba(42,62,245,0.5);
}
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.avatar .initials{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.6rem;
  color:var(--text-primary);
  letter-spacing:0.02em;
}

.team-card h4{
  font-family:var(--font-sans);
  font-size:1.2rem;
  font-weight:700;
  letter-spacing:-0.02em;
  color:var(--text-primary);
  margin-bottom:6px;
}
.team-role{
  font-family:var(--font-mono);
  font-size:0.72rem;
  letter-spacing:0.06em;
  color:var(--hw-blue-hover);
  text-transform:uppercase;
  margin-bottom:14px;
  font-weight:600;
}
.team-card p.bio{
  font-size:0.88rem;
  line-height:1.6;
  color:var(--text-muted);
  margin:0;
  flex:1;
}

/* ---------- Careers ---------- */
#jobsList{
  max-width:880px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.job-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:24px 28px;
  background:var(--bg-surface);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  position:relative;
  overflow:hidden;
  box-shadow:var(--card-shadow);
  transition:transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.job-row::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--border-hover), transparent);
  opacity:0;
  transition:opacity 240ms var(--ease);
}
.job-row:hover{
  transform:translateY(-2px);
  border-color:rgba(42,62,245,0.4);
  box-shadow:var(--card-shadow-hover);
}
.job-row:hover::before{
  opacity:1;
}

.job-info h4{
  font-family:var(--font-sans);
  font-size:1.18rem;
  font-weight:700;
  letter-spacing:-0.02em;
  color:var(--text-primary);
  margin-bottom:10px;
}
.job-meta{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.job-pill{
  font-family:var(--font-mono);
  font-size:0.7rem;
  letter-spacing:0.04em;
  color:var(--text-muted);
  background:var(--bg-surface-elevated);
  border:1px solid var(--border-subtle);
  padding:3px 10px;
  border-radius:var(--radius-full);
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.job-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--hw-blue);
}
.job-apply-btn{
  font-size:0.86rem;
  padding:10px 20px;
  flex-shrink:0;
}
@media(max-width:640px){
  .job-row{
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
    padding:20px;
  }
  .job-apply-btn{
    width:100%;
    text-align:center;
    justify-content:center;
  }
}

.open-invite{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 28px;
  background:var(--bg-surface-elevated);
  border:1px dashed var(--border-subtle);
  border-radius:var(--radius-lg);
  margin-top:8px;
  gap:16px;
}
.open-invite-text{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.open-invite-text strong{
  font-size:0.95rem;
  color:var(--text-primary);
}
.open-invite-text span{
  font-size:0.86rem;
  color:var(--text-muted);
}
@media(max-width:640px){
  .open-invite{
    flex-direction:column;
    align-items:flex-start;
    padding:20px;
  }
}

/* ---------- Contact ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:56px;
  align-items:start;
}
@media(max-width:980px){
  .contact-grid{
    grid-template-columns:1fr;
    gap:40px;
  }
}

.contact-info{
  display:flex;
  flex-direction:column;
}
.contact-info h2{
  font-size:clamp(2rem, 3.5vw, 2.75rem);
  line-height:1.15;
  margin:14px 0 16px;
}
.contact-lead{
  font-size:1.02rem;
  line-height:1.65;
  color:var(--text-muted);
  max-width:54ch;
  margin-bottom:36px;
}

.contact-guarantees{
  display:flex;
  flex-direction:column;
  gap:22px;
  margin-bottom:36px;
}
.guarantee-item{
  display:flex;
  gap:16px;
  align-items:flex-start;
}
.guarantee-icon{
  width:38px;
  height:38px;
  border-radius:var(--radius-md);
  background:rgba(42,62,245,0.08);
  border:1px solid rgba(42,62,245,0.22);
  color:var(--hw-blue);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  margin-top:2px;
}
.guarantee-item strong{
  display:block;
  font-size:0.96rem;
  color:var(--text-primary);
  margin-bottom:3px;
}
.guarantee-item span{
  display:block;
  font-size:0.86rem;
  line-height:1.5;
  color:var(--text-muted);
}

.contact-status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:0.72rem;
  color:var(--text-muted);
  background:var(--bg-surface-elevated);
  border:1px solid var(--border-subtle);
  padding:6px 14px;
  border-radius:var(--radius-full);
  align-self:flex-start;
}

.contact-panel{
  background:var(--bg-surface);
  border:1px solid var(--border-subtle);
  border-radius:20px;
  padding:40px 36px;
  position:relative;
  box-shadow:var(--card-shadow-hover);
}
@media(max-width:640px){
  .contact-panel{
    padding:28px 20px;
  }
}
.contact-panel::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.field{
  margin-bottom:20px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.field label{
  font-family:var(--font-mono);
  font-size:0.72rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--text-muted);
  font-weight:600;
}
.field input,
.field textarea,
.field-select{
  background:var(--bg-surface-elevated);
  border:1px solid var(--border-subtle);
  color:var(--text-primary);
  padding:12px 16px;
  font-family:var(--font-sans);
  font-size:0.94rem;
  border-radius:var(--radius-md);
  transition:all 180ms var(--ease);
  outline:none;
}
.field input:focus,
.field textarea:focus,
.field-select:focus{
  border-color:var(--hw-blue);
  background:var(--bg-surface);
  box-shadow:0 0 0 3px rgba(42,62,245,0.25);
}
.field input::placeholder,
.field textarea::placeholder{
  color:var(--text-muted);
}
.field-select{
  cursor:pointer;
}
.field-select option{
  background:var(--bg-surface);
  color:var(--text-primary);
}

.contact-submit-btn{
  width:100%;
  justify-content:center;
  padding:14px 24px;
  font-size:0.96rem;
  margin-top:8px;
}

.form-note{
  font-size:0.86rem;
  line-height:1.55;
  color:#00E0B8;
  background:rgba(0,224,184,0.08);
  border:1px solid rgba(0,224,184,0.25);
  border-radius:var(--radius-md);
  padding:12px 16px;
  margin-top:18px;
  display:none;
  align-items:flex-start;
  gap:10px;
}
.form-note.show{
  display:flex;
}
.form-note-icon{
  font-weight:700;
  display:inline-block;
}

/* ---------- Footer ---------- */
footer{
  border-top:1px solid var(--border-subtle);
  padding-top:80px;
  padding-bottom:40px;
  background:var(--bg-surface-elevated);
  position:relative;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.6fr repeat(3, 1fr);
  gap:48px;
  padding-bottom:56px;
}
@media(max-width:960px){
  .footer-grid{
    grid-template-columns:repeat(2, 1fr);
    gap:36px;
  }
}
@media(max-width:540px){
  .footer-grid{
    grid-template-columns:1fr;
    gap:32px;
  }
}

.footer-brand-col{
  display:flex;
  flex-direction:column;
}
.footer-tagline{
  font-size:0.88rem;
  line-height:1.6;
  color:var(--text-muted);
  max-width:320px;
  margin-bottom:0;
}

.footer-col h5{
  font-family:var(--font-mono);
  font-size:0.72rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--text-primary);
  margin-bottom:18px;
}
.footer-col a{
  display:block;
  font-size:0.9rem;
  color:var(--text-muted);
  margin-bottom:12px;
  transition:color 150ms var(--ease);
}
.footer-col a:hover{
  color:var(--text-primary);
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  font-size:0.82rem;
  color:var(--text-muted);
  border-top:1px solid var(--border-subtle);
  padding-top:28px;
}
.footer-bottom-links{
  display:flex;
  align-items:center;
  gap:10px;
}
.footer-bottom-links a{
  color:var(--text-muted);
  transition:color 150ms var(--ease);
}
.footer-bottom-links a:hover{
  color:var(--text-primary);
}
.dot-sep{
  opacity:0.4;
}
