/* StormRecord Landing Page Styles */

/* ===== CSS Variables ===== */
:root {
  /* Brand Colors */
  --brand-navy: #1a1a2e;
  --brand-navy-light: #2a2a3e;
  --brand-navy-subtle: #e8e9f0;

  /* Severity Colors */
  --severe: #DC2626;
  --moderate: #EA580C;
  --minor: #CA8A04;
  --normal: #059669;

  /* Neutral Colors */
  --bg-primary: #f9fafb;
  --surface: #ffffff;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --dark-surface: #1a1a2e;
  --dark-surface-alt: #0f0f1a;

  /* Typography */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--brand-navy);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-navy-light);
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-links a:hover {
  color: var(--brand-navy);
}

.nav-cta {
  background: var(--brand-navy);
  color: white !important;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--brand-navy-light);
  color: white !important;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-alt) 100%);
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-content .tagline {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-cta {
  margin-bottom: 2rem;
}

.app-store-badge {
  display: inline-block;
  height: 50px;
  transition: opacity 0.2s;
}

.app-store-badge:hover {
  opacity: 0.85;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
}

.hero-feature::before {
  content: "✓";
  color: var(--normal);
  font-weight: bold;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Trust Badges */
.trust-badges {
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  text-align: center;
}

.trust-badges-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.trust-badges p {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.badges-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.badge-item {
  text-align: center;
}

.badge-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  padding: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.badge-icon svg {
  width: 100%;
  height: 100%;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

.badge-label {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--dark-surface);
  color: rgba(255, 255, 255, 0.9);
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-light {
  background: var(--bg-primary);
}

.section-white {
  background: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Problem Section ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.problem-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: 8px;
  border: none;
}

.problem-icon {
  display: none;
}

.problem-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.solution-callout {
  background: #1a1a2e;
  border-left: 4px solid var(--brand-navy);
  padding: 1.5rem;
  margin-top: 3rem;
  border-radius: 4px;
}

.solution-callout p {
  font-size: 1.125rem;
  color: #ffffff;
  margin: 0;
  font-weight: 500;
}

/* ===== How It Works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-item {
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border-radius: 8px;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--brand-navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-item h3 {
  margin-bottom: 1rem;
}

.step-item p {
  color: var(--text-muted);
  margin: 0;
}

/* ===== Product Showcase ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.showcase-image {
  text-align: center;
}

.showcase-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.showcase-features {
  list-style: none;
}

.showcase-features li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.0625rem;
}

.showcase-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--normal);
  font-weight: bold;
  font-size: 1.25rem;
}

.showcase-grid:nth-child(even) {
  direction: rtl;
}

.showcase-grid:nth-child(even) > * {
  direction: ltr;
}

/* ===== Trust Section ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.trust-item {
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border-radius: 8px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.trust-icon svg {
  width: 60%;
  height: 60%;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

.trust-item h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.trust-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.trust-features {
  list-style: none;
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.trust-features li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
  list-style: none;
}

.trust-features li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--brand-navy);
  font-weight: bold;
  font-size: 1.25rem;
}

/* ===== Pricing ===== */
.pricing-card {
  max-width: 290px;
  margin: 3rem auto;
  padding: 1.8rem 1.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.pricing-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.25rem;
}

.price-term {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--normal);
  font-weight: bold;
  font-size: 1rem;
}

.pricing-compare {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sample-report-box {
  max-width: 700px;
  margin: 3rem auto 0;
  padding: 2rem;
  background: #f9fafb;
  border-left: 4px solid var(--brand-navy);
  border-radius: 8px;
}

.sample-report-box h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.sample-report-box p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.btn-sample {
  display: inline-block;
  background: var(--brand-navy);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-sample:hover {
  background: var(--brand-navy-light);
  color: white;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-primary);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--brand-navy);
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ===== Final CTA ===== */
.cta-final {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  color: white;
  text-align: center;
  padding: 5rem 0;
}

.cta-final h2 {
  color: white;
  margin-bottom: 2rem;
}

.cta-final p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-links h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 900px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: #1a1a2e !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background: #2a2a3e !important;
  color: #ffffff !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-features {
    justify-content: center;
  }

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

  .showcase-grid:nth-child(even) {
    direction: ltr;
  }

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

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

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 0.75rem 0;
    text-align: center;
  }

  .mobile-menu-toggle {
    display: block;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

  .section {
    padding: 3rem 0;
  }

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

  .badges-grid {
    gap: 2rem;
  }

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

  .pricing-card {
    padding: 1.5rem 1rem;
  }

  .price {
    font-size: 2rem;
  }
}

/* ===== Support Page Specific Styles ===== */
.support-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.support-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.contact-box {
  background: var(--brand-navy-subtle);
  border-left: 4px solid var(--brand-navy);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.contact-box p {
  margin-bottom: 0.5rem;
}

.email-link {
  font-weight: 600;
  color: var(--brand-navy);
  font-size: 1.125rem;
}

.qa-list {
  margin-top: 2rem;
}

.qa-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.qa-item:last-child {
  border-bottom: none;
}

.qa-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.qa-item p {
  color: var(--text-secondary);
  margin: 0;
}

.app-info {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 8px;
}

.app-info p {
  margin-bottom: 0.5rem;
}

.app-info p:last-child {
  margin-bottom: 0;
}
