/* ============================================================
   Grome Design System — Colors & Type
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Space Grotesk';
  src: url('project/fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype-variations'),
       url('project/fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('project/fonts/SpaceGrotesk-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('project/fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('project/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('project/fonts/SpaceGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('project/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --grome-blue:        #2E6BE6;
  --grome-blue-600:    #2558c2;
  --grome-blue-700:    #1e48a0;
  --grome-teal:        #00C897;
  --grome-teal-600:    #00a87e;
  --grome-navy:        #1A3066;
  --grome-navy-900:    #11214a;

  --surface-0:         #FFFFFF;
  --surface-1:         #F0F4FF;
  --surface-2:         #E6ECFA;
  --surface-dark:      #1A3066;

  --fg-1:              #1A2B4A;
  --fg-2:              #546080;
  --fg-3:              #8a93ad;
  --fg-on-dark:        #FFFFFF;
  --fg-on-dark-2:      rgba(255, 255, 255, 0.72);

  --border-1:          #DDE3F5;
  --border-2:          #C8D2EC;
  --border-on-dark:    rgba(255, 255, 255, 0.12);

  --gradient-primary:  linear-gradient(135deg, #2E6BE6 0%, #00C897 100%);
  --gradient-soft:     linear-gradient(135deg, #F0F4FF 0%, #E6F8F2 100%);
  --gradient-text:     linear-gradient(135deg, #2E6BE6 0%, #00C897 100%);

  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  --shadow-xs:   0 1px 2px rgba(26, 48, 102, 0.04);
  --shadow-sm:   0 2px 6px rgba(26, 48, 102, 0.06), 0 1px 2px rgba(26, 48, 102, 0.04);
  --shadow-md:   0 6px 20px rgba(26, 48, 102, 0.08), 0 2px 4px rgba(26, 48, 102, 0.04);
  --shadow-lg:   0 18px 40px rgba(26, 48, 102, 0.10), 0 4px 8px rgba(26, 48, 102, 0.04);
  --shadow-glow: 0 12px 32px rgba(46, 107, 230, 0.22);

  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-display: clamp(48px, 6vw, 84px);
  --fs-h1:      clamp(40px, 4.5vw, 60px);
  --fs-h2:      clamp(32px, 3.2vw, 44px);
  --fs-h3:      28px;
  --fs-h4:      22px;
  --fs-lead:    20px;
  --fs-body:    16px;
  --fs-sm:      14px;
  --fs-xs:      12px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:    140ms;
  --dur-base:    220ms;
  --dur-slow:    400ms;
}

/* ============================================================
   Reset & Base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; scroll-behavior: smooth; }

body {
  background: var(--surface-0);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--grome-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; line-height: 1.2; }

p { margin: 0; color: var(--fg-1); text-wrap: pretty; }

a {
  color: var(--grome-blue);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--grome-blue-600); }

/* ============================================================
   Layout
   ============================================================ */

.gw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   Navbar
   ============================================================ */

.gw-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border-1);
  transition: box-shadow var(--dur-base) var(--ease-out);
}

.gw-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.gw-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.gw-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--grome-navy);
}

.gw-logo img {
  width: 30px;
  height: 30px;
  display: block;
}

.gw-logo:hover { color: var(--grome-navy); }

.gw-nav-links {
  display: flex;
  gap: 28px;
}

.gw-nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-2);
}

.gw-nav-links a:hover { color: var(--grome-navy); }

/* ============================================================
   Buttons
   ============================================================ */

.gw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.gw-btn .arr {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}

.gw-btn:hover .arr { transform: translateX(3px); }

.gw-btn.primary {
  background: var(--grome-blue);
  color: white;
}
.gw-btn.primary:hover {
  background: var(--grome-blue-600);
  color: white;
}

.gw-btn.gradient {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}
.gw-btn.gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(46, 107, 230, 0.30);
  color: white;
}

.gw-btn.secondary {
  background: white;
  color: var(--grome-navy);
  border-color: var(--border-2);
}
.gw-btn.secondary:hover {
  background: var(--surface-1);
  color: var(--grome-navy);
}

.gw-btn.ghost {
  background: transparent;
  color: var(--grome-blue);
  padding-inline: 10px;
}
.gw-btn.ghost:hover { color: var(--grome-blue-600); }

.gw-btn.large {
  padding: 16px 30px;
  font-size: 16px;
}

.gw-btn:active { transform: translateY(0) scale(0.98); }

/* ============================================================
   Sections
   ============================================================ */

.gw-section { padding: 96px 0; }
.gw-section.tight { padding: 72px 0; }
.gw-section.bg-soft { background: var(--surface-1); }
.gw-section.bg-dark { background: var(--grome-navy); color: var(--fg-on-dark); }
.gw-section.bg-dark h2, .gw-section.bg-dark h3 { color: white; }

.gw-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grome-blue);
  margin: 0 0 16px;
}

.bg-dark .gw-eyebrow { color: var(--grome-teal); }

.gw-section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.gw-section-head h2 { margin: 0 0 16px; }

.gw-section-head .lead {
  color: var(--fg-2);
  font-size: 19px;
  line-height: 1.5;
}

.bg-dark .gw-section-head .lead { color: var(--fg-on-dark-2); }

/* ============================================================
   Hero
   ============================================================ */

.gw-hero {
  padding: 88px 0 112px;
  position: relative;
  overflow: hidden;
}

.gw-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.gw-hero h1 {
  font-size: clamp(44px, 5.4vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 24px;
}

.gw-hero h1 .accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gw-hero .lead {
  font-size: 20px;
  color: var(--fg-2);
  margin: 0 0 36px;
  max-width: 540px;
  line-height: 1.5;
}

.gw-hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.gw-hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-1);
  flex-wrap: wrap;
}

