.hidden {
  display: none !important;
}

.home-page {
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.home-bg-glow {
  position: fixed;
  inset: -20% -10% auto;
  height: 60vh;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(13, 13, 13, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 10%, rgba(5, 150, 105, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.home-header,
.home-main,
.home-footer {
  position: relative;
  z-index: 1;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.home-brand .brand-logo {
  height: 34px;
  width: auto;
  max-width: 220px;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-nav-link,
.home-nav-btn {
  font: inherit;
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.home-nav-link:hover,
.home-nav-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.home-nav-cta {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 14px;
}

.home-main {
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 40px 28px 72px;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 72px;
}

.home-eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  font-weight: 600;
}

.home-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 34rem;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.home-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.home-btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.home-btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.home-btn-ghost:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.home-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-stats strong {
  font-size: 1.1rem;
}

.home-stats span {
  font-size: 0.78rem;
  color: var(--muted);
}

.home-version {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Mockup */
.home-mockup {
  position: relative;
  padding: 8px 0 24px;
}

.mockup-window {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 24px 48px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  animation: floatY 6s ease-in-out infinite;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--sidebar), color-mix(in srgb, var(--sidebar) 80%, var(--surface)));
}

.mockup-traffic {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot-red { background: #ff5f57; }
.mockup-dot-yellow { background: #febc2e; }
.mockup-dot-green { background: #28c840; }

.mockup-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  margin-right: 42px;
}

.mockup-body {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 380px;
}

.mockup-sidebar {
  padding: 12px 10px;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.mock-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.mock-sidebar-brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
}

.mock-sidebar-new {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
}

.mock-sidebar-new svg {
  width: 12px;
  height: 12px;
}

.mock-sidebar-nav {
  display: grid;
  gap: 4px;
}

.mock-sidebar-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.66rem;
  color: var(--text-secondary);
}

.mock-sidebar-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.75;
}

.mock-sidebar-history {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.mock-history-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 6px 4px;
}

.mock-history-item {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.64rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-history-item.is-active {
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

.mockup-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.mock-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mock-model-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
}

.mock-model-badge span {
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--muted);
  padding: 2px 5px;
  background: var(--accent-soft);
  border-radius: var(--radius-full);
}

.mock-ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  font-size: 0.62rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.mock-ticker-chip .symbol {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
}

.mock-status {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--success);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: var(--success-soft);
}

.mockup-chat {
  flex: 1;
  padding: 14px 14px 10px;
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: hidden;
}

.mock-bubble {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.74rem;
  line-height: 1.45;
  max-width: 92%;
}

.mock-bubble.user {
  justify-self: end;
  background: var(--user-bg);
  color: var(--text);
  font-weight: 500;
}

.mock-bubble.assistant {
  justify-self: start;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.mock-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.mock-tool-pill svg {
  width: 11px;
  height: 11px;
  opacity: 0.7;
}

.mock-assistant-lead {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.mock-forecast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.mock-forecast-grid div {
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  background: var(--sidebar);
  border: 1px solid var(--border);
  text-align: center;
}

.mock-forecast-grid span {
  display: block;
  font-size: 0.58rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.mock-forecast-grid strong {
  display: block;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text);
  margin-bottom: 2px;
}

.mock-forecast-grid em {
  display: block;
  font-size: 0.55rem;
  font-style: normal;
  color: var(--muted);
}

.mock-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.62rem;
  font-weight: 600;
}

.mock-export-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--sidebar);
  border: 1px solid var(--border);
}

.mock-export-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #059669;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mock-export-icon svg {
  width: 18px;
  height: 18px;
}

.mock-export-meta {
  flex: 1;
  min-width: 0;
}

.mock-export-meta strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-export-meta span {
  font-size: 0.6rem;
  color: var(--muted);
}

.mock-export-btn {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  flex-shrink: 0;
}

.mock-composer {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mock-omnibar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow-xs);
}

.mock-omnibar-plus {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--muted);
  flex-shrink: 0;
}

.mock-omnibar-plus svg {
  width: 14px;
  height: 14px;
}

.mock-omnibar-placeholder {
  flex: 1;
  font-size: 0.66rem;
  color: var(--placeholder);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-omnibar-send {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

.mock-omnibar-send svg {
  width: 14px;
  height: 14px;
}

.mockup-glow {
  position: absolute;
  inset: 15% -8% -8%;
  background:
    radial-gradient(circle at 30% 40%, rgba(5, 150, 105, 0.1), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(13, 13, 13, 0.06), transparent 60%);
  z-index: -1;
}

.mockup-float {
  position: absolute;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  animation: floatY 5s ease-in-out infinite;
}

.mockup-float-data {
  top: 8%;
  right: -4%;
  animation-delay: 0.5s;
}

.mockup-float-export {
  bottom: 12%;
  left: -6%;
  animation-delay: 1.2s;
}

.mockup-float-data::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 3px var(--success-soft);
}

.mockup-float-export::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #059669;
  margin-right: 6px;
  vertical-align: middle;
}

.home-features-section {
  margin-bottom: 56px;
}

.home-templates-band {
  margin-bottom: 56px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

.home-templates-header {
  margin-bottom: 18px;
}

.home-templates-header h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.home-templates-header p {
  margin: 0;
  color: var(--text-secondary);
}

.home-template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-template-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 14px;
}

.home-template-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.home-template-card p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
}

