/* ============================================================
   G2G AEO — main.css
   Color tokens per CONVENTIONS §2.1
   Breakpoints per ARCHITECTURE §3.3 : mobile <768, tablet 768-1023, desktop 1024+
============================================================ */

:root {
  --c-primary: #FFA366;
  --c-primary-soft: #FFC999;
  --c-dark: #0D0D0D;
  --c-dark-2: #1A1A1A;
  --c-dark-3: #222222;
  --c-text-dark: #111111;
  --c-text-muted: #6b6b6b;
  --c-text-on-dark: #ffffff;
  --c-text-on-dark-muted: #9a9a9a;
  --c-border: #2a2a2a;
  --c-border-light: #e5e5e5;
  --c-bg: #ffffff;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --section-pad-y: clamp(80px, 8vw, 120px);
  --container: 1200px;

  --fs-hero: clamp(40px, 6vw, 72px);
  --fs-section: clamp(28px, 3.4vw, 44px);
  --fs-body: 16px;
  --fs-lead: clamp(16px, 1.4vw, 18px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
               'Pretendard', 'Segoe UI', Roboto, 'Malgun Gothic', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text-dark);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
strong { font-weight: 700; }

/* Utilities */
.only-desktop { display: none; }
@media (min-width: 1024px) { .only-desktop { display: inline; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-dark); color: var(--c-text-on-dark); }
.btn--primary:hover { background: #000; }
.btn--dark { background: var(--c-dark); color: var(--c-text-on-dark); }
.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
}
.btn--lg { padding: 18px 32px; font-size: 17px; }

/* Section containers */
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad-y) 24px;
}
.section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  margin-bottom: 16px;
  font-family: 'SFMono-Regular', Consolas, monospace;
}
.section__title {
  font-size: var(--fs-section);
  font-weight: 800;
  margin-bottom: 20px;
}
.section__lead {
  font-size: var(--fs-lead);
  color: var(--c-text-muted);
  max-width: 680px;
  margin-bottom: 56px;
}
.accent { color: inherit; position: relative; }
.accent::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 40%; background: var(--c-primary);
  z-index: -1; opacity: .7;
}

/* =========================================================
   F-11 Navigation
========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border-light);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
}
.nav__logo-mark {
  background: var(--c-primary);
  color: var(--c-dark);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 14px;
}
.nav__logo-img {
  height: 84px;
  width: auto;
  display: block;
}
.nav__logo-text em {
  font-style: normal;
  color: var(--c-dark);
  font-weight: 700;
  background: var(--c-primary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav__menu { display: none; align-items: center; gap: 28px; }
.nav__menu > a, .nav__dropdown-toggle {
  font-weight: 500; color: var(--c-text-dark);
  padding: 6px 2px;
  transition: color .2s var(--ease);
}
.nav__menu > a:hover, .nav__dropdown-toggle:hover { color: var(--c-text-muted); }

.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: -12px;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s var(--ease);
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__dropdown-menu a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
}
.nav__dropdown-menu a:hover { background: #f5f5f5; }

.nav__hamburger {
  display: flex; flex-direction: column; gap: 5px;
  padding: 10px;
}
.nav__hamburger span {
  width: 22px; height: 2px; background: var(--c-dark); border-radius: 2px;
}

.nav__mobile {
  padding: 10px 24px 24px;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--c-border-light);
}
.nav__mobile a { padding: 12px 6px; border-radius: var(--radius-sm); }
.nav__mobile a:hover { background: #f5f5f5; }

@media (min-width: 1024px) {
  .nav__menu { display: flex; }
  .nav__hamburger { display: none; }
  .nav__mobile { display: none !important; }
}

/* =========================================================
   F-01 Hero
========================================================= */
.hero {
  background: var(--c-primary);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(13,13,13,.06), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(13,13,13,.05), transparent 40%);
  pointer-events: none;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(100px, 14vw, 180px) 24px clamp(80px, 10vw, 140px);
  position: relative;
}
.hero__tag {
  display: inline-block;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--c-dark);
  padding: 6px 14px;
  border: 1.5px solid var(--c-dark);
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  color: var(--c-dark);
  margin-bottom: 28px;
}
.hero__title-em {
  display: inline-block;
  padding: 0 4px;
  background: var(--c-dark);
  color: var(--c-primary);
  border-radius: 6px;
}
.hero__sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: #1a1a1a;
  max-width: 680px;
  margin-bottom: 44px;
  line-height: 1.65;
}
.hero__sub strong { background: var(--c-dark); color: var(--c-primary); padding: 2px 6px; border-radius: 4px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn--ghost { border-color: var(--c-dark); color: var(--c-dark); }
.hero__scroll {
  position: absolute;
  bottom: 24px; right: 24px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  color: var(--c-dark);
  opacity: .7;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* =========================================================
   F-02 Challenge (dark)
========================================================= */
.challenge {
  background: var(--c-dark);
  color: var(--c-text-on-dark);
}
.challenge .section__label { color: var(--c-primary); }
.challenge .section__lead { color: var(--c-text-on-dark-muted); }
.challenge__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .challenge__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .challenge__grid { grid-template-columns: repeat(4, 1fr); } }
.challenge__card {
  background: var(--c-dark-2);
  border: 1px solid var(--c-border);
  padding: 28px;
  border-radius: var(--radius-md);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.challenge__card:hover {
  transform: translateY(-6px);
  border-color: var(--c-primary);
}
.challenge__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--c-primary);
  color: var(--c-dark);
  border-radius: var(--radius-sm);
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-weight: 700;
  margin-bottom: 20px;
}
.challenge__card h3 { font-size: 22px; margin-bottom: 12px; }
.challenge__card p { color: var(--c-text-on-dark-muted); font-size: 15px; }