.gw-hero-meta-item {
  font-size: 13px;
  color: var(--fg-2);
}

.gw-hero-meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--grome-navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Hero visual — stacked dashboard cards */

.gw-hero-visual {
  position: relative;
  height: 480px;
}

.gw-hv-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.gw-hv-card.a { top: 0;    left: 0;   width: 280px; }
.gw-hv-card.b { top: 130px; right: 0;  width: 300px; }
.gw-hv-card.c { bottom: 0; left: 60px; width: 320px; }

.gw-hv-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 12px;
}

.gw-hv-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--grome-navy);
  font-size: 17px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.gw-hv-sub {
  font-size: 13px;
  color: var(--fg-2);
  margin: 0;
}

.gw-hv-bar {
  height: 6px;
  background: var(--surface-1);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-top: 14px;
}

.gw-hv-bar > span {
  display: block;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--r-pill);
}

.gw-hv-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.025em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 4px;
}

.gw-hv-bar-row {
  margin-top: 10px;
}

.gw-hv-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-2);
  margin-bottom: 4px;
}

.gw-hv-bar-labels strong {
  color: var(--grome-navy);
  font-weight: 600;
}

/* ============================================================
   Services
   ============================================================ */

.gw-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gw-service {
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-base) var(--ease-out);
}

.gw-service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-2);
}

.gw-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-1);
  color: var(--grome-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all var(--dur-base) var(--ease-out);
}

.gw-service:hover .gw-service-icon {
  background: var(--gradient-primary);
  color: white;
}

.gw-service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  margin-bottom: 10px;
}

.gw-service h3 { font-size: 19px; margin: 0 0 8px; line-height: 1.25; }
.gw-service p  { font-size: 14.5px; color: var(--fg-2); line-height: 1.55; margin: 0; }

/* ============================================================
   How It Works
   ============================================================ */

.gw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gw-step { padding: 28px; }

.gw-step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.gw-step h3 { font-size: 22px; margin: 0 0 10px; }
.gw-step p  { color: var(--fg-2); font-size: 15px; line-height: 1.55; }

/* ============================================================
   Cases
   ============================================================ */

.gw-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gw-case {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-1);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all var(--dur-base) var(--ease-out);
}

.gw-case:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gw-case-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gw-case-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grome-blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  border: 1px solid var(--border-1);
  flex-shrink: 0;
}

.gw-case-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--grome-navy);
  letter-spacing: -0.015em;
}

.gw-case-tag {
  font-size: 12px;
  color: var(--fg-2);
  margin-top: 2px;
}

.gw-case-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.gw-case-block .lbl {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 600;
  margin-bottom: 6px;
}

.gw-case-block .val {
  font-size: 14.5px;
  color: var(--fg-1);
  line-height: 1.5;
}

.gw-case-result {
  background: var(--surface-1);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.gw-case-result .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.025em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.gw-case-result .desc {
  font-size: 14px;
  color: var(--grome-navy);
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================================
   Final CTA
   ============================================================ */

.gw-cta {
  background: var(--grome-navy);
  border-radius: var(--r-xl);
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
}

.gw-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 200, 151, 0.22), transparent 50%),
    radial-gradient(circle at 15% 90%, rgba(46, 107, 230, 0.32), transparent 55%);
  pointer-events: none;
}

.gw-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.gw-cta .gw-eyebrow { color: var(--grome-teal); }

.gw-cta h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  color: white;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.gw-cta p {
  color: var(--fg-on-dark-2);
  font-size: 17px;
  margin: 0 0 28px;
  line-height: 1.5;
  max-width: 480px;
}

.gw-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.gw-cta .gw-btn.secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}
.gw-cta .gw-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.gw-cta-side {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.gw-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: white;
  font-size: 15px;
}

.gw-cta-row + .gw-cta-row { border-top: 1px solid rgba(255, 255, 255, 0.08); }

.gw-cta-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grome-teal);
  flex-shrink: 0;
}

.gw-cta-lbl {
  font-size: 11px;
  color: var(--fg-on-dark-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* ============================================================
   Footer
   ============================================================ */

.gw-footer {
  padding: 64px 0 36px;
  background: white;
  border-top: 1px solid var(--border-1);
}

.gw-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.gw-footer .gw-logo { margin-bottom: 14px; }

.gw-footer-blurb {
  color: var(--fg-2);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.55;
}

.gw-footer-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 14px;
}

.gw-footer-col a {
  display: block;
  font-size: 14px;
  color: var(--grome-navy);
  margin-bottom: 8px;
  font-weight: 500;
}
.gw-footer-col a:hover { color: var(--grome-blue); }

.gw-footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-1);
  font-size: 13px;
  color: var(--fg-2);
}

/* ============================================================
   Scroll-reveal animation
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .gw-container { padding: 0 24px; }
  .gw-hero { padding: 64px 0 80px; }
  .gw-hero-grid { grid-template-columns: 1fr; }
  .gw-hero-visual { display: none; }
  .gw-services-grid { grid-template-columns: 1fr 1fr; }
  .gw-steps { grid-template-columns: 1fr; }
  .gw-cases { grid-template-columns: 1fr; }
  .gw-cta { padding: 48px 32px; }
  .gw-cta-inner { grid-template-columns: 1fr; }
  .gw-footer-grid { grid-template-columns: 1fr 1fr; }
  .gw-nav-links { display: none; }
}

@media (max-width: 560px) {
  .gw-services-grid { grid-template-columns: 1fr; }
  .gw-footer-grid { grid-template-columns: 1fr; }
  .gw-case-body { grid-template-columns: 1fr; }
  .gw-cta { padding: 40px 24px; }
  .gw-hero-meta { gap: 16px; }
}
