/* Midjourney access guide – style.css
   Design source: user-supplied screenshots of midjourney.com/home (site is behind a Cloudflare challenge, so NOT measured).
   Dark navy-black canvas, monospace type, blue stipple art, coloured pill buttons. All art is original/procedural. */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --primary: #3b6cff;
  --primary-dark: #2a53d6;
  --link: #7ba3ff;
  --header-bg: #07071a;
  --bg: #07071a;
  --surface: #0b0c26;
  --surface-2: #111339;
  --text: #cfd3f2;
  --text-muted: #8b91b9;
  --heading: #f2f4ff;
  --green: #2dd4a4;
  --red: #ff4d7d;
  --amber: #ffa04a;
  --purple: #a78bfa;
  --yellow: #fbbf24;
  --border: rgba(91, 128, 255, .24);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 0 0 1px rgba(91,128,255,.16), 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.6);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 140ms;
  --dur-md: 260ms;
  --transition: var(--dur-fast) var(--ease);
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 72px;
  --mono: 'JetBrains Mono', 'Noto Sans Mono CJK SC', 'Sarasa Mono SC', 'PingFang SC', 'Microsoft YaHei', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; } /* clip, NOT hidden (sticky header, M9) */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--mono); font-size: 14px; line-height: 1.75; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(123,163,255,.45); transition: color var(--transition), text-decoration-color var(--transition); }
a:hover { color: #fff; text-decoration-color: currentColor; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.4; color: var(--heading); font-weight: 500; }
::selection { background: rgba(59,108,255,.5); color: #fff; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }

/* ─── HEADER ─── */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--header-bg); border-bottom: 1px solid var(--border); }
.nav { position: relative; max-width: 1100px; margin: 0 auto; display: flex; align-items: center; padding: 0 var(--space-sm); height: 60px; gap: var(--space-sm); }
.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo { height: 28px; width: auto; max-width: 240px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-start; margin-left: 8px; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none;
  color: var(--text); font-size: 13px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid transparent; background: rgba(255,255,255,.03);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.nav-links > li > a i { font-size: 15px; }
.nav-links > li:nth-child(1) > a i { color: var(--link); }
.nav-links > li:nth-child(2) > a i { color: var(--amber); }
.nav-links > li:nth-child(3) > a i { color: var(--red); }
.nav-links > li:nth-child(4) > a i { color: var(--purple); }
.nav-links > li:nth-child(5) > a i { color: var(--green); }
.nav-links > li > a:hover { color: #fff; background: rgba(91,128,255,.14); border-color: var(--border); }
.nav-links > li > a:active { transform: scale(.97); }
.nav-right { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; margin-left: auto; }
.mobile-lang { display: none; }

/* dropdown pattern (kept for scaffold/M26 compatibility – not used unless PLATFORM_PAGES is set) */
.dropdown { position: relative; }
.dropdown-panel { position: absolute; top: 100%; left: 0; margin-top: 0; padding-top: 8px; display: none; min-width: 160px; z-index: 1000; }
.dropdown-panel-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); }
.dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel, .dropdown.open > .dropdown-panel { display: block; }
.dropdown-panel a { display: block; padding: 10px 16px; color: var(--text); font-size: 13px; text-decoration: none; white-space: nowrap; }
.dropdown-panel a:hover { background: var(--surface-2); }
.dropdown-toggle { background: none; border: 0; cursor: pointer; font: inherit; color: var(--text); font-size: 13px; padding: 8px 12px; }
.dropdown-toggle::after { content: " ▾"; font-size: .8em; }

/* ─── PILL BUTTONS (green / amber / pink, per the reference look) ─── */
.btn-cta, .pill {
  --pc: var(--green); --pt: rgba(45,212,164,.11);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
  padding: 9px 20px; border-radius: 999px; font-family: var(--mono); font-size: 13px; font-weight: 500; line-height: 1.4;
  color: var(--heading); background: var(--pt); border: 1px solid var(--pc); text-decoration: none; cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), color var(--transition);
}
.btn-cta i, .pill i { color: var(--pc); font-size: 15px; }
.btn-cta:hover, .pill:hover { color: #fff; background: color-mix(in srgb, var(--pc) 24%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 14%, transparent), 0 6px 22px color-mix(in srgb, var(--pc) 22%, transparent); transform: translateY(-1px); }
.btn-cta:active, .pill:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn-lg { padding: 13px 28px; font-size: 14px; }
.pill-amber { --pc: var(--amber); --pt: rgba(255,160,74,.12); }
.pill-pink { --pc: var(--red); --pt: rgba(255,77,125,.12); }
.btn-outline { border: 1px solid var(--border); color: var(--text); padding: 10px 20px; border-radius: 999px; display: inline-block; text-decoration: none; }

/* ─── HAMBURGER ─── */
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; color: var(--heading); font-size: 18px; width: 40px; height: 40px; padding: 0; line-height: 1; order: 99; transition: background var(--transition), transform var(--transition); }
.nav-toggle:hover { background: rgba(91,128,255,.14); }
.nav-toggle:active { transform: scale(.94); }

