/* ============ Tokens ============ */
:root{
  --bg: #07090c;
  --bg-soft: #0b0e13;
  --surface: #12151b;
  --surface-2: #171b22;
  --line: rgba(244,246,249,0.09);
  --line-strong: rgba(244,246,249,0.16);

  --primary: #2272ff;
  --primary-dim: #1a4fb8;
  --primary-glow: #7aabff;
  --primary-ink: #041225;

  --amber: #ffb238;
  --mint: #34d399;

  --text: #f4f6f9;
  --text-muted: #a2acbd;
  --text-faint: #63697a;

  --font-display: 'Clash Display', 'Public Sans', sans-serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1200px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.16,.84,.44,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img{ max-width:100%; display:block; }

a{ color:inherit; text-decoration:none; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

p{ margin:0; }

::selection{ background: var(--primary); color:#fff; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px){
  .container{ padding: 0 40px; }
}

section{ position: relative; }

.section-pad{ padding: 96px 0; }
@media (min-width: 900px){
  .section-pad{ padding: 132px 0; }
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before{
  content:"";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(34,114,255,0.22);
  flex-shrink: 0;
}

.eyebrow.muted{ color: var(--text-faint); }
.eyebrow.muted::before{ background: var(--text-faint); box-shadow: 0 0 0 3px rgba(255,255,255,0.06); }

/* ============ Background texture ============ */
.bg-grid{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244,246,249,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,246,249,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 10%, transparent 70%);
}

/* ============ Buttons ============ */
.btn{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 14px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn:active{ transform: scale(0.97); }
.btn:focus-visible{ outline: 2px solid var(--primary-glow); outline-offset: 3px; }

.btn-primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 12px 24px -12px rgba(34,114,255,0.65);
}
.btn-primary:hover{ background: #3b82ff; transform: translateY(-2px); }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover{ border-color: var(--primary-glow); background: rgba(34,114,255,0.08); transform: translateY(-2px); }

.btn-sm{ padding: 10px 18px; font-size: 13.5px; }

/* ============ Header ============ */
header{
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
header.scrolled{
  background: rgba(7,9,12,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
header.scrolled .brand img{ height: 46px; }
.nav-row{ display:flex; align-items:center; justify-content:space-between; gap: 24px; }
.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand img{ height: 58px; width:auto; transition: height 0.4s var(--ease); }
@media (min-width: 640px){ .brand img{ height: 68px; } }

.nav-links{ display:none; align-items:center; gap: 30px; }
.nav-links a{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a:hover{ color: var(--text); }
.nav-links a.active{ color: var(--text); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--primary);
  border-radius: 2px;
}
@media (min-width: 960px){ .nav-links{ display:flex; } }

.nav-cta{ display:none; align-items:center; gap:14px; }
@media (min-width: 960px){ .nav-cta{ display:flex; } }

.menu-toggle{
  display:flex;
  background:none; border: 1px solid var(--line-strong); border-radius: 10px;
  width: 42px; height: 42px; align-items:center; justify-content:center;
  color: var(--text); cursor:pointer;
}
@media (min-width: 960px){ .menu-toggle{ display:none; } }

.mobile-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.mobile-panel.open{ max-height: 420px; }
.mobile-panel-inner{ padding: 18px 0 6px; display:flex; flex-direction:column; gap: 4px; }
.mobile-panel-inner a{
  padding: 12px 4px; font-size: 15.5px; font-weight:500; color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.mobile-panel-inner a.active{ color: var(--primary-glow); }
.mobile-panel-inner .btn{ margin-top: 14px; justify-content:center; }

/* ============ Hero ============ */
.hero{ padding: 64px 0 40px; }
@media (min-width: 900px){ .hero{ padding: 84px 0 60px; } }

.hero-grid{
  display:grid;
  grid-template-columns: minmax(0,1fr);
  gap: 56px;
  align-items:center;
}
.hero-grid > *{ min-width: 0; }
@media (min-width: 1024px){
  .hero-grid{ grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); gap: 40px; }
}

.hero h1{
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  margin: 20px 0 22px;
  color: var(--text);
}
.hero h1 em{
  font-style: normal;
  background: linear-gradient(100deg, var(--primary-glow), var(--primary) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead{
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-ctas{ display:flex; flex-wrap:wrap; gap: 14px; margin-bottom: 44px; min-width:0; }

.trust-strip{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  min-width: 0;
}
.trust-chip{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border: 1px solid var(--line);
  background: rgba(244,246,249,0.02);
  border-radius: 999px;
  padding: 8px 14px;
  display:flex; align-items:center; gap:8px;
}
.trust-chip .dot{ width:6px; height:6px; border-radius:50%; background: var(--mint); flex-shrink:0; }

/* ============ Hero visual: arc stack ============ */
.hero-visual{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  max-width: 560px;
  margin: 0 auto;
}
.arc-stage{ width:100%; height:100%; overflow: visible; }
.arc-node-label{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  fill: var(--text-muted);
}

@keyframes pulseDash{
  0%{ stroke-dashoffset: 0; }
  100%{ stroke-dashoffset: -240; }
}
.arc-flow{
  stroke-dasharray: 3 14;
  animation: pulseDash 5.5s linear infinite;
}

@keyframes nodeGlow{
  0%,100%{ opacity: 0.55; r: 4.5; }
  50%{ opacity: 1; r: 6; }
}
.arc-node-dot{ animation: nodeGlow 2.8s ease-in-out infinite; }
.arc-node-dot.d1{ animation-delay: 0s; }
.arc-node-dot.d2{ animation-delay: 0.5s; }
.arc-node-dot.d3{ animation-delay: 1s; }
.arc-node-dot.d4{ animation-delay: 1.5s; }

.term-card{
  position:absolute;
  left: 4%;
  bottom: 2%;
  width: min(310px, 74%);
  background: rgba(18,21,27,0.92);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.term-head{
  display:flex; align-items:center; gap:7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.term-dot{ width:9px; height:9px; border-radius:50%; }
.term-body{
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  padding: 14px 16px 16px;
  color: var(--text-muted);
}
.term-body .ok{ color: var(--mint); }
.term-body .path{ color: var(--primary-glow); }
.term-body .cursor{
  display:inline-block; width:6px; height:12px; background: var(--primary-glow);
  animation: blink 1s step-end infinite; vertical-align: -2px;
}
@keyframes blink{ 50%{ opacity:0; } }

/* ============ Page header (inner pages) ============ */
.page-hero{ padding: 60px 0 20px; }
@media (min-width: 900px){ .page-hero{ padding: 76px 0 20px; } }
.page-hero h1{ font-size: clamp(2rem, 4.4vw, 3rem); margin: 18px 0 20px; }
.page-hero p.lead{ font-size: 17px; color: var(--text-muted); max-width: 620px; }

/* ============ Section headers ============ */
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 16px; }
.section-head p{ color: var(--text-muted); font-size: 16.5px; margin-top: 16px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ============ Services grid ============ */
.grid-4{
  display:grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px){ .grid-4{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px){ .grid-4{ grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.card{
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover{
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -28px rgba(0,0,0,0.6);
}
.card-icon{
  width: 46px; height:46px;
  border-radius: 12px;
  background: rgba(34,114,255,0.12);
  border: 1px solid rgba(34,114,255,0.25);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px;
  color: var(--primary-glow);
}
.card h3{ font-size: 18.5px; font-weight: 600; margin-bottom: 10px; color: var(--text); font-family: var(--font-body); letter-spacing: -0.01em; }
.card p{ font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

/* ============ Service detail list (Solutions page) ============ */
.card-includes{ list-style:none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display:flex; flex-direction:column; gap: 9px; }
.card-includes li{ font-size: 13px; color: var(--text-muted); display:flex; gap: 9px; align-items:flex-start; line-height:1.5; }
.card-includes li::before{ content:""; width:5px; height:5px; border-radius:50%; background: var(--primary-glow); margin-top: 7px; flex-shrink:0; }

/* ============ Process ============ */
.process-list{
  display:grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px){ .process-list{ grid-template-columns: repeat(4, 1fr); } }

.process-item{
  padding: 30px 8px 30px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 900px){
  .process-item{ border-right: 1px solid var(--line); padding: 34px 24px; }
  .process-item:last-child{ border-right: none; }
}
.process-num{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary-glow);
  margin-bottom: 14px;
  display:block;
}
.process-item h3{ font-size: 17px; font-family: var(--font-body); font-weight:700; margin-bottom: 10px; }
.process-item p{ font-size: 14px; color: var(--text-muted); line-height:1.65; }

/* ============ Statement band ============ */
.statement{
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(34,114,255,0.09), transparent 70%);
}
.statement p{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  max-width: 820px;
  margin: 0 auto;
  color: var(--text);
}
.statement p span{ color: var(--text-faint); }

/* ============ Why cloud-native ============ */
.why-grid{
  display:grid;
  grid-template-columns: minmax(0,1fr);
  gap: 48px;
  align-items:center;
}
.why-grid > *{ min-width: 0; }
@media (min-width: 980px){ .why-grid{ grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr); gap: 64px; } }

.principle-list{ display:flex; flex-direction:column; gap: 0; margin-top: 8px; }
.principle{
  display:flex; gap:16px; padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.principle:first-child{ border-top: 1px solid var(--line); }
.principle-icon{
  flex-shrink:0; width:34px; height:34px; border-radius:9px;
  background: rgba(52,211,153,0.1); border:1px solid rgba(52,211,153,0.28);
  display:flex; align-items:center; justify-content:center; color: var(--mint);
  margin-top: 2px;
}
.principle h4{ font-family: var(--font-body); font-size:15.5px; font-weight:700; margin-bottom:5px; }
.principle p{ font-size: 14px; color: var(--text-muted); line-height:1.6; }

.diagram-card{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px;
  position: relative;
  overflow:hidden;
}
.diagram-card::before{
  content:"";
  position:absolute; inset:-40% -10% auto auto; width:70%; aspect-ratio:1;
  background: radial-gradient(circle, rgba(34,114,255,0.18), transparent 70%);
  pointer-events:none;
}

/* ============ Contact ============ */
.contact-grid{
  display:grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 760px){ .contact-grid{ grid-template-columns: repeat(3, 1fr); } }

.contact-card{
  border:1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  background: var(--surface);
}
.contact-card .label{ font-family: var(--font-mono); font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase; color: var(--text-faint); margin-bottom:12px; display:block; }
.contact-card .value{ font-size: 16px; font-weight:600; }
.contact-card .value.small{ font-size: 14.5px; font-weight:500; color: var(--text-muted); line-height:1.6; }
.contact-card a.value:hover{ color: var(--primary-glow); }

/* ============ CTA band (used on inner pages) ============ */
.cta-band{
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(34,114,255,0.14), rgba(18,21,27,0.4));
  padding: 52px 32px;
  display:flex; flex-direction:column; gap: 26px;
  align-items:flex-start;
}
@media (min-width: 860px){
  .cta-band{ flex-direction:row; align-items:center; justify-content:space-between; padding: 56px 60px; }
}
.cta-band h3{ font-size: clamp(1.4rem, 2.8vw, 1.9rem); max-width: 480px; }
.cta-band p{ color: var(--text-muted); margin-top: 12px; max-width: 460px; font-size: 15px; }

/* ============ Footer ============ */
footer{ border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-top{
  display:grid; grid-template-columns: 1fr; gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 860px){ .footer-top{ grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img{ height: 54px; margin-bottom: 18px; }
.footer-brand p{ color: var(--text-faint); font-size: 13.5px; max-width: 320px; line-height:1.7; }
.footer-col h5{ font-family: var(--font-mono); font-size:11px; letter-spacing:0.12em; text-transform:uppercase; color: var(--text-faint); margin-bottom:18px; }
.footer-col a, .footer-col p{ display:block; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; line-height:1.6; }
.footer-col a:hover{ color: var(--text); }
.footer-bottom{
  border-top: 1px solid var(--line); padding-top: 26px;
  display:flex; flex-direction:column; gap:10px;
  font-size: 12.5px; color: var(--text-faint);
}
@media (min-width: 700px){ .footer-bottom{ flex-direction:row; justify-content:space-between; align-items:center; } }

/* ============ Reveal on scroll ============ */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in{ opacity:1; transform: none; }

.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--primary); color:#fff;
  padding: 10px 16px; border-radius: 8px; z-index: 1000;
}
.skip-link:focus{ left: 16px; top: 16px; }
