/* ============================================================
   AskHedgy Landing Page — Style.css
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=DM+Serif+Display:ital@0;1&display=swap');

/* ============================================================
   1. TOKENS (brand palette)
   ============================================================ */
:root {
  --palette-slate-900: #1E293B;
  --palette-slate-800: #273549;
  --palette-slate-700: #334155;
  --palette-slate-500: #64748B;
  --palette-slate-300: #CBD5E1;
  --palette-slate-200: #E2E8F0;
  --palette-slate-100: #F1F5F9;
  --palette-white:     #FFFFFF;
  --palette-snow:      #F8FAFC;
  --palette-teal:    #0D9488;
  --palette-teal-lt: #14B8A6;
  --palette-teal-dk: #0F766E;

  --surface-dark:   var(--palette-slate-900);
  --surface-light:  var(--palette-snow);
  --surface-white:  var(--palette-white);
  --accent:         var(--palette-teal);
  --accent-light:   var(--palette-teal-lt);
  --accent-dark:    var(--palette-teal-dk);

  --text-on-dark:   var(--palette-white);
  --text-primary:   var(--palette-slate-900);
  --text-secondary: var(--palette-slate-500);
  --text-muted:     var(--palette-slate-300);

  --border: var(--palette-slate-200);

  --font-display: 'DM Serif Display', serif;
  --font-body:    'Inter', sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 24px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.14);

  --transition: 0.25s ease;
  --transition-m: 0.4s ease;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

/* ============================================================
   3. UTILITY
   ============================================================ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 96px 0; }
.section--light { background: var(--surface-light); }
.section--white { background: var(--surface-white); }
.section--dark  { background: var(--surface-dark); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-title--light { color: var(--text-on-dark); }

.section-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
}

.section-sub--light { color: var(--palette-slate-300); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   4. HEADER
   ============================================================ */
.site-header {
  background: var(--surface-dark);
  height: 68px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 36px;
  width: auto;
}

/* ============================================================
   5. HERO
   ============================================================ */
.hero {
  background: var(--surface-dark);
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

/* animated dot-grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: gridDrift 20s linear infinite;
}

/* teal glow blob */
.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.18) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 32px 32px; }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(13,148,136,0.35);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--text-on-dark);
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-light);
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--palette-slate-300);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-s);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(13,148,136,0.4);
}

.hero-contact:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,148,136,0.45);
}

/* ── Hero visual / mockup ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-shell {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-l);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  animation: floatCard 6s ease-in-out infinite;
}

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

/* ── Floating badge on mockup ── */
.mockup-badge {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: var(--surface-dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-m);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-lg);
  animation: floatBadge 6s ease-in-out 1s infinite;
}

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

.mockup-badge-icon { font-size: 1.25rem; }

.mockup-badge-text { display: flex; flex-direction: column; }
.mockup-badge-text strong { font-size: 0.82rem; color: #fff; font-weight: 700; }
.mockup-badge-text span   { font-size: 0.7rem; color: var(--palette-slate-300); }

/* ============================================================
   6. PAIN POINTS
   ============================================================ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pain-card {
  background: var(--surface-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.pain-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-s);
  background: rgba(13,148,136,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.pain-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pain-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ============================================================
   7. HOW IT WORKS
   ============================================================ */
.steps-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}

/* connector line between steps */
.steps-wrap::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 2px;
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 8px rgba(13,148,136,0.12);
  transition: box-shadow var(--transition-m);
}

.step:hover .step-number {
  box-shadow: 0 0 0 14px rgba(13,148,136,0.18);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ── Step illustration ── */
.step-illustration {
  margin-top: 1.5rem;
}

/* ============================================================
   8. FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, rgba(13,148,136,0.04), transparent);
  opacity: 0;
  transition: opacity var(--transition-m);
}

.feature-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
  border-color: rgba(13,148,136,0.3);
}

.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-s);
  background: rgba(13,148,136,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ── Lucide icon sizing shared across pain-icon, feature-icon, badge ── */
.pain-icon svg,
.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.mockup-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mockup-badge-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-light);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ============================================================
   9. FOR WHOM
   ============================================================ */
.forwhom-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 1rem;
}

.forwhom-text .section-sub { max-width: 100%; }

.forwhom-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  background: var(--surface-white);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.tag svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-secondary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke var(--transition);
}

.tag:hover svg { stroke: var(--accent-dark); }

.tag:hover {
  background: rgba(13,148,136,0.08);
  border-color: rgba(13,148,136,0.4);
  color: var(--accent-dark);
}

/* ── Analytics illustration ── */
.analytics-visual {
  background: var(--surface-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

/* ============================================================
   10. FAQ
   ============================================================ */
.faq-list {
  margin-top: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface-white);
  transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow-card); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 1rem;
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(13,148,136,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}

.faq-chevron svg {
  width: 10px; height: 10px;
  stroke: var(--accent);
  transition: transform var(--transition);
}

.faq-item.open .faq-chevron { background: var(--accent); }
.faq-item.open .faq-chevron svg { stroke: #fff; transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer { max-height: 200px; }

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ============================================================
   11. CONTACT CTA
   ============================================================ */
.contact-section {
  background: var(--surface-dark);
  text-align: center;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.contact-section .container { position: relative; z-index: 1; }

.contact-section .section-title { color: var(--text-on-dark); }

.contact-section .section-sub {
  color: var(--palette-slate-300);
  margin: 0 auto 2rem;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-s);
  box-shadow: 0 4px 24px rgba(13,148,136,0.4);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.contact-email-link:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(13,148,136,0.5);
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo { height: 28px; opacity: 0.85; }

.footer-copy {
  font-size: 0.82rem;
  color: var(--palette-slate-500);
}

/* ============================================================
   13. SVG ILLUSTRATIONS (inline styles)
   ============================================================ */

/* chart bar animated fill */
@keyframes growBar {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

.chart-bar { animation: growBar 1s ease backwards; }

/* ============================================================
   14. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-wrap::before { display: none; }
  .steps-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .forwhom-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .container { padding: 0 1.25rem; }
  .features-grid { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; gap: 0.75rem; text-align: center; }
}
