*{box-sizing:border-box}

:root{
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --dark:#0f172a;
  --dark-2:#111827;
  --text:#1f2937;
  --muted:#64748b;
  --light:#f8fafc;
  --surface:#ffffff;
  --border:#e5e7eb;
  --success:#22c55e;
  --radius:18px;
  --shadow:0 20px 50px rgba(15,23,42,.10);
  --shadow-soft:0 10px 30px rgba(15,23,42,.08);
}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial,"Microsoft JhengHei",sans-serif;
  color:var(--text);
  background:var(--light);
  line-height:1.7;
}

a{color:inherit}

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:16px 8%;
  background:rgba(15,23,42,.94);
  color:white;
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  color:white;
  text-decoration:none;
  font-size:20px;
  font-weight:900;
  letter-spacing:.2px;
}

.logo-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:linear-gradient(135deg,#2563eb,#22c55e);
  color:white;
  font-size:15px;
  font-weight:900;
}

.site-nav{
  display:flex;
  align-items:center;
  gap:18px;
}

.site-nav a{
  color:white;
  text-decoration:none;
  font-size:14px;
  opacity:.86;
  white-space:nowrap;
}

.site-nav a:hover{
  opacity:1;
  color:#bfdbfe;
}

.nav-toggle{
  display:none;
  background:transparent;
  border:1px solid rgba(255,255,255,.22);
  color:white;
  border-radius:10px;
  padding:8px 12px;
  font-size:20px;
}

.hero{
  min-height:calc(100vh - 72px);
  display:flex;
  align-items:center;
  background:
    radial-gradient(circle at 78% 20%,rgba(37,99,235,.35),transparent 34%),
    radial-gradient(circle at 20% 78%,rgba(34,197,94,.16),transparent 30%),
    linear-gradient(135deg,#020617,#0f172a 48%,#1e3a8a);
  color:white;
  padding:90px 8%;
}

.hero-inner{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:54px;
  align-items:center;
  width:100%;
  max-width:1280px;
  margin:auto;
}

.eyebrow{
  display:inline-flex;
  margin-bottom:16px;
  padding:7px 14px;
  border:1px solid rgba(147,197,253,.5);
  border-radius:999px;
  color:#bfdbfe;
  font-size:14px;
  font-weight:800;
  letter-spacing:.3px;
}

.section .eyebrow{
  color:#2563eb;
  border-color:#bfdbfe;
}

.hero h1{
  margin:0 0 22px;
  font-size:clamp(40px,5.8vw,72px);
  line-height:1.05;
  letter-spacing:-2px;
}

.hero p{
  max-width:760px;
  margin:0;
  color:#dbeafe;
  font-size:20px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:30px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:13px 24px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  transition:.22s ease;
}

.btn-primary{
  background:var(--primary);
  color:white;
  box-shadow:0 12px 30px rgba(37,99,235,.32);
}

.btn-primary:hover{
  background:var(--primary-dark);
  transform:translateY(-2px);
}

.btn-secondary{
  color:white;
  border:1px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.08);
}

.btn-secondary:hover{
  background:rgba(255,255,255,.15);
  transform:translateY(-2px);
}

.hero-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:34px;
  max-width:620px;
}

.hero-stats div{
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}

.hero-stats strong{
  display:block;
  font-size:20px;
}

.hero-stats span{
  color:#cbd5e1;
  font-size:14px;
}

.hero-panel{
  border-radius:24px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 30px 80px rgba(0,0,0,.32);
  overflow:hidden;
}

.panel-top{
  display:flex;
  gap:8px;
  padding:16px;
  background:rgba(2,6,23,.55);
}

.panel-top span{
  width:12px;
  height:12px;
  border-radius:999px;
  background:#94a3b8;
}

.panel-body{
  padding:26px;
}

.terminal-line{
  color:#93c5fd;
  font-family:Consolas,monospace;
  margin-bottom:18px;
}