.home-template-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--muted);
}

.home-template-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
}

.home-template-card a:hover {
  text-decoration: underline;
}

.home-features-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 36px;
}

.home-features-header .home-eyebrow {
  margin-bottom: 10px;
}

.home-features-header h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  font-weight: 600;
}

.home-features-header p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1.02rem;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-feature {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.home-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.home-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.home-feature-icon svg {
  width: 24px;
  height: 24px;
}

.home-feature-icon--market { background: #ecfdf5; color: #059669; }
.home-feature-icon--filings { background: #eff6ff; color: #2563eb; }
.home-feature-icon--valuation { background: #f5f3ff; color: #7c3aed; }
.home-feature-icon--forecast { background: #fff7ed; color: #ea580c; }
.home-feature-icon--upload { background: #f0f9ff; color: #0284c7; }
.home-feature-icon--product { background: #fdf4ff; color: #c026d3; }
.home-feature-icon--session { background: var(--accent-soft); color: var(--accent); }
.home-feature-icon--web { background: #f0fdf4; color: #16a34a; }

.home-feature h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.home-feature p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.95rem;
}

.home-about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 56px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--sidebar) 40%, var(--surface)));
}

.home-about-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
}

.home-about-copy p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1rem;
}

.home-about-copy .home-btn {
  margin-top: 8px;
}

.home-about-atana {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.home-about-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-about-atana h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-about-atana p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.home-about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.home-about-link:hover {
  text-decoration: underline;
}

.home-about-link svg {
  width: 16px;
  height: 16px;
}

.home-cta-band {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--sidebar) 60%, var(--surface)));
}

.home-cta-band h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.75rem;
}

.home-cta-band p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.home-cta-band .home-cta {
  justify-content: center;
  margin-bottom: 0;
}

.home-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.home-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.anim-fade-up {
  animation: fadeInUp 0.7s ease both;
}

.mock-slide-right {
  animation: slideInRight 0.6s ease both;
}

.mock-slide-left {
  animation: slideInLeft 0.6s ease both;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

.anim-delay-5 { animation-delay: 0.5s; }
.anim-delay-6 { animation-delay: 0.6s; }
.anim-delay-7 { animation-delay: 0.7s; }

.mock-delay-1 { animation-delay: 0.15s; }
.mock-delay-2 { animation-delay: 0.3s; }
.mock-delay-3 { animation-delay: 0.45s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 1100px) {
  .home-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-about {
    grid-template-columns: 1fr;
  }

  .home-features {
    grid-template-columns: 1fr;
  }

  .home-template-grid {
    grid-template-columns: 1fr;
  }

  .home-mockup {
    order: -1;
  }

  .mockup-float {
    display: none;
  }
}

@media (max-width: 600px) {
  .mockup-body {
    grid-template-columns: 1fr;
    min-height: 340px;
  }

  .mockup-sidebar {
    display: none;
  }

  .mock-forecast-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mock-ticker-chip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anim-fade-up,
  .mockup-window,
  .mockup-float {
    animation: none !important;
  }
}
