/* ── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f1117;
  --surface:   #181b23;
  --surface2:  #1e2130;
  --border:    #2a2f42;
  --accent:    #5865f2;
  --accent-hover: #4752c4;
  --text:      #e4e6eb;
  --text-muted:#8b90a0;
  --green:     #3ba55d;
  --radius:    12px;
  --shadow:    0 4px 32px rgba(0,0,0,.45);
  --font:      'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.btn--primary  { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost    { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn--ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn--outline  { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--sm       { padding: 7px 14px; font-size: 0.85rem; }
.btn--full     { width: 100%; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}
.nav__links {
  display: flex;
  gap: 24px;
  margin-right: auto;
}
.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color .15s;
}
.nav__links a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('../img/hero-bg.svg') center / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
/* Dark vignette on left so text is crisp */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 20% 50%, transparent 40%, var(--bg) 100%),
              linear-gradient(to right, var(--bg) 0%, transparent 45%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.hero__text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hero__screenshot img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ── Features ────────────────────────────────────────────────────────────── */
.features {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.features h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-card__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.12);
  margin-bottom: 18px;
}
.feature-card__icon i {
  font-size: 1.25rem;
  color: var(--accent);
  line-height: 1;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing {
  padding: 80px 0;
}
.pricing h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.pricing__sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.plan-card--featured {
  border-color: var(--accent);
  background: var(--surface2);
}
.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.plan-card__header { display: flex; flex-direction: column; gap: 6px; }
.plan-card__tier { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.plan-card__price { display: flex; align-items: baseline; gap: 4px; }
.plan-card__price--stacked { flex-direction: column; align-items: flex-start; gap: 2px; }
.plan-card__price--stacked .plan-card__amount { font-size: 1.9rem; }
.plan-card__amount { font-size: 2.2rem; font-weight: 800; }
.plan-card__period { color: var(--text-muted); font-size: 0.9rem; }

.plan-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.plan-card__features li { font-size: 0.88rem; color: var(--text-muted); }
.plan-card__features li:has(✓) { color: var(--text); }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: min(480px, calc(100vw - 32px));
  position: relative;
  box-shadow: var(--shadow);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal__close:hover { color: var(--text); }
.modal h3 { font-size: 1.2rem; margin-bottom: 6px; }
.modal #modal-plan-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.modal form { display: flex; flex-direction: column; gap: 14px; }
.modal label { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; display: block; }
.modal input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color .15s;
}
.modal input:focus { border-color: var(--accent); }
.modal__secure { font-size: 0.78rem; color: var(--text-muted); text-align: center; }
.modal__error { color: #f04747; font-size: 0.88rem; margin-top: 8px; padding: 10px 14px; background: rgba(240,71,71,.1); border-radius: 8px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--text-muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }

/* ── Nav CTA always visible ─────────────────────────────────────────────── */
.nav__cta { display: inline-flex; margin-left: auto; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* ─ 1024px: Tablet landscape ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: 40px; }
}

/* ─ 768px: Tablet portrait + mobile nav ───────────────────────────────── */
@media (max-width: 768px) {

  /* Nav: hide text links, keep CTA */
  .nav__links { display: none; }

  /* Hero */
  .hero { padding: 64px 0 48px; }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__screenshot {
    display: block;
    margin-top: 36px;
  }
  .hero__screenshot img {
    border-radius: 10px;
    width: 100%;
  }

  /* Section headings */
  .features h2, .pricing h2 { font-size: 1.75rem; margin-bottom: 36px; }

  /* Features */
  .features { padding: 64px 0; }
  .features__grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 22px 20px; }

  /* Pricing */
  .pricing { padding: 64px 0; }
  .pricing__grid { grid-template-columns: 1fr; gap: 14px; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer nav { justify-content: center; }
}

/* ─ 480px: Compact phones ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 40px; }
  .hero__text h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .hero__sub { font-size: 1rem; }
  .hero__actions { flex-direction: column; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .plan-card { padding: 22px 18px; }
  .plan-card__amount { font-size: 1.9rem; }
  .modal { padding: 28px 20px; }
}

/* ─ Touch devices: strip hover transforms ──────────────────────────────── */
@media (hover: none) {
  .feature-card:hover { transform: none; box-shadow: none; }
  .plan-card:hover     { transform: none; box-shadow: none; }
  .btn:hover           { transform: none; box-shadow: none; }
  .feature-card:hover .feature-card__icon {
    transform: none;
    background: rgba(88, 101, 242, 0.12);
  }
}

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes blobDrift {
  0%   { transform: translate(0,   0)   scale(1); }
  33%  { transform: translate(18px, -12px) scale(1.04); }
  66%  { transform: translate(-10px, 14px) scale(0.97); }
  100% { transform: translate(0,   0)   scale(1); }
}
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ── Nav entrance ────────────────────────────────────────────────────────── */
.nav {
  animation: navSlideDown 0.5s cubic-bezier(.16,1,.3,1) both;
}

/* ── Hero entrance ───────────────────────────────────────────────────────── */
.hero__text h1 {
  animation: fadeUp 0.7s cubic-bezier(.16,1,.3,1) 0.15s both;
}
.hero__sub {
  animation: fadeUp 0.7s cubic-bezier(.16,1,.3,1) 0.28s both;
}
.hero__actions {
  animation: fadeUp 0.7s cubic-bezier(.16,1,.3,1) 0.38s both;
}
.hero__meta {
  animation: fadeUp 0.6s cubic-bezier(.16,1,.3,1) 0.48s both;
}
.hero__screenshot {
  animation: fadeRight 0.8s cubic-bezier(.16,1,.3,1) 0.25s both;
}
.hero__screenshot img {
  transition: transform 0.4s cubic-bezier(.16,1,.3,1), box-shadow 0.4s ease;
}
.hero__screenshot img:hover {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 40px rgba(40,189,255,.12);
}
.hero__screenshot .an-mockup-outer {
  transition: transform 0.4s cubic-bezier(.16,1,.3,1), box-shadow 0.4s ease;
}
.hero__screenshot .an-mockup-wrapper:hover .an-mockup-outer {
  transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg) scale(1.02) translateY(-4px);
  box-shadow: 0 0 0 1px rgba(58,181,210,0.3), 0 24px 80px rgba(0,0,0,.75), 0 0 48px rgba(58,181,210,.15);
}

