/* NanoAI's home page (cloud/public/home.html): the logo's colours, a navy night with violet light. */
:root {
  color-scheme: dark;
  --bg: #070513; --bg-2: #0c0920; --card: #110d26; --card-2: #16112f; --line: #241d45; --line-2: #33295f;
  --text: #f5f3ff; --muted: #aaa3cc; --soft: #cfc8f2;
  --violet: #9353fc; --violet-2: #7a3ff0; --lilac: #c8a6ff; --star: #ffffff;
  --grad: linear-gradient(135deg, #d4b8ff 0%, #9d63fd 45%, #6c35ea 100%);
  --radius: 18px; --shadow: 0 24px 60px rgba(9, 4, 30, .55);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, "Segoe UI", -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lilac); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(7, 5, 19, .82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(51, 41, 95, .55); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { height: 34px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav nav a { color: var(--soft); text-decoration: none; }
.nav nav a:hover { color: var(--text); }
.nav .nav-account { color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 16px; }
.nav .nav-account:hover { border-color: var(--violet); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 650; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(147, 83, 252, .35); }
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(147, 83, 252, .5); }
.button.ghost { color: var(--text); border-color: var(--line-2); background: rgba(22, 17, 47, .6); }
.button.ghost:hover { border-color: var(--violet); }
.button[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Type */
.eyebrow { margin: 0 0 12px; color: var(--lilac); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 12px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.lead { font-size: 19px; color: var(--soft); max-width: 560px; margin: 22px 0 30px; }
.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 36px; }
.fine { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; background: radial-gradient(900px 520px at 78% 30%, rgba(122, 63, 240, .28), transparent 65%), radial-gradient(600px 400px at 10% 0%, rgba(200, 166, 255, .10), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-visual { position: relative; min-height: 610px; }
.glow { position: absolute; inset: 8% 6% 6% 12%; background: radial-gradient(circle at 50% 45%, rgba(157, 99, 253, .55), transparent 62%); filter: blur(30px); }
.hero-icon { position: absolute; top: 0; right: 2%; width: 210px; height: 210px; border-radius: 48px; box-shadow: var(--shadow); transform: rotate(-6deg); }
/* Live mode as it looks: the session's live transcript in a NanoAI chat, and only the compact Live overlay on the
   desktop, small and out of the way. */
.app-window { position: absolute; left: 0; right: 22%; bottom: 70px; background: rgba(17, 13, 38, .97); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(22, 17, 47, .95); font-size: 13px; font-weight: 600; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #3a3160; }
.app-body { display: grid; gap: 10px; padding: 14px 16px 18px; }
.app-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-chat-head strong { font-size: 15px; }
.pill { font-size: 11px; font-weight: 700; color: #22c55e; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .35); border-radius: 999px; padding: 2px 9px; }
.line { margin: 0; font-size: 14px; line-height: 1.45; color: var(--soft); }
.line b { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
.line.nano b { color: var(--lilac); }
.live { position: absolute; right: 0; bottom: 0; width: 356px; background: #18171c; border: 1px solid #2b2a31; border-radius: 18px; padding: 14px 16px 12px; box-shadow: var(--shadow); }
.live-row { display: flex; align-items: center; gap: 12px; }
.live-badge { flex: none; width: 42px; height: 42px; border-radius: 11px; background: #25242b; color: #22c55e; display: grid; place-items: center; }
.live-text { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.live-text strong { color: #fff; font-size: 16px; line-height: 1.3; }
.live-text span { color: #a1a1aa; font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-btn { flex: none; color: #d4d4d8; display: grid; place-items: center; width: 28px; height: 28px; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 26px; margin-top: 10px; }
.wave i { display: block; width: 4px; height: 100%; border-radius: 2px; background: #22c55e; transform-origin: center; animation: talk 1.2s ease-in-out infinite; }
.wave i:nth-child(3n) { height: 70%; animation-delay: -.4s; }
.wave i:nth-child(3n+1) { height: 45%; animation-delay: -.8s; }
.wave i:nth-child(4n) { height: 90%; animation-delay: -.2s; }
.wave i:nth-child(5n) { height: 55%; animation-delay: -.6s; }
.wave i:nth-child(7n) { height: 100%; animation-delay: -1s; }
@keyframes talk { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }

/* Sections */
.section { padding: 96px 0; border-top: 1px solid rgba(36, 29, 69, .7); }
.section.split { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.two { grid-template-columns: repeat(2, 1fr); }
.feature, .way, .plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature p, .way p { color: var(--muted); margin: 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; color: var(--lilac); background: rgba(147, 83, 252, .12); border: 1px solid rgba(147, 83, 252, .3); border-radius: 8px; padding: 2px 8px; margin-bottom: 14px; }
.way.featured, .plan.featured { border-color: rgba(147, 83, 252, .6); background: linear-gradient(180deg, rgba(122, 63, 240, .14), var(--card) 55%); }
.price-line { font-size: 28px; font-weight: 800; color: var(--text) !important; margin: 4px 0 16px !important; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; color: var(--soft); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.45em + 4px); width: 6px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* The two modes */
.mode { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.mode.featured { border-color: rgba(147, 83, 252, .6); background: radial-gradient(500px 260px at 100% 0%, rgba(122, 63, 240, .28), transparent 70%), var(--card); }
.mode h3 { font-size: 28px; margin-bottom: 12px; }
.mode > p:not(.mode-kicker) { color: var(--soft); margin-bottom: 20px; }
.mode .ticks { margin: 0; }
.mode-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--grad); border-radius: 999px; padding: 4px 12px; margin: 0 0 16px; }
.mode:not(.featured) .mode-kicker { background: rgba(147, 83, 252, .16); color: var(--lilac); border: 1px solid rgba(147, 83, 252, .35); }

/* Plans */
.period { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); margin-bottom: 24px; }
.period[hidden] { display: none; }
.period button { font: inherit; font-size: 15px; font-weight: 650; color: var(--soft); background: none; border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.period button.on { background: var(--grad); color: #fff; }
.save { font-size: 12px; font-weight: 700; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.period button:not(.on) .save { background: rgba(147, 83, 252, .18); color: var(--lilac); }
.plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan h3 { font-size: 22px; }
.plan .amount { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.plan .per { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan .sub { font-size: 14px; color: var(--muted); min-height: 1.5em; margin: 0 0 10px; }
.plan .ticks { margin-top: 8px; flex: 1; }
.plan .button { width: 100%; }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); border-radius: 999px; padding: 3px 10px; margin-bottom: 6px; }
.plan-notes { margin-top: 26px; font-size: 14px; color: var(--muted); max-width: 760px; }
.testmode { font-size: 14px; color: var(--lilac); border-left: 3px solid var(--violet); padding-left: 10px; margin: -8px 0 20px; }

/* Download */
.download { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: linear-gradient(135deg, rgba(122, 63, 240, .22), rgba(17, 13, 38, .9) 60%); border: 1px solid rgba(147, 83, 252, .45); border-radius: 26px; padding: 36px; }
.download img { width: 96px; height: 96px; border-radius: 24px; }
.download h2 { font-size: 34px; }
.download p { color: var(--soft); }
.download-action { text-align: center; }
.download-action .fine { margin: 10px 0 0; }

/* Questions */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lilac); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot img { height: 28px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
.foot nav a { color: var(--soft); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .fine { width: 100%; margin: 0; }

/* Narrow screens */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 580px; max-width: 560px; }
  .features, .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav nav a:not(.nav-account) { display: none; }
  .brand img { height: 28px; }
  .hero { padding: 56px 0 64px; }
  .hero-visual { min-height: 540px; }
  .hero-icon { width: 120px; height: 120px; border-radius: 28px; right: 0; }
  .app-window { right: 0; bottom: 84px; }
  .live { width: min(356px, 100%); }
  .section { padding: 64px 0; }
  .features, .plans, .two { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; text-align: left; padding: 26px; }
  .download-action { text-align: left; }
  .button { width: 100%; }
  .actions .button { width: auto; flex: 1 1 220px; }
}