.ai-card{
  margin:12px 0;
  padding:16px;
  border-radius:14px;
  background:rgba(15,23,42,.72);
  color:#e5e7eb;
  border:1px solid rgba(255,255,255,.1);
}

.ai-card.active{
  border-color:#60a5fa;
  background:rgba(37,99,235,.25);
}

.section{
  padding:78px 8%;
  max-width:1280px;
  margin:auto;
}

.section-heading{
  text-align:center;
  max-width:820px;
  margin:0 auto 42px;
}

.section-heading h2{
  margin:0 0 14px;
  font-size:clamp(30px,4vw,44px);
  line-height:1.15;
  color:var(--dark);
}

.section-heading p{
  margin:0;
  color:var(--muted);
  font-size:18px;
}

.grid{
  display:grid;
  gap:22px;
}

.grid.four{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.grid.three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.card,
.about,
.contact{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
}

.card{
  padding:26px;
}

.card h3{
  margin:0 0 10px;
  color:var(--dark);
}

.card p{
  margin:0;
  color:var(--muted);
}

.pain-card{
  border-top:4px solid #f59e0b;
}

.solution-card{
  transition:.22s ease;
}

.solution-card:hover,
.pain-card:hover,
.process-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow);
}

.icon{
  font-size:34px;
  margin-bottom:14px;
}

.approach-section{
  max-width:none;
  background:#eef6ff;
}

.process-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
  max-width:1280px;
  margin:auto;
}

.process-card{
  padding:28px;
  background:white;
  border-radius:22px;
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  transition:.22s ease;
}

.process-card span{
  display:inline-flex;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  color:white;
  background:var(--primary);
  font-weight:900;
  margin-bottom:16px;
}

.process-card h3{
  margin:0 0 10px;
}

.process-card p{
  margin:0;
  color:var(--muted);
}

.ai-cloud{
  max-width:none;
  background:linear-gradient(135deg,#eff6ff,#f8fafc);
}

.cloud-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  max-width:1280px;
  margin:auto;
}

.cloud-copy{
  padding:34px;
  border-radius:24px;
  background:#0f172a;
  color:white;
  box-shadow:var(--shadow);
}

.cloud-copy h3{
  margin-top:0;
  color:white;
  font-size:28px;
}

.cloud-copy p{
  color:#dbeafe;
}

.compact{
  align-content:start;
}

.mini-card{
  padding:22px;
  border-radius:18px;
  background:white;
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  font-weight:900;
  text-align:center;
}

.about{
  padding:36px;
}

.about h2{
  margin-top:0;
}

.contact{
  padding:36px;
  background:var(--dark);
  color:white;
}

.contact h2{
  color:white;
  margin-top:0;
}

.contact a{
  color:#93c5fd;
  text-decoration:none;
  font-weight:900;
}

.site-footer{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  padding:30px 8%;
  color:#cbd5e1;
  background:#020617;
  border-top:4px solid var(--primary);
  font-size:14px;
}

.site-footer strong{
  color:white;
}

@media(max-width:1080px){
  .site-header{
    padding:14px 6%;
  }

  .site-nav{
    gap:12px;
  }

  .site-nav a{
    font-size:13px;
  }
}

@media(max-width:980px){
  .hero-inner,
  .cloud-layout{
    grid-template-columns:1fr;
  }

  .grid.four,
  .process-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .hero{
    min-height:auto;
  }
}

@media(max-width:820px){
  .site-header{
    align-items:flex-start;
  }

  .nav-toggle{
    display:block;
    margin-left:auto;
  }

  .site-nav{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    padding-top:14px;
  }

  .site-nav.open{
    display:flex;
  }

  .hero{
    padding:74px 6%;
  }

  .hero h1{
    letter-spacing:-1px;
  }

  .hero p{
    font-size:17px;
  }

  .hero-stats{
    grid-template-columns:1fr;
  }

  .section{
    padding:58px 6%;
  }

  .grid.four,
  .grid.three,
  .process-grid{
    grid-template-columns:1fr;
  }

  .site-footer{
    flex-direction:column;
  }
}


