/* =============================================================================
 * PASSWORD GENERATOR — LANDING PAGE v3
 * Design identity: جسور / گرم / صادق
 * Palette: Warm charcoal + amber + sage — NO purple-blue gradients
 * ============================================================================= */

@font-face {
  font-family: 'Vazirmatn';
  src: url('./fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('./fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('./fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('./fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('./fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── Warm palette — NOT blue/purple ── */
  --bg-deep: #111110;
  --bg-card: #1a1917;
  --bg-elevated: #22211f;
  --bg-hover: #2a2926;
  --border-subtle: rgba(214, 186, 134, 0.1);
  --border-medium: rgba(214, 186, 134, 0.2);

  /* Accent: warm amber/gold */
  --accent: #d4a84b;
  --accent-dim: rgba(212, 168, 75, 0.15);
  --accent-glow: rgba(212, 168, 75, 0.35);

  /* Secondary: sage green */
  --sage: #7a9e7e;
  --sage-dim: rgba(122, 158, 126, 0.12);

  /* Warm grays */
  --text-primary: #e8e2d6;
  --text-secondary: #a09889;
  --text-muted: #6d6459;
  --text-faint: #4a453e;

  /* Signature coral for highlights */
  --coral: #c97b63;

  /* Functional */
  --danger: #bf5b5b;
  --section-gap: 4rem;
  --container-max: 1100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: clip;
  line-height: 1.75;
  letter-spacing: -0.01em;
  padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

button, .btn, input, select, textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
}

/* ── Signature pattern — diagonal lines that repeat across the site ── */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 80px,
      rgba(212, 168, 75, 0.015) 80px,
      rgba(212, 168, 75, 0.015) 81px
    ),
    linear-gradient(180deg, var(--bg-deep) 0%, #0e0d0c 100%);
}

.bg-pattern::after {
  content: '';
  position: absolute;
  top: 0;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.particle {
  position: absolute;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.25;
  animation: drift 22s linear infinite;
  pointer-events: none;
}

@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.25; }
  50% { opacity: 0.12; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(180deg); opacity: 0.25; }
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-left: max(clamp(1.25rem, 4vw, 2rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.25rem, 4vw, 2rem), env(safe-area-inset-right, 0px));
}

.section {
  width: 100%;
  padding-block: var(--section-gap);
}

/* ── Section headers — asymmetric, not centered ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 540px;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 1rem 0;
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              backdrop-filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.scrolled {
  background: rgba(17, 17, 16, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
}

.nav-links {
  list-style: none;
  display: none;
  margin: 0;
  padding: 0;
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline: 0;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  z-index: 110;
}

.nav-links li { width: 100%; }

.nav-links a {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--accent-dim);
  color: var(--text-primary);
}

.nav-mobile-only { display: list-item; }

.nav-mobile-link {
  text-align: center;
  font-weight: 600;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-medium);
}

.nav-mobile-link--primary {
  background: var(--accent-dim) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-desktop-only { display: none; }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s,
              background 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 2px 12px rgba(212, 168, 75, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(212, 168, 75, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 12px;
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Hero — asymmetric, not centered ── */
.hero {
  min-height: auto;
  display: block;
  width: 100%;
  padding-top: calc(5rem + env(safe-area-inset-top, 0px));
  padding-bottom: 2rem;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

.hero-content {
  animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sage);
  background: var(--sage-dim);
  border: 1px solid rgba(122, 158, 126, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--sage);
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero-title-main {
  font-size: clamp(1.8rem, 7vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-title-sub {
  font-size: clamp(0.75rem, 3vw, 1rem);
  font-weight: 500;
  color: var(--text-muted);
  direction: ltr;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 480px;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.hero-cta .btn {
  width: 100%;
}

/* Stats — minimal, inline */
.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ── Mock Preview — offset, tilted ── */
.hero-preview {
  position: relative;
  animation: heroIn 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.glass {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.mock-app {
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.mock-dot.red { background: var(--danger); }
.mock-dot.amber { background: var(--accent); }
.mock-dot.green { background: var(--sage); }

.mock-title {
  margin-right: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  direction: ltr;
  text-align: left;
}

.mock-field {
  margin-bottom: 0.75rem;
}

.mock-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.mock-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.mock-range-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mock-range {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sage) 0%, var(--accent) 50%, var(--danger) 100%);
}

.mock-range-val {
  min-width: 28px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--accent);
}

.mock-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.mock-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  font-size: 0.62rem;
  color: var(--text-secondary);
}

.mock-chip.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.mock-chip-check {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.mock-chip-check svg {
  width: 8px;
  height: 8px;
}

.mock-btn {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--bg-deep);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: default;
}

.mock-modal {
  margin-top: 0.75rem;
  padding: 0.65rem;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.mock-password {
  font-family: 'Courier New', monospace;
  font-size: clamp(0.68rem, 3vw, 0.82rem);
  letter-spacing: 0.04em;
  color: var(--sage);
  background: var(--sage-dim);
  border: 1px solid rgba(122, 158, 126, 0.2);
  padding: 0.55rem 0.5rem;
  border-radius: 6px;
  text-align: center;
  direction: ltr;
  margin: 0.55rem 0;
}

.mock-modal-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.mock-modal-btn {
  padding: 0.35rem;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
  border: none;
  font-family: inherit;
  cursor: default;
}

.mock-modal-btn.save { background: var(--sage); color: var(--bg-deep); }
.mock-modal-btn.copy { background: var(--accent); color: var(--bg-deep); }
.mock-modal-btn.regen { background: var(--bg-hover); color: var(--text-secondary); }
.mock-modal-btn.close { background: var(--danger); color: #fff; }

.strength-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bg-deep);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--sage);
}

/* ── Features — staggered masonry grid, NOT uniform ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 1.35rem);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s;
  position: relative;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.feature-card:hover::after {
  height: 100%;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-subtle);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.feature-icon.sage { background: var(--sage-dim); }
.feature-icon.sage svg { stroke: var(--sage); }
.feature-icon.coral { background: rgba(201, 123, 99, 0.12); }
.feature-icon.coral svg { stroke: var(--coral); }

.feature-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Security ── */
.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: start;
}

.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.security-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s;
}

.security-item:hover {
  border-color: var(--border-medium);
}

.security-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--sage-dim);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.security-check svg {
  width: 12px;
  height: 12px;
  stroke: var(--sage);
}