/* ─── HERO: procedural ASCII eye (canvas, built by main.js) + scanlines ─── */
.hero { position: relative; overflow: hidden; min-height: 700px; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-xl) var(--space-sm); background: radial-gradient(ellipse at 50% 42%, #0e1240 0%, #08081f 55%, #06061a 100%); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .95; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 50% 50%, rgba(7,7,26,.0) 0%, rgba(7,7,26,.2) 58%, rgba(7,7,26,.9) 100%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(5,5,18,.5) 0, rgba(5,5,18,.5) 1px, transparent 1px, transparent 4px); }
.scan-sweep { position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(91,128,255,.12), transparent); animation: sweep 7s linear infinite; will-change: transform; }
@keyframes sweep { from { transform: translateY(-140px); } to { transform: translateY(840px); } }
.hero-inner { position: relative; z-index: 2; max-width: 640px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: rgba(10,12,36,.7); color: var(--link); padding: 4px 14px; border-radius: 999px; font-size: 12px; margin-bottom: var(--space-md); }
.wordmark { width: min(520px, 86%); height: auto; margin: 0 auto var(--space-md); filter: drop-shadow(0 0 22px rgba(59,108,255,.35)); }
.hero h1, .hero p, .hero-badge { text-shadow: 0 0 14px #07071a, 0 0 4px #07071a; }
.hero h1 { font-size: clamp(18px, 2.6vw, 24px); font-weight: 500; line-height: 1.55; margin: 0 0 var(--space-xs); color: var(--heading); }
.hero p, .page-hero p { font-size: 13px; color: var(--text); max-width: 600px; margin: 0 auto var(--space-md); text-align: center; }
time.updated { display: inline-block; margin: 0 0 var(--space-sm); font-size: 12px; color: var(--text-muted); }
.hero-panel { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 14px; background: rgba(12,14,40,.62); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero { position: relative; overflow: hidden; text-align: center; padding: 64px var(--space-sm) 56px; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse at 50% 0%, #131750 0%, #08081f 70%); }
.page-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(5,5,18,.45) 0, rgba(5,5,18,.45) 1px, transparent 1px, transparent 4px); }
.page-hero .container { position: relative; z-index: 1; max-width: 640px; }
.page-hero h1 { font-size: clamp(19px, 3vw, 26px); margin-bottom: var(--space-xs); }

/* ─── SECTIONS: centred narrow column, coloured line icon + mono heading ─── */
.section { padding: var(--space-xl) var(--space-sm) 24px; }
.section:last-of-type { padding-bottom: var(--space-xl); }
.section-alt { background: linear-gradient(180deg, transparent, rgba(17,19,57,.45), transparent); }
.container { max-width: 960px; margin: 0 auto; }
.section-title, .section-sub, .container > p, .container > .bullets, .container > .tip { max-width: 624px; margin-left: auto; margin-right: auto; }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.section-title i { font-size: 15px; width: 22px; text-align: center; flex-shrink: 0; }
.c-purple { color: var(--purple); } .c-blue { color: var(--link); } .c-green { color: var(--green); } .c-amber { color: var(--yellow); } .c-pink { color: var(--red); }
.section-sub { color: var(--text-muted); text-align: left; margin-bottom: var(--space-md); }
.container > p { margin-top: 0; margin-bottom: 14px; text-align: left; }
.tip { border-left: 2px solid var(--primary); background: rgba(59,108,255,.08); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); margin-bottom: 14px; }
.bullets { padding-left: 0; margin-bottom: var(--space-sm); }
.bullets li { position: relative; margin: 8px 0; padding-left: 24px; }
.bullets li::before { content: '>'; position: absolute; left: 4px; color: var(--primary); font-weight: 700; }