/* Sprint 3: Waiting List + Case Study + SEO polish */
.waiting-list{max-width:none;background:linear-gradient(135deg,#f8fafc,#eef6ff)}
.waiting-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:28px;max-width:1180px;margin:auto;align-items:start}
.waiting-copy,.lead-form{background:white;border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow-soft);padding:32px}
.waiting-copy h3{margin-top:0;font-size:28px;color:var(--dark)}
.waiting-copy ul{padding-left:22px;color:var(--muted)}
.lead-form{display:grid;gap:16px}
.lead-form label{display:grid;gap:8px;font-weight:800;color:var(--dark)}
.lead-form input,.lead-form select,.lead-form textarea{width:100%;border:1px solid var(--border);border-radius:14px;padding:12px 14px;font:inherit;background:#f8fafc;color:var(--text)}
.lead-form input:focus,.lead-form select:focus,.lead-form textarea:focus{outline:2px solid rgba(37,99,235,.24);border-color:var(--primary)}
.form-button{border:none;cursor:pointer}
.form-note{margin:0;color:var(--muted);font-size:13px}
.section-cta{text-align:center;margin-top:32px}
.case-hero{padding:92px 8%;background:linear-gradient(135deg,#020617,#1e3a8a);color:white;text-align:center}
.case-hero h1{margin:0 0 16px;font-size:clamp(38px,5vw,62px)}
.case-hero p{margin:0 auto;max-width:780px;color:#dbeafe;font-size:18px}
.case-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.case-card{padding:30px;background:white;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow-soft)}
.case-card h2{margin-top:0;color:var(--dark)}
.case-meta{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.case-meta span{padding:6px 10px;border-radius:999px;background:#eff6ff;color:#2563eb;font-weight:800;font-size:13px}
@media(max-width:900px){.waiting-layout,.case-detail-grid{grid-template-columns:1fr}}


/* Sprint 4A-2: AJAX form UI */
.hp-field{
  position:absolute !important;
  left:-9999px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.lead-form button[disabled]{
  opacity:.65;
  cursor:not-allowed;
}

.toast{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:3000;
  max-width:360px;
  padding:14px 18px;
  border-radius:16px;
  background:#0f172a;
  color:white;
  box-shadow:0 20px 50px rgba(15,23,42,.25);
  transform:translateY(20px);
  opacity:0;
  pointer-events:none;
  transition:.25s ease;
  font-weight:800;
}

.toast.show{
  transform:translateY(0);
  opacity:1;
}

.toast.success{background:#166534}
.toast.error{background:#b91c1c}
.toast.info{background:#0f172a}
.form-success{margin-top:14px;padding:14px;border:1px solid #86efac;border-radius:12px;background:#f0fdf4;color:#14532d}.form-success[hidden]{display:none}.form-success code{display:inline-block;margin-left:8px;overflow-wrap:anywhere}

.loading-overlay{
  position:fixed;
  inset:0;
  z-index:2500;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(2,6,23,.52);
  backdrop-filter:blur(4px);
}

.loading-overlay.show{
  display:flex;
}

.loader-card{
  display:grid;
  place-items:center;
  gap:14px;
  min-width:220px;
  padding:28px;
  border-radius:22px;
  background:white;
  color:#0f172a;
  box-shadow:0 30px 80px rgba(0,0,0,.32);
  font-weight:900;
}

.spinner{
  width:42px;
  height:42px;
  border:4px solid #dbeafe;
  border-top-color:#2563eb;
  border-radius:50%;
  animation:hg-spin .8s linear infinite;
}

@keyframes hg-spin{
  to{transform:rotate(360deg)}
}

/* v0.9.0 Production polish */
:focus-visible{outline:3px solid rgba(37,99,235,.55);outline-offset:3px}
img{max-width:100%}
@media(prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;scroll-behavior:auto !important;transition-duration:.01ms !important}}
@media(max-width:520px){.hero-actions .btn{width:100%}.section-heading h2{font-size:28px}.lead-form,.waiting-copy,.card,.about,.contact{padding:22px}}
@media print{.site-header,.site-footer,.hero-actions{display:none !important}body{background:white;color:black}.section,.hero{padding:20px}}

/* GPU service Stage 1 additions */
.card-link{margin-top:14px!important}.card-link a{color:var(--primary);font-weight:900;text-decoration:none}.cloud-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.cloud-secondary{color:#fff;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08)}.inline-service-link{display:inline-flex;margin-top:18px;color:var(--primary);font-weight:900;text-decoration:none}

/* Enterprise workflow automation landing page */
.automation-page{background:#f6f8fc}.automation-hero{padding:92px 8%;color:#fff;background:radial-gradient(circle at 78% 20%,rgba(34,197,94,.18),transparent 30%),radial-gradient(circle at 18% 82%,rgba(37,99,235,.3),transparent 34%),linear-gradient(135deg,#020617,#0f172a 56%,#172554)}
.automation-hero-inner{display:grid;grid-template-columns:1.08fr .92fr;gap:56px;align-items:center;max-width:1280px;margin:auto}.automation-kicker{display:inline-block;color:#86efac;font:900 12px/1.4 Consolas,monospace;letter-spacing:1.8px}.automation-kicker.dark{color:#2563eb}.automation-hero h1{max-width:820px;margin:16px 0 22px;font-size:clamp(42px,5.4vw,70px);line-height:1.06;letter-spacing:-2.2px}.automation-hero p{max-width:790px;color:#dbeafe;font-size:19px}.automation-disclaimer{margin-top:20px!important;padding-left:14px;border-left:3px solid #22c55e;font-size:13px!important;color:#cbd5e1!important}
.automation-console{overflow:hidden;border:1px solid rgba(255,255,255,.15);border-radius:24px;background:rgba(2,6,23,.72);box-shadow:0 34px 80px rgba(0,0,0,.35)}.automation-console-head{display:flex;align-items:center;gap:7px;padding:16px 20px;border-bottom:1px solid rgba(255,255,255,.1)}.automation-console-head span{width:9px;height:9px;border-radius:50%;background:#64748b}.automation-console-head span:nth-child(3){background:#22c55e}.automation-console-head b{margin-left:auto;color:#93c5fd;font:700 12px Consolas,monospace}.automation-console ol{list-style:none;margin:0;padding:24px}.automation-console li{display:flex;align-items:center;gap:14px;margin:12px 0;padding:16px;border:1px solid rgba(148,163,184,.17);border-radius:14px;background:rgba(255,255,255,.045)}.automation-console li b{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:10px;background:#2563eb}.automation-console li span{color:#e2e8f0;font-weight:800}
.automation-card-grid{display:grid;gap:20px}.automation-card-grid.six{grid-template-columns:repeat(3,minmax(0,1fr))}.automation-card-grid.cases{grid-template-columns:repeat(3,minmax(0,1fr))}.automation-card,.automation-case{padding:26px;border:1px solid #dbe4ef;border-radius:20px;background:#fff;box-shadow:var(--shadow-soft)}.automation-card>span,.automation-case>span{color:#2563eb;font:900 12px Consolas,monospace}.automation-card h3,.automation-case h3{margin:14px 0 9px;color:#0f172a}.automation-card p,.automation-case p{margin:0;color:#64748b}.automation-outcomes{max-width:none;background:#eaf2ff}.outcome-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;max-width:1180px;margin:auto}.automation-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;list-style:none;margin:0;padding:0}.automation-checklist li{position:relative;padding:18px 18px 18px 48px;border:1px solid #cfe1f8;border-radius:16px;background:#fff}.automation-checklist li::before{content:"✓";position:absolute;left:18px;color:#16a34a;font-weight:900}.automation-note{padding:30px;border-radius:22px;background:#0f172a;color:#fff}.automation-note strong{font-size:25px}.automation-note p{color:#cbd5e1}
.automation-flow{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}.automation-flow li{position:relative;padding:22px 14px;border:1px solid #dbe4ef;border-radius:18px;background:#fff;text-align:center;box-shadow:var(--shadow-soft)}.automation-flow li:not(:last-child)::after{content:"→";position:absolute;right:-13px;top:50%;z-index:2;color:#2563eb;font-weight:900}.automation-flow b{display:grid;place-items:center;width:36px;height:36px;margin:0 auto 12px;border-radius:50%;background:#dbeafe;color:#1d4ed8}.automation-flow span{font-size:14px;font-weight:900}.automation-cooperation{max-width:none;background:#f0fdf4}.pilot-card{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;padding:42px;border:1px solid #bfdbfe;border-radius:28px;background:linear-gradient(135deg,#fff,#eff6ff);box-shadow:var(--shadow)}.pilot-card h2{margin:10px 0;font-size:38px;color:#0f172a}.pilot-card p{color:#64748b}.pilot-card ul{columns:2;padding-left:22px}.pilot-card li{margin-bottom:10px}.pilot-card .btn{grid-column:1/-1;justify-self:start}.suitability{display:grid;grid-template-columns:1fr 1fr;gap:24px}.fit-card{padding:34px;border-radius:24px;background:#fff;box-shadow:var(--shadow-soft)}.fit-card h2{margin-top:0}.fit-card li{margin:10px 0}.fit-yes{border:1px solid #bbf7d0}.fit-no{border:1px solid #fecaca}
.automation-diagnosis{max-width:none;background:linear-gradient(135deg,#eef6ff,#f8fafc)}.diagnosis-layout{display:grid;grid-template-columns:.72fr 1.28fr;gap:28px;max-width:1180px;margin:auto;align-items:start}.diagnosis-layout>aside{position:sticky;top:110px;padding:30px;border-radius:22px;background:#0f172a;color:#fff}.diagnosis-layout>aside h3{margin-top:0;font-size:26px}.diagnosis-layout>aside p,.diagnosis-layout>aside li{color:#cbd5e1}.automation-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.automation-form-grid .span-two{grid-column:1/-1}.automation-contact{display:grid;grid-template-columns:.8fr 1.2fr;gap:30px;padding:38px;border-radius:24px;background:#0f172a;color:#fff}.automation-contact span,.automation-contact strong{display:block}.automation-contact span{color:#93c5fd}.automation-contact strong{font-size:30px}.automation-contact dl{display:grid;grid-template-columns:auto 1fr;gap:10px 20px;margin:0}.automation-contact dt{color:#94a3b8}.automation-contact dd{margin:0;font-weight:800}.automation-contact a{color:#bfdbfe;text-decoration:none}.automation-page .site-footer a{color:#bfdbfe;text-decoration:none}
@media(max-width:1050px){.automation-hero-inner,.outcome-layout,.diagnosis-layout{grid-template-columns:1fr}.automation-card-grid.six{grid-template-columns:repeat(2,minmax(0,1fr))}.automation-flow{grid-template-columns:repeat(3,minmax(0,1fr))}.automation-flow li:nth-child(3)::after{display:none}.diagnosis-layout>aside{position:static}}
@media(max-width:760px){.automation-hero{padding:70px 6%}.automation-hero h1{letter-spacing:-1.2px}.automation-card-grid.six,.automation-card-grid.cases,.automation-checklist,.automation-flow,.suitability,.automation-form-grid,.automation-contact,.pilot-card{grid-template-columns:1fr}.automation-flow li::after{display:none}.pilot-card{padding:28px}.pilot-card ul{columns:1}.pilot-card .btn{grid-column:auto;width:100%}.automation-form-grid .span-two{grid-column:auto}.automation-contact dl{grid-template-columns:1fr}.automation-contact dd{margin-bottom:8px}}