/* =========================================================
   F-03 Strategy
========================================================= */
.strategy { background: #fafafa; }
.strategy__grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .strategy__grid { grid-template-columns: repeat(3, 1fr); } }
.strategy__axis {
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.strategy__axis:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.06);
}
.strategy__axis-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.strategy__axis-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--c-primary); color: var(--c-dark);
  border-radius: var(--radius-sm);
  font-family: 'SFMono-Regular', Consolas, monospace; font-weight: 700;
}
.strategy__axis h3 { font-size: 22px; }
.strategy__axis > p { color: var(--c-text-muted); margin-bottom: 20px; }
.strategy__axis ul { border-top: 1px solid var(--c-border-light); padding-top: 16px; }
.strategy__axis li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-border-light);
  font-weight: 500;
}
.strategy__axis li:last-child { border-bottom: 0; }

/* =========================================================
   F-04 AEO & GEO
========================================================= */
.aeogeo {
  background: var(--c-dark);
  color: var(--c-text-on-dark);
}
.aeogeo .section__label { color: var(--c-primary); }

.terminal {
  background: #050505;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: 0 30px 60px rgba(0,0,0,.3);
}
.terminal__bar {
  background: #111;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--c-border);
}
.terminal__bar span {
  width: 12px; height: 12px; border-radius: 50%;
  background: #333;
}
.terminal__bar span:nth-child(1) { background: #ff5f56; }
.terminal__bar span:nth-child(2) { background: #ffbd2e; }
.terminal__bar span:nth-child(3) { background: #27c93f; }
.terminal__bar em {
  margin-left: 12px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px; color: #888; font-style: normal;
}
.terminal__body {
  padding: 24px;
  margin: 0;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #e0e0e0;
  min-height: 220px;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal__body .t-user { color: var(--c-primary); }
.terminal__body .t-brand { color: var(--c-primary); font-weight: 700; background: rgba(255,163,102,.14); padding: 0 3px; border-radius: 3px; }
.terminal__body .t-cursor { display: inline-block; width: 8px; height: 16px; background: var(--c-primary); vertical-align: -3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.aeogeo__cond {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .aeogeo__cond { grid-template-columns: repeat(2, 1fr); } }
.aeogeo__col {
  background: var(--c-dark-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.aeogeo__col h3 {
  font-size: 20px;
  color: var(--c-primary);
  margin-bottom: 20px;
  font-family: 'SFMono-Regular', Consolas, monospace;
}
.aeogeo__col li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--c-border);
  padding-left: 24px;
  position: relative;
}
.aeogeo__col li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--c-primary);
  font-weight: 700;
}
.aeogeo__col li:last-child { border-bottom: 0; }

/* =========================================================
   F-05 Stories
========================================================= */
.stories { background: #fff; }
.stories__grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .stories__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stories__grid { grid-template-columns: repeat(4, 1fr); } }

.stories__stat {
  background: #fafafa;
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  transition: transform .3s var(--ease);
}
.stories__stat:hover { transform: translateY(-6px); }
.stories__stat--accent {
  background: var(--c-primary);
  border-color: var(--c-primary);
}
.stories__period {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 12px;
}
.stories__stat--accent .stories__period { color: var(--c-dark); }
.stories__value {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
  color: var(--c-dark);
  display: inline-block;
}
.stories__unit {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  margin-left: 4px;
  color: var(--c-dark);
}
.stories__stat p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--c-text-muted);
}
.stories__stat--accent p { color: #333; }

/* =========================================================
   F-06 Services
========================================================= */
.services { background: #fafafa; }
.services__grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }
.service__card {
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.06);
}
.service__card--accent {
  background: var(--c-dark);
  color: var(--c-text-on-dark);
  border-color: var(--c-dark);
}
.service__head { margin-bottom: 24px; }
.service__num {
  display: inline-block;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  background: var(--c-primary);
  color: var(--c-dark);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-bottom: 14px;
}
.service__card h3 { font-size: 24px; }
.service__card ul { border-top: 1px solid var(--c-border-light); padding-top: 16px; }
.service__card--accent ul { border-top-color: var(--c-border); }
.service__card li {
  padding: 12px 0 12px 22px;
  position: relative;
  border-bottom: 1px dashed var(--c-border-light);
  font-size: 15px;
}
.service__card--accent li { border-bottom-color: var(--c-border); }
.service__card li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--c-primary);
  font-weight: 700;
}
.service__card li:last-child { border-bottom: 0; }

