/* NexaTerm website. Colours follow the application's dark theme (src/styles/index.css)
   and the logo gradient (#67E8F9 -> #35BDF2 -> #477BFF). */

:root {
  --bg: #0a1020;
  --bg-elev: #0f172a;
  --panel: #111a2e;
  --panel-2: #16213a;
  --line: #1e2a45;
  --line-strong: #2a3a5e;
  --text: #dbe4f3;
  --text-dim: #9aa9c6;
  --text-faint: #6b7a98;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --accent-deep: #477bff;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --warn: #fbbf24;
  --grad: linear-gradient(100deg, #67e8f9 0%, #35bdf2 45%, #477bff 100%);
  --radius: 14px;
  --font: "IBM Plex Sans Thai", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 50% -120px, rgba(20, 127, 210, 0.22), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7dd3fc; }
code, kbd { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: #bae6fd; }
kbd {
  display: inline-block; min-width: 1.9em; padding: 1px 7px; text-align: center;
  background: var(--panel-2); border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 6px; color: var(--text);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(880px, 100% - 40px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font); padding: 12px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #04121f; }
.btn-primary:hover { background: #7dd3fc; color: #04121f; }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--accent); color: var(--text); }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 16, 32, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.2px; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 26px; list-style: none; margin-left: 8px; }
.nav-links a { color: var(--text-dim); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; margin-left: auto; }

/* Hero */
.hero { padding: 84px 0 40px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 14px; color: var(--text-dim);
  padding: 6px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(17, 26, 46, 0.7);
}
.eyebrow span { color: var(--text-faint); margin: 0 6px; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.25; font-weight: 700; margin: 26px 0 20px; letter-spacing: -0.5px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { text-wrap: balance; max-width: 720px; margin: 0 auto; font-size: 18px; color: var(--text-dim); }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--text-faint); }

/* Screenshots */
.shot { margin: 0; }
.shot-btn {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-elev); cursor: zoom-in;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  transition: border-color .2s, transform .2s;
}
.shot-btn:hover { border-color: var(--accent); }
.shot-hero { margin-top: 56px; }
.shot-hero .shot-btn { box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 30px 90px -30px rgba(20, 127, 210, 0.45); }
.shot figcaption { margin-top: 14px; font-size: 14px; color: var(--text-faint); max-width: 820px; margin-inline: auto; }

/* Facts strip */
.facts { padding: 20px 0 30px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fact h3 { font-size: 17px; margin-bottom: 6px; color: #e8f1fc; }
.fact p { font-size: 14.5px; color: var(--text-dim); line-height: 1.7; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: rgba(15, 23, 42, 0.55); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.4px; margin-bottom: 8px; }
.section-head h2 { text-wrap: balance; font-size: clamp(28px, 4vw, 40px); line-height: 1.35; font-weight: 700; }
.section-head p:not(.kicker) { color: var(--text-dim); margin-top: 10px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.feature.reverse { grid-template-columns: 7fr 5fr; }
.feature.reverse .feature-text { order: 2; }
.feature h3 { font-size: 26px; line-height: 1.4; margin-bottom: 12px; }
.feature p { color: var(--text-dim); }

.ticks { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg);
}

/* Card grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 22px; }
.card .shot-btn { border-radius: 10px; margin-bottom: 16px; box-shadow: none; }
.card h3 { font-size: 18px; margin: 0 6px 6px; }
.card p { font-size: 14.5px; color: var(--text-dim); margin: 0 6px; line-height: 1.7; }
.card-list { padding: 24px; }
.card-list h3 { margin: 0 0 4px; }
.card-list .ticks li { font-size: 14.5px; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; border: 1px solid rgba(56, 189, 248, 0.3);
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--text-dim); }
.more { text-align: center; margin-top: 32px; color: var(--text-dim); font-size: 15px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 600; color: var(--text-dim); background: var(--panel-2); padding: 12px 18px; font-size: 14px; }
td { padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: top; }
td:first-child { white-space: nowrap; }
td code { white-space: nowrap; }
#privacy td:first-child { white-space: normal; width: 38%; font-weight: 500; }
.note { margin-top: 16px; font-size: 14.5px; color: var(--text-dim); }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.dl {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.dl.featured { border-color: rgba(56, 189, 248, 0.55); background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), var(--panel) 45%); }
.dl-tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: #04121f; background: var(--accent); padding: 2px 10px; border-radius: 999px; }
.dl-tag.muted { background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--line-strong); }
.dl h3 { font-size: 20px; }
.dl-file { font-family: var(--mono); font-size: 13.5px; color: #bae6fd; }
.dl-file span { color: var(--text-faint); margin-left: 8px; }
.dl p:not(.dl-tag):not(.dl-file) { font-size: 14.5px; color: var(--text-dim); flex: 1; }
.dl .btn { margin-top: 6px; }

.verify {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-top: 28px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.verify h3 { font-size: 17px; margin-bottom: 6px; }
.verify p { font-size: 14.5px; color: var(--text-dim); }

.cmd { display: flex; align-items: center; gap: 10px; background: #060b17; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 10px 10px 16px; }
.cmd code { background: none; border: 0; padding: 0; color: #bae6fd; font-size: 13.5px; flex: 1; white-space: normal; overflow-wrap: anywhere; }
.cmd-wide { margin-top: 32px; }
.copy {
  flex: none; font: 600 13px var(--font); color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 12px; cursor: pointer;
}
.copy:hover { border-color: var(--accent); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; font-size: 16.5px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; color: var(--text-dim); font-size: 15px; }

/* Tech */
.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tech h3 { font-size: 17px; margin-bottom: 6px; }
.tech p { font-size: 14.5px; color: var(--text-dim); line-height: 1.7; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: #080d1a; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand p { color: var(--text-dim); font-size: 14.5px; margin-top: 8px; }
.footer-links { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 36px; font-size: 15px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-faint); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(4, 8, 18, 0.92); display: grid; place-items: center; padding: 40px 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1400px, 100%); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; border: 1px solid var(--line-strong); }
.lightbox figcaption { text-align: center; margin-top: 14px; color: var(--text-dim); font-size: 15px; }
.lightbox-close {
  position: absolute; top: 18px; right: 20px; font: 600 14px var(--font); color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 14px; cursor: pointer;
}

/* Responsive */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .facts-grid, .tech { grid-template-columns: repeat(2, 1fr); }
  .cards, .steps, .downloads { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-text { order: 0; }
  .verify { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 56px; }
  .facts-grid, .tech, .cards, .steps, .downloads { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost { display: none; }
  .section { padding: 64px 0; }
  td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
