:root {
  --blue: #174ea6;
  --blue-bright: #2563c7;
  --navy: #071b3d;
  --ink: #101114;
  --muted: #6e6e73;
  --paper: #fff;
  --soft: #f5f5f7;
  --line: rgba(0, 0, 0, .14);
  --max: 1024px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--paper); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #68a4ff; outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.global-header { height: 44px; background: rgba(250, 250, 252, .9); backdrop-filter: saturate(180%) blur(18px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.global-nav { width: min(100%, var(--max)); height: 44px; margin: auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.global-nav .symbol { display: flex; align-items: center; width: 150px; height: 44px; flex: 0 0 150px; }
.global-nav .symbol img { display: block; width: 145px; height: auto; object-fit: contain; }
.global-nav nav { display: flex; align-items: center; gap: 34px; font-size: 12px; color: #303033; }
.global-nav nav a:hover { color: var(--blue); }
.global-nav .nav-cta { min-height: 30px; padding: 6px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 650; }
.global-nav .nav-cta:hover { background: var(--blue-bright); color: #fff; }
.menu-toggle { display: none; border: 0; background: none; font: inherit; color: var(--ink); }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 7px 15px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; }
.pill:hover { background: var(--blue-bright); }
.product-hero { min-height: 870px; display: flex; flex-direction: column; align-items: center; overflow: hidden; text-align: center; padding: 94px 20px 0; }
.agency-hero { background: #fff; }
.amplytrix-hero { background: var(--soft); }
.hero-copy { position: relative; z-index: 2; width: 100%; min-width: 0; }
.product-name { margin: 0 0 12px; color: var(--blue); font-size: 22px; font-weight: 700; letter-spacing: -.035em; }
.product-hero h1, .product-hero h2 { margin: 0 auto; max-width: 980px; font-size: clamp(48px, 6vw, 80px); line-height: .98; letter-spacing: -.064em; font-weight: 720; }
.product-subtitle { margin: 18px 0 0; color: #27272a; font-size: clamp(19px, 2vw, 28px); letter-spacing: -.025em; }
.hero-actions { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }
.hero-actions .pill { min-height: 40px; padding: 9px 20px; font-size: 15px; }
.learn { color: var(--blue); font-size: 18px; }
.learn:hover { text-decoration: underline; }
.product-visual { display: block; width: min(100%, 1120px); margin: auto auto 0; line-height: 0; }
.product-visual img { display: block; width: 100%; max-width: 100%; height: auto; mix-blend-mode: multiply; }
.amplytrix-hero .product-visual { width: min(100%, 1040px); }

.system-story { background: var(--navy); color: #fff; padding: 150px max(24px, calc((100vw - 1120px)/2)); }
.overline { margin: 0 0 18px; color: #86b4ff; font-size: 17px; font-weight: 650; }
.system-story > h2 { margin: 0; max-width: 980px; font-size: clamp(44px, 6vw, 78px); line-height: 1; letter-spacing: -.06em; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 86px; }
.story-grid article { min-height: 290px; padding: 34px; border-radius: 26px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.story-grid span { color: #86b4ff; font-size: 13px; font-weight: 700; }
.story-grid h3 { margin: 54px 0 12px; font-size: 36px; letter-spacing: -.05em; }
.story-grid p { margin: 0; max-width: 430px; color: #c7d5ea; font-size: 18px; line-height: 1.45; }
.closing-cta { min-height: 540px; padding: 120px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fff; }
.closing-cta h2 { margin: 0; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -.058em; }
.closing-cta p { margin: 22px auto 30px; max-width: 620px; color: var(--muted); font-size: 20px; }
.closing-cta .pill { min-height: 44px; padding: 10px 22px; font-size: 15px; }
.site-footer { min-height: 92px; background: var(--soft); border-top: 1px solid var(--line); padding: 28px max(22px, calc((100vw - var(--max))/2 + 22px)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--muted); font-size: 12px; }
.site-footer .symbol { display: flex; align-items: center; width: 120px; }
.site-footer .symbol img { display: block; width: 120px; height: auto; object-fit: contain; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 22px; }
.site-footer nav a:hover { color: var(--blue); }

@media (max-width: 760px) {
  .global-nav { padding: 0 16px; }
  .menu-toggle { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 72px; min-height: 44px; padding: 0; color: #101114; font-size: 14px; font-weight: 650; position: relative; z-index: 2; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .global-nav nav { display: none; position: absolute; inset: 44px 0 auto; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; font-size: 17px; }
  .global-nav nav.is-open { display: flex; }
  .global-nav nav a { width: 100%; min-height: 48px; display: flex; align-items: center; }
  .global-nav .nav-cta { margin-top: 8px; width: max-content; min-height: 40px; padding: 8px 16px; }
  .product-hero { min-height: 0; padding: 64px 20px 0; overflow: visible; }
  .product-name { font-size: 18px; }
  .product-hero h1, .product-hero h2 { width: 100%; max-width: calc(100vw - 40px); font-size: clamp(36px, 10.5vw, 48px); line-height: 1.02; letter-spacing: -.048em; overflow-wrap: anywhere; word-break: normal; white-space: normal; }
  .product-subtitle { max-width: 330px; margin-left: auto; margin-right: auto; font-size: 18px; line-height: 1.3; }
  .hero-actions { gap: 16px; }
  .product-visual, .amplytrix-hero .product-visual { width: 100%; max-width: 620px; margin: 48px auto 0; }
  .system-story { padding: 100px 20px; }
  .system-story > h2 { font-size: clamp(38px, 11vw, 48px); overflow-wrap: break-word; }
  .story-grid { grid-template-columns: 1fr; margin-top: 56px; }
  .story-grid article { min-height: 250px; }
  .closing-cta { min-height: 480px; padding: 90px 20px; }
  .site-footer { grid-template-columns: 1fr auto; gap: 16px; }
  .site-footer p { grid-column: 1/-1; grid-row: 2; }
}

@media (max-width: 360px) {
  .product-hero { padding-left: 18px; padding-right: 18px; }
  .product-hero h1, .product-hero h2 { max-width: calc(100vw - 36px); font-size: 33px; }
  .hero-actions { flex-direction: column; gap: 14px; }
  .system-story { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