.security-text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.security-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Mock history table ── */
.mock-history {
  padding: clamp(0.85rem, 3vw, 1.25rem);
}

.mock-history-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll .mock-table {
  min-width: 380px;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
}

.mock-table th {
  text-align: right;
  padding: 0.45rem 0.55rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.68rem;
}

.mock-table td {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid rgba(214, 186, 134, 0.05);
  color: var(--text-secondary);
}

.mock-table td.mono {
  font-family: monospace;
  direction: ltr;
  text-align: left;
  color: var(--text-muted);
}

.encrypted-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--sage);
  font-style: italic;
}

/* ── Tech stack — pills, not cards ── */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.tech-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tech-tag svg {
  width: 16px;
  height: 16px;
}

/* ── Architecture — horizontal flow ── */
.arch-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 2rem;
}

.arch-box {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.arch-box-icon {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.arch-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.arch-box-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── CTA ── */
.cta-section { text-align: center; }

.cta-box {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box .section-title,
.cta-box .section-desc {
  margin-inline: auto;
}

.cta-box .section-desc {
  margin-bottom: 1.75rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}

/* ── Footer ── */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-text a {
  color: var(--accent);
  transition: opacity 0.2s;
}

.footer-text a:hover { opacity: 0.8; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.72rem;
  color: var(--text-faint);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-secondary); }

/* ── Floating buttons ── */
.fab-group {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: calc(1rem + env(safe-area-inset-left, 0px));
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bg-deep);
  border: none;
  cursor: pointer;
  text-decoration: none;
  width: 46px;
  height: 46px;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s;
}

.fab:hover {
  transform: translateY(-2px);
}

.fab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.fab span { display: none; }

.fab-demo {
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(212, 168, 75, 0.3);
}

.fab-demo:hover {
  box-shadow: 0 6px 24px rgba(212, 168, 75, 0.45);
}

.fab-github {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

.fab-github:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ── Reveal animation ── */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Toast hidden ── */
.toast-demo { display: none !important; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (min-width: 480px) {
  .mock-chips { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  :root { --section-gap: 4.5rem; }

  .mock-modal-btns {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-cta .btn {
    width: auto;
    flex: 1 1 auto;
  }

  .hero-stats { gap: 2.5rem; }

  .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-buttons .btn { width: auto; }

  .fab span { display: inline; }
  .fab {
    width: auto;
    height: auto;
    padding: 0.65rem 1rem;
  }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav-desktop-only { display: inline-flex; }

  .nav-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-brand { grid-column: 1; }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    grid-column: 2;
    gap: 2rem;
  }

  .nav-links li { width: auto; }

  .nav-links a {
    display: inline-block;
    padding: 0.3rem 0;
    border-radius: 0;
    color: var(--text-muted);
    white-space: nowrap;
  }

  .nav-links a:hover {
    background: transparent;
    color: var(--text-primary);
  }

  .nav-mobile-only { display: none !important; }

  .nav-actions { grid-column: 3; justify-self: end; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .arch-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 960px) {
  :root { --section-gap: 5rem; }

  .hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 3rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-subtitle {
    max-width: 480px;
    font-size: 1rem;
  }

  .glass {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .mock-app {
    transform: perspective(800px) rotateY(-3deg) rotateX(1deg);
  }

  .mock-app:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .security-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .arch-flow {
    grid-template-columns: repeat(4, 1fr);
  }

  .arch-box:not(:last-child)::after {
    display: block;
    content: '';
    position: absolute;
    left: -0.65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
  }

  body { padding-bottom: 2rem; }
}

@media (min-width: 1200px) {
  :root { --section-gap: 5.5rem; }
  .hero-grid { gap: 3.5rem; }
}
