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

:root {
  /* Primary Colors */
  --color-teal: #0D4F4F;
  --color-teal-light: #1A6B6B;
  --color-coral: #E85D4C;
  --color-coral-dark: #C94A3A;
  --color-sand: #F4E9D8;
  --color-charcoal: #1A1A2E;
  --color-warm-white: #FDFBF7;

  /* Accents */
  --color-gold: #C4A35A;
  --color-sky: #87CEEB;
  --color-storm: #4A3F6B;

  /* Semantic mappings */
  --primary-color: var(--color-teal);
  --primary-dark: var(--color-teal-light);
  --accent-color: var(--color-coral);
  --text-color: var(--color-charcoal);
  --text-light: #4A4A5A;
  --background: var(--color-warm-white);
  --background-alt: var(--color-sand);
  --border-color: #D4C9B8;

  /* Layout */
  --max-width: 1200px;
  --spacing: 1rem;
  --section-padding: 6rem;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background);
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Selection and Focus States */
::selection {
  background: var(--color-coral);
  color: white;
}

:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border-color);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--text-color);
}

.logo-image {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.logo:hover .logo-image {
  transform: scale(1.05);
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-coral);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-color);
}

/* Hero Section */
.hero {
  position: relative;
  background: var(--color-charcoal);
  color: var(--color-warm-white);
  padding: 8rem 0 6rem;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  margin-top: 5rem;
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
}

.hero-shape--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-teal) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  opacity: 0.4;
}

.hero-shape--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-coral) 0%, transparent 70%);
  bottom: -150px;
  left: 10%;
  opacity: 0.2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-coral);
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.hero-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.5rem;
  height: 2px;
  background: var(--color-coral);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--color-warm-white);
}

.hero-tagline {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta .download-badge img {
  height: 54px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-cta .download-badge:hover img {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-icon {
  width: 200px;
  height: 200px;
  border-radius: 40px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotate(-5deg);
}

/* Features Section */
.features {
  padding: var(--section-padding) 0;
  background: var(--background);
}

.features-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
}

.features-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.feature {
  background: var(--background-alt);
  padding: 2.5rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-teal);
}

.feature h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

.feature p {
  color: var(--text-light);
  line-height: 1.6;
}

.feature--large {
  grid-column: span 7;
  grid-row: span 2;
  background: var(--color-teal);
  color: var(--color-warm-white);
  padding: 3rem;
}

.feature--large h3 {
  color: var(--color-warm-white);
  font-size: 1.75rem;
}

.feature--large p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
}

.feature--large::before {
  display: none;
}

.feature--accent {
  grid-column: span 5;
  background: var(--color-coral);
}

.feature--accent h3 {
  color: #000;
}

.feature--accent p {
  color: #000;
}

.feature--accent::before {
  display: none;
}

.feature:not(.feature--large):not(.feature--accent):not(.feature--outlined) {
  grid-column: span 5;
}

.feature--outlined {
  grid-column: span 7;
  background: transparent;
  border: 2px solid var(--border-color);
}

/* Download Badge (used in hero) */
.download-badge {
  display: inline-block;
  transition: transform 0.3s, opacity 0.3s;
}

.download-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.download-badge img {
  display: block;
  height: 60px;
  width: auto;
}

/* Content Pages */
.main-content {
  min-height: calc(100vh - 200px);
  margin-top: 5rem;
}

.content-page {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-teal);
}

.page-header h1 {
  font-size: 2.25rem;
  color: var(--text-color);
}

.page-content {
  line-height: 1.8;
}

.page-content h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.page-content h3 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-teal);
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.page-content ul,
.page-content ol {
  margin-bottom: 1rem;
  margin-left: 1.5rem;
  color: var(--text-light);
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content a {
  color: var(--color-teal);
  text-decoration: none;
  background-image: linear-gradient(var(--color-coral), var(--color-coral));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s ease;
}

.page-content a:hover {
  background-size: 100% 2px;
}

/* Contact Form */
.contact-form {
  margin-top: 2rem;
  background: var(--background-light);
  padding: 2rem;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(13, 79, 79, 0.1);
}

.submit-button {
  background: var(--color-coral);
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
  background: var(--color-coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(232, 93, 76, 0.5);
}

.submit-button:active {
  transform: translateY(0);
}

/* Footer */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-warm-white);
  padding: 5rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-warm-white);
  margin-bottom: 1rem;
}

.footer-logo-image {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 4rem;
  justify-content: flex-end;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-coral);
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--color-warm-white);
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .features-bento {
    grid-template-columns: 1fr;
  }

  .feature--large,
  .feature--accent,
  .feature--outlined,
  .feature:not(.feature--large):not(.feature--accent):not(.feature--outlined) {
    grid-column: 1;
    grid-row: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-top: 7rem;
  }

  .hero {
    padding: 5rem 0 4rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-label {
    padding-left: 0;
  }

  .hero-label::before {
    display: none;
  }

  .hero-tagline {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-icon {
    width: 140px;
    height: 140px;
    transform: rotate(0);
  }

  .page-header h1 {
    font-size: 1.85rem;
  }

  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing: 0.75rem;
    --section-padding: 3rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .content-page {
    padding: 2rem 0;
  }

  .main-nav {
    gap: 1.5rem;
  }
}
