@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --ink:      #0B0B0B;
  --ink-soft: #6B6B6B;
  --blue:     #0052FF;
  --line:     #E8E8E8;
  --white:    #FFFFFF;
  --bg:       #F5F5F5;

  --header-h:  60px;
  --toolbar-h: 52px;
  --radius:    12px;
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.header-brand {
  font-size: 13px;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.header-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
}

.header-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--transition);
}

.header-back:hover {
  color: var(--ink);
}

.header-back svg {
  display: block;
  flex-shrink: 0;
}

/* ─── Main (gateway page) ────────────────────────────────── */
.gateway-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 24px 80px;
}

.gateway-inner {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* ─── Intro block ────────────────────────────────────────── */
.intro {
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.intro h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.intro p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 520px;
}

.intro p strong {
  font-weight: 600;
  color: var(--ink);
}

/* ─── Cards ──────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

/* Blue card */
.card--blue {
  background: var(--blue);
  color: var(--white);
  border: 1px solid transparent;
}

.card--blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 82, 255, 0.32);
}

.card--blue .card-icon {
  color: rgba(255, 255, 255, 0.7);
}

.card--blue .card-title {
  color: var(--white);
}

.card--blue .card-desc {
  color: rgba(255, 255, 255, 0.72);
}

.card--blue .card-cta {
  color: var(--white);
}

/* White card */
.card--white {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.card--white:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(0, 82, 255, 0.10);
  transform: translateY(-2px);
}

.card--white .card-icon {
  color: var(--ink-soft);
}

.card--white .card-title {
  color: var(--ink);
}

.card--white .card-desc {
  color: var(--ink-soft);
}

.card--white .card-cta {
  color: var(--blue);
}

/* Card internals */
.card-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 8px;
}

.card-cta svg {
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.card:hover .card-cta svg {
  transform: translate(2px, -2px);
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ─── Figma page overrides ───────────────────────────────── */
body.figma-page {
  overflow: hidden;
}


/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header {
    padding: 0 20px;
  }

  .gateway-main {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 64px;
  }

  .gateway-inner {
    gap: 32px;
  }

  .intro {
    gap: 12px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 24px;
    gap: 16px;
  }

}
