@import url("fonts/google.css");

/* ============================================================
   AI Engineer SEO — rebuilt design system
   Keeps the original sky-blue / arcade-green / orange arcade feel,
   with a cleaner grid, real type scale and full responsiveness.
   ============================================================ */
:root {
  --sky: #1a78d4;
  --sky-2: #57a9ec;
  --sky-deep: #0a1535;
  --ink: #11213f;
  --green: #00a651;
  --green-bright: #1ed05f;
  --green-dark: #0a4712;
  --orange: #e05c2a;
  --orange-deep: #cc6200;
  --yellow: #ffdc50;
  --muted: #5d6b83;
  --line: #e3e9f1;
  --paper: #ffffff;
  --cream: #f5f8fc;
  --max: 1200px;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(13, 36, 74, .09);
  --shadow-sm: 0 4px 14px rgba(13, 36, 74, .07);
  --sans: "Poppins", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  --pixel: "Press Start 2P", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink);
  background: var(--paper); font-size: 16px; line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--orange); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section.tint { background: var(--cream); }
.section.sky { background: linear-gradient(180deg, var(--sky) 0%, #2f8ade 100%); color: #fff; }
.center { text-align: center; }
.pixel { font-family: var(--pixel); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--pixel); font-size: 9px; line-height: 1.8;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; flex: 0 0 auto; }
.section-title { font-size: clamp(30px, 4vw, 48px); color: var(--sky-deep); margin-bottom: 18px; }
.section-title em { font-style: normal; color: var(--orange); }
.section-lead { color: var(--muted); font-size: 17px; max-width: 720px; }
.section-head { margin-bottom: 48px; }
.section-head .section-lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 8px; padding: 14px 26px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn-orange {
  background: linear-gradient(180deg, #e9701f, var(--orange-deep));
  color: #fff; box-shadow: 0 5px 0 #8d4600, var(--shadow);
  font-family: var(--pixel); font-size: 11px; line-height: 1.9; padding: 20px 32px;
}
.btn-orange:hover { box-shadow: 0 3px 0 #8d4600, 0 12px 26px rgba(204, 98, 0, .35); color: #fff; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 0 #007a3c; }
.btn-green:hover { background: #00b85b; color: #fff; }
.btn-outline { border: 2px solid currentColor; background: transparent; color: var(--sky-deep); }
.btn-outline:hover { background: var(--sky-deep); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- announcement + header ---------- */
.announce {
  background: var(--sky-deep); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 9px 20px; position: relative;
}
.announce strong { color: var(--yellow); font-weight: 700; }
.announce code { background: rgba(255,255,255,.14); padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.announce .close {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 20px; line-height: 1; opacity: .7;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, #12c95a, #6ddd12);
  border-bottom: 3px solid rgba(0,0,0,.12);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; flex: 0 0 auto; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--sky-deep); border: 3px solid #fff; border-radius: 5px;
  font-family: var(--pixel); font-size: 11px; color: var(--yellow);
  box-shadow: 3px 3px 0 rgba(0,0,0,.28);
}
.brand-text { font-weight: 800; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand-text small { display: block; font-size: 9px; letter-spacing: .22em; font-weight: 500; opacity: .85; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > li { list-style: none; position: relative; }
.main-nav a, .nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #08331a; font-size: 14px; font-weight: 600; padding: 10px 13px; border-radius: 6px;
}
.main-nav a:hover { background: rgba(255,255,255,.28); color: #04240f; }
.nav-cta {
  background: var(--orange) !important; color: #fff !important;
  padding: 10px 18px !important; box-shadow: 0 3px 0 #a23c12;
}
.nav-cta:hover { background: #c94c1d !important; }
.has-menu .dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; width: 260px;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  padding: 10px; display: none; z-index: 60; border: 1px solid var(--line);
}
/* Invisible hover bridge across the 10px gap: the pointer stays inside
   .has-menu while travelling from the top-level link into the submenu. */
.has-menu .dropdown::before {
  content: ""; position: absolute; left: -8px; right: -8px; top: -16px; height: 16px;
  background: transparent;
}
.has-menu:hover .dropdown,
.has-menu:focus-within .dropdown,
.has-menu.open .dropdown { display: block; }
.dropdown a { display: block; color: var(--ink) !important; font-size: 13px; font-weight: 500; padding: 8px 10px; }
.dropdown a:hover { background: var(--cream); color: var(--orange) !important; }
.menu-toggle {
  display: none; background: rgba(255,255,255,.22); border: 0; color: #08331a;
  font-size: 22px; width: 42px; height: 42px; border-radius: 8px;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(180deg, #1a78d4 0%, #3f95df 62%, #6fb2ea 100%);
  padding: 76px 0 0;
}
.hero-sun {
  position: absolute; top: 18px; right: 2.5%; width: 76px; height: 76px;
  background: var(--yellow); border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255,220,80,.22), 0 0 42px 12px rgba(255,220,80,.55);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 56px; }
.hero h1 {
  font-family: var(--pixel); font-size: clamp(19px, 2.6vw, 34px); line-height: 1.8;
  color: var(--sky-deep); text-shadow: 3px 3px 0 rgba(255,255,255,.35);
  max-width: 1120px; margin: 0 auto 22px; letter-spacing: -.01em;
}
.hero h1 .accent { color: var(--orange); }
.hero p { max-width: 700px; margin: 0 auto 32px; font-size: 17px; color: #eaf5ff; }
.hero-scene { position: relative; height: 250px; margin-top: 10px; }
.hero-scene svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
.hero-trust {
  background: #fff; color: var(--ink); border-top: 1px solid var(--line);
  padding: 26px 0; position: relative; z-index: 3;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-grid b { display: block; font-size: 28px; color: var(--sky-deep); line-height: 1.2; }
.trust-grid span { font-size: 13px; color: var(--muted); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c9dcf5; }
.card h3 { font-size: 19px; margin-bottom: 10px; color: var(--sky-deep); }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }
.card-tag {
  display: inline-block; font-family: var(--pixel); font-size: 8px; line-height: 1.8;
  padding: 6px 9px; border-radius: 4px; margin-bottom: 16px; color: #fff; background: var(--green);
}
.card-tag.orange { background: var(--orange-deep); }
.card-tag.blue { background: var(--sky); }
.card-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; }
.card-link::after { content: " →"; }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.split > div { padding: 40px; background: #fff; }
.split > div + div { border-left: 1px solid var(--line); }
.split h3 { font-size: 28px; color: var(--sky-deep); }
.split ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.split li { padding: 7px 0 7px 28px; position: relative; font-size: 14.5px; }
.split li::before {
  content: "✓"; position: absolute; left: 0; top: 6px; width: 19px; height: 19px;
  background: var(--green); color: #fff; border-radius: 4px; font-size: 12px;
  display: grid; place-items: center; font-weight: 700;
}
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li::before {
  content: "✓"; color: var(--green); font-weight: 800; position: absolute; left: 0;
}
.quote-card { border-top: 3px solid var(--green); }
.quote-stars { color: var(--green); font-size: 13px; letter-spacing: 2px; margin-bottom: 12px; }
.quote-card blockquote { margin: 0 0 18px; font-size: 15px; color: var(--ink); font-style: italic; }
.quote-name { font-weight: 700; font-size: 14px; color: var(--sky-deep); }
.quote-date { font-size: 12px; color: var(--muted); }
.tile {
  border-radius: var(--radius); overflow: hidden; position: relative; min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; color: #fff; background: linear-gradient(135deg, #0a1535, #173a6b);
}
.tile.green { background: linear-gradient(135deg, #0d5a1d, #159c3c); }
.tile h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.tile p { font-size: 13px; color: rgba(255,255,255,.82); margin: 0; }
.tile:hover { color: #fff; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 42px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.3); }
.faq-q {
  width: 100%; background: none; border: 0; color: #fff; text-align: left;
  padding: 18px 30px 18px 0; font-size: 15px; font-weight: 600; position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: 4px; font-size: 20px; font-weight: 400; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 0 20px; color: #e6f1ff; font-size: 14px; }
.faq-item.open .faq-a { display: block; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 70px 0; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--sky-deep); }
.cta-band.sky h2, .cta-band.green h2 { color: #fff; }
.cta-band.green { background: var(--green-dark); }
.cta-box {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius); padding: 36px; max-width: 620px; margin: 0 auto;
}
.cta-box p { color: #eaf5ff; }

/* ---------- footer ---------- */
.site-footer { background: #063c0b; color: #d7f0dd; padding: 66px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.site-footer a { color: #c9e8d1; font-size: 13.5px; display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; max-width: 290px; color: #b8dcc2; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff !important; padding: 0 !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 46px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #a9cfb3;
}

/* ---------- interior pages ---------- */
.page-hero {
  background: linear-gradient(135deg, #0a1535 0%, #123f7d 60%, #1a78d4 100%);
  color: #fff; padding: 62px 0 56px;
}
.page-hero h1 { font-size: clamp(30px, 4.2vw, 50px); color: #fff; max-width: 900px; margin-bottom: 14px; }
.page-hero p { color: #d5e7ff; font-size: 17px; max-width: 760px; margin: 0; }
.breadcrumb { font-size: 12.5px; color: #a9c8ee; margin-bottom: 20px; }
.breadcrumb a { color: #cfe4ff; }
.breadcrumb span { margin: 0 8px; opacity: .6; }
.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; padding: 62px 0 90px; align-items: start; }
.prose { min-width: 0; font-size: 16px; color: #33425c; }
.prose h2 { font-size: 30px; color: var(--sky-deep); margin: 1.7em 0 .6em; scroll-margin-top: 100px; }
.prose h3 { font-size: 22px; color: var(--sky-deep); margin: 1.5em 0 .5em; scroll-margin-top: 100px; }
.prose h4 { font-size: 18px; color: var(--ink); }
.prose img { border-radius: 10px; box-shadow: var(--shadow-sm); margin: 18px 0; display: block; }
.prose img.img-missing {
  min-height: 180px; min-width: 260px; background: linear-gradient(135deg, #e8f1fb, #d8e9f9);
  border: 1px dashed #b7cfe8;
}
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--cream); color: var(--sky-deep); }
.prose blockquote {
  border-left: 4px solid var(--green); background: var(--cream);
  padding: 18px 22px; margin: 22px 0; border-radius: 0 8px 8px 0; color: var(--ink);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose li { margin-bottom: 8px; }
.prose iframe { max-width: 100%; }
.sidebar { position: sticky; top: 92px; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.side-box h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.toc { list-style: none; padding: 0; margin: 0; max-height: 60vh; overflow-y: auto; }
.toc li { margin-bottom: 8px; }
.toc a { font-size: 13px; color: var(--muted); display: block; line-height: 1.5; }
.toc a:hover, .toc a.active { color: var(--orange); font-weight: 600; }
.toc .lvl3 { padding-left: 14px; font-size: 12.5px; }
.side-cta { background: var(--green-dark); color: #fff; border: 0; }
.side-cta h4 { color: #fff; }
.side-cta p { font-size: 13.5px; color: #cfe9d4; }
.side-cta .btn { width: 100%; }
.related { background: var(--cream); padding: 64px 0; }
.related h2 { font-size: 30px; color: var(--sky-deep); margin-bottom: 26px; }
.related a { color: var(--sky-deep); font-weight: 600; }
.link-list { columns: 2; column-gap: 40px; list-style: none; padding: 0; margin: 0; }
.link-list li { break-inside: avoid; margin-bottom: 10px; font-size: 14.5px; padding-left: 18px; position: relative; }
.link-list li::before { content: "▸"; position: absolute; left: 0; color: var(--green); }
.meta-line { font-size: 13px; color: var(--muted); margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.badge { display: inline-block; background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 3px 12px; font-size: 12px; color: var(--muted); margin-right: 8px; }
.back-top {
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 10px;
  background: var(--sky-deep); color: #fff; border: 0; font-size: 20px; display: none; z-index: 40;
  box-shadow: var(--shadow);
}
.back-top.show { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-shell { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .sidebar { position: static; }
}
@media (max-width: 860px) {
  .section { padding: 60px 0; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 14px 22px 22px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { color: var(--ink) !important; padding: 12px 8px; }
  .has-menu .dropdown { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px 14px; display: none; }
  .has-menu.open .dropdown { display: block; }
  .menu-toggle { display: block; }
  .nav-cta { align-self: flex-start; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .faq-grid { grid-template-columns: 1fr; }
  .split > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero { padding-top: 48px; }
  .hero-sun { width: 58px; height: 58px; right: 6%; }
  .hero-scene { height: 170px; }
  .footer-grid { gap: 28px; }
}
@media (max-width: 600px) {
  .container, .narrow { width: calc(100% - 32px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .link-list { columns: 1; }
  .announce { font-size: 11px; padding-right: 44px; }
  .hero-sun { top: 0; right: 6%; width: 36px; height: 36px;
    box-shadow: 0 0 0 6px rgba(255,220,80,.2), 0 0 20px 6px rgba(255,220,80,.4); }
  .brand-text { font-size: 14px; }
  .hero h1 { font-size: 18px; line-height: 1.85; }
  .hero p { font-size: 15px; }
  .btn-orange { font-size: 9px; padding: 16px 20px; }
  .page-hero { padding: 44px 0 40px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- checkout entry points (added with /checkout/) ---------- */
.nav-cta.nav-cta-order { background: var(--sky-deep) !important; box-shadow: 0 3px 0 #04102a; }
.nav-cta.nav-cta-order:hover { background: #1b3c7d !important; }
.hero-inner .btn-row, .cta-box .btn-row { justify-content: center; }
.btn-ghost-light { border: 2px solid rgba(255,255,255,.75); background: transparent; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--green-dark); }
.hero-order { margin-top: 24px; font-family: var(--sans) !important; font-size: 14px !important;
  line-height: 1.4 !important; padding: 13px 26px !important; }
.side-cta .btn + .btn { margin-top: 10px; }
@media (max-width: 560px) {
  .hero-inner .btn-row, .cta-box .btn-row { flex-direction: column; align-items: stretch; }
  .hero-inner .btn-row .btn, .cta-box .btn-row .btn { width: 100%; }
}
