/* trymias.com landing page. Colours follow the app's "professional-dark" theme (src/App.css). */
:root {
  --bg-base: #181a1f;
  --bg-primary: #21252b;
  --bg-secondary: #282c34;
  --bg-tertiary: #323842;
  --text-primary: #e2e6ed;
  --text-secondary: #a3aab6;
  --text-muted: #737b88;
  --accent: #61afef;
  --accent-strong: #528bff;
  --accent-muted: rgba(97, 175, 239, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 750; max-width: 15ch; margin-inline: auto; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: 8px; }
p { margin: 0 0 14px; color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }

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

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.93rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #0f1720; }
.btn-primary:hover { background: #7dbdf3; }
.btn-ghost { color: var(--text-primary); border-color: rgba(255, 255, 255, 0.16); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.26); }
.btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: 11px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(24, 26, 31, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.logo { width: 28px; height: 28px; color: var(--accent); flex: none; }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a { color: var(--text-secondary); font-size: 0.93rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; }

/* Hero */
.hero {
  text-align: center;
  padding: 88px 0 40px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(82, 139, 255, 0.18), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(97, 175, 239, 0.08), transparent 70%);
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 640px; margin: 22px auto 30px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: 0.88rem; color: var(--text-muted); margin-top: 16px; }

/* Screenshots */
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-primary);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.shot-hero { margin-top: 56px; }
.shot-hero img { box-shadow: 0 40px 120px -30px rgba(82, 139, 255, 0.35), 0 30px 80px -20px rgba(0, 0, 0, 0.7); }

section { padding: 96px 0; }
section + section { border-top: 1px solid var(--border); }
.hero + section { border-top: 0; }

/* The idea */
.idea-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.idea p { font-size: 1.04rem; }
.idea .aside {
  font-size: 0.95rem;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin-top: 22px;
}
.diagram { margin: 0; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; text-align: center; }
.hull rect { stroke-width: 1.5; }
.hull-a rect { fill: rgba(97, 175, 239, 0.13); stroke: rgba(97, 175, 239, 0.55); }
.hull-b rect { fill: rgba(152, 195, 121, 0.11); stroke: rgba(152, 195, 121, 0.5); }
.hull-c rect { fill: rgba(198, 120, 221, 0.11); stroke: rgba(198, 120, 221, 0.5); }
.doc circle { fill: #9da4b0; }
.doc-bridge circle { fill: #e8eaed; stroke: var(--accent); stroke-width: 2.5; }
.label text { fill: var(--text-secondary); font: 600 13px var(--font); }

/* Steps */
.steps h2 { max-width: 22ch; }
.step-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-list li { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-list p { margin: 0; font-size: 0.96rem; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

/* Features */
.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature-flip { grid-template-columns: 1.2fr 0.8fr; }
.feature-flip .feature-text { order: 2; }
.feature-text p { font-size: 1.04rem; }

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 110px; }
.mini { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.mini p:last-child { margin-bottom: 0; }
.mini .eyebrow { display: flex; align-items: center; gap: 10px; }
.tag {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 1px 8px;
}
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.chip { font-size: 0.82rem; padding: 4px 10px; border-radius: 7px; background: var(--bg-tertiary); color: var(--text-primary); }
.chip-result { background: var(--accent-muted); color: var(--accent); }
.chip-sep { color: var(--text-muted); font-size: 0.9rem; }

/* Try it */
.try { background: linear-gradient(180deg, rgba(82, 139, 255, 0.06), transparent 60%); }
.try-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.try-card { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.try-card-primary { border-color: rgba(97, 175, 239, 0.45); box-shadow: 0 0 0 1px rgba(97, 175, 239, 0.15), 0 20px 60px -30px rgba(82, 139, 255, 0.5); }
.try-card h3 { font-size: 1.35rem; }
.try-sub { color: var(--text-muted); }
.try-card ul { margin: 6px 0 28px; padding-left: 20px; color: var(--text-secondary); flex: 1; }
.try-card li { margin-bottom: 8px; }
.try-card li::marker { color: var(--accent); }
.try-card .btn { align-self: flex-start; }

/* Research */
.research-intro { max-width: 60ch; }
.papers { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.papers li { padding: 18px 22px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 12px; }
.papers a { display: block; font-weight: 600; color: var(--text-primary); }
.papers a:hover { color: var(--accent); }
.papers span { font-size: 0.88rem; color: var(--text-muted); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand-small { font-size: 1rem; }
.brand-small .logo { width: 22px; height: 22px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--text-secondary); font-size: 0.92rem; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .idea-grid, .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature-flip { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
  .step-list, .mini-grid, .try-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .feature + .feature, .mini-grid { margin-top: 72px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding-top: 56px; }
  .shot-hero { margin-top: 40px; }
  .step-list li, .mini, .try-card { padding: 22px; }
}