/* Slow drift on the hero background blobs */
.hero::before {
  animation: blobDrift 14.4s ease-in-out infinite;
}

/* ── Scroll-reveal base state ────────────────────────────────────────────── */
/* Elements start hidden; JS adds .revealed to trigger animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.16,1,.3,1),
              transform 0.6s cubic-bezier(.16,1,.3,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger siblings via CSS custom property set by JS */
.reveal { transition-delay: var(--reveal-delay, 0ms); }

/* ── App Mockup (hero screenshot replacement) ────────────────────────────── */

.an-mockup-wrapper {
  position: relative;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 28px;
}

.an-mockup-glow {
  position: absolute;
  inset: -24px;
  border-radius: 28px;
  background: radial-gradient(ellipse at center, rgba(58,181,210,0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.an-mockup-outer {
  position: relative;
  z-index: 1;
  background: #1a1a1a;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(58,181,210,0.18),
    0 20px 60px rgba(0,0,0,0.75),
    0 4px 20px rgba(0,0,0,0.5);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg);
  transform-origin: center center;
}

/* Windows-style menu bar */
.an-menubar {
  display: flex;
  gap: 0;
  padding: 3px 10px;
  background: #141414;
  border-bottom: 1px solid #262626;
  flex-shrink: 0;
}
.an-menubar span {
  font-size: 9.5px;
  color: #888;
  padding: 2px 9px;
  cursor: default;
  border-radius: 3px;
}
.an-menubar span:hover { background: #282828; color: #ccc; }

/* Main two-panel layout */
.an-layout {
  display: flex;
  aspect-ratio: 1679 / 1291;
  overflow: hidden;
  min-width: 0;
}

/* ── Sidebar ── */
.an-sidebar {
  width: 23.5%;
  min-width: 0;
  flex-shrink: 0;
  background: #1a1a1a;
  border-right: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.an-user-section {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px 7px;
  border-bottom: 1px solid #282828;
  flex-shrink: 0;
}
.an-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3ab5d2, #1a8fa8);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.an-user-info { flex: 1; min-width: 0; }
.an-uname  { font-size: 10px; color: #d0d0d0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-uemail { font-size: 8.5px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-udots  { font-size: 12px; color: #555; flex-shrink: 0; cursor: pointer; }

/* Workspace tabs */
.an-ws-row {
  display: flex;
  border-bottom: 1px solid #282828;
  flex-shrink: 0;
}
.an-ws-tab {
  flex: 1;
  text-align: center;
  font-size: 8.5px;
  padding: 5px 4px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.an-ws-active {
  color: #3ab5d2;
  border-bottom: 2px solid #3ab5d2;
  font-weight: 600;
}

/* Notes section header */
.an-notes-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 4px;
  flex-shrink: 0;
}
.an-notes-lbl {
  font-size: 9px;
  font-weight: 700;
  color: #3ab5d2;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.an-notes-acts { display: flex; gap: 7px; }
.an-notes-acts span { font-size: 9px; color: #555; cursor: pointer; }

/* File tree */
.an-tree {
  flex: 1;
  overflow: hidden;
  padding: 2px 0;
}
.an-folder-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3.5px 10px;
  font-size: 10px;
  color: #aaa;
  cursor: pointer;
}
.an-folder-item:hover { background: #222; }
.an-chev {
  font-size: 8px;
  color: #666;
  width: 8px;
  flex-shrink: 0;
}
.an-chev-open { color: #3ab5d2; }
.an-ficon { font-size: 10px; }

.an-file-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 22px;
  font-size: 9.5px;
  color: #777;
  cursor: pointer;
}
.an-file-item:hover { background: #222; }
.an-file-item.an-ind { padding-left: 22px; }
.an-file-item.an-root { padding-left: 10px; }
.an-file-item.an-selected { background: rgba(58,181,210,0.12); }
.an-file-item.an-selected .an-fname { color: #3ab5d2; font-weight: 600; }

.an-fdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
}
.an-fdot-accent { background: #3ab5d2; box-shadow: 0 0 4px rgba(58,181,210,0.5); }
.an-fname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ── Editor ── */
.an-editor {
  flex: 1;
  background: #222222;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Document title bar */
.an-doc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: #1e1e1e;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
  min-width: 0;
}
.an-doc-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.an-doc-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.an-edit-btn {
  border: 1px solid #3ab5d2;
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 9.5px;
  color: #3ab5d2;
  font-weight: 600;
  background: transparent;
  white-space: nowrap;
}
.an-tool-icon {
  font-size: 9px;
  color: #555;
  cursor: pointer;
  padding: 2px 4px;
}

/* Read-only banner */
.an-ro-bar {
  background: #1e1e1e;
  border-bottom: 1px solid #2a2a2a;
  padding: 4px 14px;
  font-size: 9.5px;
  color: #888;
  flex-shrink: 0;
}
.an-ro-bar strong { color: #3ab5d2; }

/* Rendered markdown */
.an-content {
  flex: 1;
  padding: 14px 18px;
  overflow: hidden;
  min-width: 0;
}
.an-cnt-h1 {
  font-size: 15px;
  font-weight: 800;
  color: #3ab5d2;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.an-cnt-hr {
  border: none;
  border-top: 1px solid #2e2e2e;
  margin: 6px 0;
}
.an-cnt-bq {
  border-left: 3px solid #3ab5d2;
  padding: 4px 10px;
  font-size: 9.5px;
  color: #666;
  font-style: italic;
  background: rgba(58,181,210,0.04);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.an-cnt-h2 {
  font-size: 12px;
  font-weight: 700;
  color: #c0c0c0;
  margin: 8px 0 5px;
}

/* Table */
.an-cnt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5px;
  margin-bottom: 10px;
}
.an-cnt-table th {
  background: #1e1e1e;
  color: #3ab5d2;
  padding: 4px 8px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid #2e2e2e;
  white-space: nowrap;
}
.an-cnt-table td {
  padding: 3.5px 8px;
  color: #888;
  border-bottom: 1px solid #272727;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.an-cnt-table tr:last-child td { border-bottom: none; }
.an-cnt-table tr:nth-child(odd) td { background: rgba(255,255,255,0.015); }

/* Mermaid-style diagram box */
.an-diagram {
  position: relative;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 10px;
  overflow: hidden;
}
.an-diag-svg {
  width: 100%;
  height: auto;
  display: block;
}
.an-zoom-ctrls {
  position: absolute;
  bottom: 6px;
  right: 8px;
  display: flex;
  gap: 3px;
}
.an-zoom-btn {
  width: 16px; height: 16px;
  background: #242424;
  border: 1px solid #333;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: #666;
  cursor: pointer;
}

/* Version badge */
.an-version-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(58,181,210,0.12);
  border: 1px solid rgba(58,181,210,0.25);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  color: #3ab5d2;
  letter-spacing: 0.04em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ── Mockup responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .an-mockup-outer { transform: none; }
  .hero__screenshot .an-mockup-wrapper:hover .an-mockup-outer {
    transform: scale(1.01) translateY(-3px);
  }
}

@media (max-width: 480px) {
  .an-uemail       { display: none; }
  .an-ws-row       { display: none; }
  .an-cnt-bq       { display: none; }
  .an-doc-tools    { display: none; }
  .an-cnt-table    { display: none; }
  .an-cnt-h1       { font-size: 11px; }
  .an-cnt-h2       { font-size: 10px; }
  .an-notes-acts   { display: none; }
}

/* ── Feature card hover ──────────────────────────────────────────────────── */
.feature-card {
  transition: border-color 0.2s, transform 0.25s cubic-bezier(.16,1,.3,1),
              box-shadow 0.25s ease;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 0 1px var(--accent);
}
.feature-card__icon {
  transition: transform 0.25s cubic-bezier(.16,1,.3,1), background 0.2s;
}
.feature-card:hover .feature-card__icon {
  transform: translateY(-2px);
  background: rgba(88, 101, 242, 0.22);
}

/* ── Pricing card hover ──────────────────────────────────────────────────── */
.plan-card {
  transition: border-color 0.2s, transform 0.25s cubic-bezier(.16,1,.3,1),
              box-shadow 0.25s ease;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
}
.plan-card--featured:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.45), 0 0 32px rgba(88,101,242,.25);
}

/* ── Button animations ───────────────────────────────────────────────────── */
.btn {
  transition: background 0.15s, color 0.15s, border-color 0.15s,
              transform 0.15s cubic-bezier(.16,1,.3,1),
              box-shadow 0.15s ease;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(88,101,242,.45);
}

/* "Get Started" nav CTA shimmer on hover */
.nav .btn--primary {
  background-size: 200% auto;
}
.nav .btn--primary:hover {
  background-image: linear-gradient(90deg,
    var(--accent) 0%, #7b89ff 40%, var(--accent) 100%);
  background-size: 200% auto;
  animation: shimmer 1.2s linear infinite;
}

/* ── Nav link underline slide ────────────────────────────────────────────── */
.nav__links a {
  position: relative;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(.16,1,.3,1);
}
.nav__links a:hover::after { width: 100%; }

/* ── Section heading fade ────────────────────────────────────────────────── */
.features h2, .pricing h2 {
  transition: opacity 0.4s;
}

/* ── Reduce motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Why section ─────────────────────────────────────────────────────────── */
.why {
  padding: 96px 0 80px;
  border-top: 1px solid var(--border);
}
.why h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.why__sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.7;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.why-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  transition: border-color 0.2s, transform 0.25s cubic-bezier(.16,1,.3,1);
}
.why-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.why-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.why-item h3 i {
  color: var(--accent);
  font-size: 1.15rem;
}
.why-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── FAQ section ─────────────────────────────────────────────────────────── */
.faq {
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
}
.faq h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 48px;
}
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq__item[open] {
  border-color: var(--accent);
}
.faq__item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item p {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Responsive: Why & FAQ ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .why__grid { grid-template-columns: 1fr; }
  .why, .faq { padding: 64px 0; }
  .features h2, .pricing h2, .why h2, .faq h2 { font-size: 1.75rem; margin-bottom: 36px; }
}