.services__patent {
  display: flex; align-items: center; gap: 20px;
  background: var(--c-dark);
  color: var(--c-text-on-dark);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.services__patent-badge {
  background: var(--c-primary);
  color: var(--c-dark);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px; font-weight: 700;
}
.services__patent p { font-size: 15px; }

.services__cta { text-align: center; }

/* =========================================================
   F-07 Insights
========================================================= */
.insights { background: #fff; }
.insights__video {
  max-width: 960px; margin: 0 auto 64px;
}
.insights__video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.12);
}
.insights__video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.insights__split {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}
@media (min-width: 1024px) { .insights__split { grid-template-columns: 1fr 1.2fr; } }
.insights__col h3 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-dark);
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.insights__news li a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border-light);
  transition: padding .2s var(--ease);
}
.insights__news li a:hover { padding-left: 8px; }
.insights__meta {
  display: block;
  font-size: 12px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  color: var(--c-text-muted);
  margin-bottom: 6px;
}

.insights__cards {
  display: grid; gap: 16px;
}
.insights__cards--full {
  gap: 20px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .insights__cards--full { grid-template-columns: repeat(3, 1fr); }
}
.insights__card {
  display: block;
  background: #fafafa;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border-light);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.insights__card:hover { transform: translateY(-3px); border-color: var(--c-dark); }
.insights__tag {
  display: inline-block;
  font-size: 12px;
  color: var(--c-text-muted);
  font-family: 'SFMono-Regular', Consolas, monospace;
  margin-bottom: 10px;
}
.insights__card strong { display: block; font-size: 17px; margin-bottom: 8px; }
.insights__card p { font-size: 14px; color: var(--c-text-muted); }

.insights__all { text-align: center; }

/* =========================================================
   F-08 CTA Form
========================================================= */
.cta {
  background: var(--c-primary);
  color: var(--c-dark);
}
.cta .section__label { color: var(--c-dark); opacity: .7; }
.cta__form {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  background: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--c-dark);
  max-width: 760px;
}
@media (min-width: 768px) {
  .cta__form { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label span[aria-hidden] { color: #e23; }
.field input[type="text"],
.field input[type="tel"],
.field textarea {
  border: 1.5px solid var(--c-border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  transition: border-color .2s var(--ease);
  font-family: inherit;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-dark);
}
.field textarea { resize: vertical; min-height: 100px; }
.field--check label {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; font-weight: 500;
}
.field--check input { width: 18px; height: 18px; }
.field--check a {
  font-size: 13px;
  text-decoration: underline;
  color: var(--c-text-muted);
}

/* =========================================================
   F-09 Footer & Newsletter
========================================================= */
.footer {
  background: var(--c-dark);
  color: var(--c-text-on-dark);
}
.footer__top {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 32px;
}

.footer__sitemap {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.footer__sitemap h4 {
  font-size: 14px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  color: var(--c-primary);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.footer__sitemap li { padding: 6px 0; }
.footer__sitemap a {
  color: var(--c-text-on-dark-muted);
  font-size: 14px;
  transition: color .2s var(--ease);
}
.footer__sitemap a:hover { color: var(--c-text-on-dark); }

.footer__biz {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 13px;
  color: var(--c-text-on-dark-muted);
  padding-bottom: 40px;
}
.footer__biz-info { flex: 1 1 320px; min-width: 0; }
.footer__biz-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex-shrink: 0;
}
.footer__logo-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer__logo {
  height: 72px;
  width: auto;
  max-width: 100%;
  opacity: 1;
  display: block;
  object-fit: contain;
}
.footer__logo--partner {
  height: 36px;
  max-width: 130px;
}
.footer__copy {
  font-family: 'SFMono-Regular', Consolas, monospace;
  text-align: right;
  margin: 0;
}
@media (max-width: 640px) {
  .footer__biz-right { align-items: flex-start; }
  .footer__copy { text-align: left; }
}

/* =========================================================
   Modal
========================================================= */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  animation: fadeIn .2s var(--ease);
}
.modal__dialog {
  position: relative;
  background: #fff;
  max-width: 520px; width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  box-shadow: 0 30px 60px rgba(0,0,0,.2);
  animation: modalIn .25s var(--ease);
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--c-text-muted);
}
.modal__close:hover { background: #f5f5f5; color: var(--c-dark); }
.modal h2 { font-size: 26px; margin-bottom: 8px; }
.modal__sub { color: var(--c-text-muted); margin-bottom: 24px; font-size: 15px; }
.modal__form { display: flex; flex-direction: column; gap: 16px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   Toast
========================================================= */
.toast {
  position: fixed;
  left: 50%; bottom: 40px;
  transform: translateX(-50%);
  background: var(--c-dark);
  color: var(--c-text-on-dark);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  z-index: 200;
  font-size: 14px;
  animation: toastIn .25s var(--ease);
}
.toast[hidden] { display: none; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* =========================================================
   Reduced motion
========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