/* ─── TILES (4 x 2 stipple grid) ─── */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 624px; margin: 0 auto var(--space-md); }
.tile { position: relative; margin: 0; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #090a22; transition: border-color var(--transition), transform var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; font-size: 11px; line-height: 1.3; color: var(--heading); background: linear-gradient(180deg, transparent, rgba(7,7,26,.92)); }
.tile:hover { border-color: rgba(123,163,255,.7); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(59,108,255,.22); }

/* ─── CARDS ─── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feature-card, .device-card, .pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-md); transition: border-color var(--transition), transform var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease); }
.feature-card:hover, .device-card:hover, .pricing-card:hover { border-color: rgba(123,163,255,.6); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(59,108,255,.14); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; color: var(--link); }
.feature-card h3 { font-size: 15px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.7; }

.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.device-card { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.device-card .device-icon { font-size: 32px; width: 40px; height: 40px; line-height: 40px; color: var(--link); } /* M22 one size */
.device-card h3 { margin: 0; font-size: 16px; }
.device-card h3 a { color: inherit; }
.device-card ul { margin: 0; padding-left: 0; }
.device-card li { font-size: 13px; color: var(--text-muted); margin: 4px 0; padding-left: 18px; position: relative; }
.device-card li::before { content: '>'; position: absolute; left: 0; color: var(--primary); }
.device-card .btn-cta { margin-top: auto; align-self: flex-start; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pricing-card { display: flex; flex-direction: column; }
.pricing-name { font-size: 12px; color: var(--link); letter-spacing: .08em; margin-bottom: var(--space-xs); }
.pricing-price { font-size: 20px; font-weight: 700; color: var(--heading); line-height: 1.35; }
.pricing-period { font-size: 12px; color: var(--text-muted); margin: 12px 0 var(--space-sm); }
.pricing-card .bullets { flex: 1; }
.pricing-cta { margin-top: auto; display: flex; justify-content: flex-start; }

.payment-methods { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: var(--space-md); }
.payment-methods li { border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; font-size: 13px; background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.compare-table .highlight { background: rgba(59,108,255,.1); }

/* ─── FAQ ─── */
.faq-list { max-width: 624px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; background: none; border: 0; text-align: left; padding: 14px 44px 14px 16px; font: inherit; font-size: 14px; color: var(--heading); cursor: pointer; position: relative; transition: background var(--transition); }
.faq-q:hover { background: rgba(59,108,255,.08); }
.faq-q::after { content: '+'; position: absolute; right: 16px; top: 50%; margin-top: -11px; font-size: 18px; line-height: 22px; color: var(--link); transition: transform var(--dur-md) var(--ease); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-md) var(--ease); }
.faq-a > p { overflow: hidden; margin: 0; padding: 0 16px; font-size: 13px; color: var(--text-muted); opacity: 0; transition: opacity var(--dur-md) var(--ease), padding var(--dur-md) var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { padding: 0 16px 16px; opacity: 1; }

/* ─── FOOTER ─── */
.site-footer { background: #05050f; border-top: 1px solid var(--border); color: var(--text-muted); padding: var(--space-xl) var(--space-sm) var(--space-md); font-size: 13px; }
.footer-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-brand .logo-footer { height: 26px; width: auto; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 12px; line-height: 1.8; max-width: 340px; }
.footer-heading { color: var(--heading); font-size: 13px; margin: 0 0 var(--space-sm); }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 960px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: var(--space-sm); }
.footer-bottom p { font-size: 12px; margin: 0; }

/* ─── MOTION: entrance only (transform/opacity), disabled for reduced motion ─── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-inner > * { animation: rise 700ms var(--ease) both; }
  .hero-inner > *:nth-child(2) { animation-delay: 70ms; } .hero-inner > *:nth-child(3) { animation-delay: 140ms; }
  .hero-inner > *:nth-child(4) { animation-delay: 190ms; } .hero-inner > *:nth-child(5) { animation-delay: 240ms; } .hero-inner > *:nth-child(6) { animation-delay: 300ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 768px) {
  .nav-links.open { animation: menu-in var(--dur-md) var(--ease) both; transform-origin: top; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scan-sweep { display: none; }
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; height: 56px; } /* M7 not flush to the edges */
  .logo { height: 24px; max-width: 200px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; height: auto; max-height: none; overflow: visible; background: var(--header-bg); border-bottom: 1px solid var(--border); box-shadow: 0 14px 28px rgba(0,0,0,.6); padding: 10px 16px 14px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a { display: flex; justify-content: center; width: 100%; padding: 13px 0; font-size: 15px; border-radius: var(--radius-md); }
  .nav-right .btn-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links .dropdown { width: 100%; text-align: center; }
  .nav-links .dropdown-toggle { width: 100%; padding: 14px 0; font-size: 15px; }
  .nav-links .dropdown-panel { position: static; padding-top: 0; min-width: 0; }
  .nav-links .dropdown:hover > .dropdown-panel, .nav-links .dropdown:focus-within > .dropdown-panel { display: none; }
  .nav-links .dropdown.open > .dropdown-panel { display: block; }
  .nav-links .dropdown-panel-inner { background: rgba(255,255,255,.05); border: 0; box-shadow: none; }
  .nav-links .dropdown-panel a { text-align: center; }

  .hero { min-height: 620px; padding: 48px var(--space-sm); }
  .hero-panel { flex-direction: column; align-items: center; width: 100%; max-width: 340px; }
  .hero-panel .pill { width: 100%; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn-cta { display: flex; margin-left: auto; margin-right: auto; width: max-content; max-width: 90%; }
  .page-hero { padding: 44px var(--space-sm) 40px; }
  .section { padding: 48px var(--space-sm) 16px; }
  .section-title { font-size: 19px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid, .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); } /* M21 */
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tile figcaption { font-size: 10.5px; }
}
