@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Real Trail Quest Color Palette (from UI guide) */
  --earth-dark: #2C2419;
  --earth-base: #1c140c;
  --earth-card: #1f140b;
  --earth-surface: #21160c;
  --earth-light: #291c12;
  
  --flame: #ff7a18;
  --flame-dark: #d97706;
  --flame-bright: #ea580c;
  
  --amber: #f7a454;
  --sand: #c7a27a;
  --sand-light: #c49d74;
  --parchment: #fef5dd;
  
  --border: #3a2819;
  --border-strong: #6b4a2b;
  
  --text-primary: #fef5dd;
  --text-secondary: #c7a27a;
  --text-muted: #c49d74;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Layout */
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--earth-dark);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, transparent 0%, var(--earth-dark) 100%),
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(255, 122, 24, 0.08), transparent),
    radial-gradient(ellipse 50% 50% at 70% 80%, rgba(199, 162, 122, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Paper texture noise */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence baseFrequency="0.9" /></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.03" /></svg>');
  pointer-events: none;
  z-index: 1;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Dust Particles */
.dust-particles {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(199, 162, 122, 0.15), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(199, 162, 122, 0.1), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(199, 162, 122, 0.1), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(199, 162, 122, 0.15), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(199, 162, 122, 0.1), transparent),
    radial-gradient(1px 1px at 33% 80%, rgba(199, 162, 122, 0.1), transparent);
  background-size: 200% 200%;
  animation: dustFloat 60s ease-in-out infinite;
}

@keyframes dustFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2%, -2%); }
  50% { transform: translate(-1%, 3%); }
  75% { transform: translate(-2%, -1%); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 900;
  line-height: 1.2;
  color: var(--parchment);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

.text-glow {
  color: var(--flame);
  text-shadow: 0 0 30px rgba(255, 122, 24, 0.5);
}

.text-flame {
  color: var(--flame);
}

.trail-quest-word {
  color: var(--flame);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(44, 36, 25, 0.85);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(44, 36, 25, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand-logo {
  height: 36px;
  width: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  object-fit: contain;
  padding: 4px;
}

.brand-text {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--parchment);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary,
.btn-trail-primary {
  background: linear-gradient(135deg, var(--flame) 0%, var(--flame-bright) 100%);
  color: var(--earth-dark);
  box-shadow: 0 4px 20px rgba(255, 122, 24, 0.4);
  border: 1px solid var(--flame);
}

.btn-primary:hover,
.btn-trail-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 122, 24, 0.6);
}

.btn-trail-ghost {
  background: transparent;
  color: var(--flame);
  border: 2px solid var(--flame);
}

.btn-trail-ghost:hover {
  background: rgba(255, 122, 24, 0.1);
  border-color: var(--flame);
  transform: translateY(-2px);
}

.btn-roomdot {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  border: 1px solid #22d3ee;
}

.btn-roomdot:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.4);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--earth-base);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--parchment);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav {
  display: none;
}

/* Hero Trail */
.hero-trail {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-4xl) var(--spacing-xl) 15rem var(--spacing-xl);
  overflow: hidden;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 122, 24, 0.12), transparent),
    linear-gradient(180deg, var(--earth-base) 0%, var(--earth-dark) 100%);
  margin-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 122, 24, 0.08), transparent 50%);
  pointer-events: none;
}

.topo-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    0deg,
    var(--sand) 0px,
    transparent 1px,
    transparent 40px,
    var(--sand) 41px
  );
  pointer-events: none;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.trail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(31, 20, 11, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.trail-title {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.trail-features-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.trail-feature-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(31, 20, 11, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.trail-feature-pill:hover {
  background: rgba(31, 20, 11, 0.7);
  border-color: var(--flame);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
main {
  flex: 1;
}

section {
  padding: 6rem var(--spacing-xl);
  position: relative;
}

.section-dark {
  background: var(--earth-dark);
}

.section-light {
  background: var(--earth-base);
}

.section-card {
  background: var(--earth-card);
}

.section-early-access {
  background: 
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 122, 24, 0.1), transparent),
    linear-gradient(180deg, var(--earth-base) 0%, var(--earth-dark) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 1rem;
  padding: 0.375rem 0.75rem;
  background: rgba(247, 164, 84, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(247, 164, 84, 0.2);
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: rgba(31, 20, 11, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(31, 20, 11, 0.7);
  border-color: var(--flame);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--parchment);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* App Sections Grid */
.app-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.app-section-card {
  padding: 2rem;
  background: var(--earth-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.app-section-card:hover {
  border-color: var(--flame);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.section-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-name {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--parchment);
  font-weight: 700;
}

.section-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.section-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.section-features li {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.section-features li::before {
  content: "→";
  color: var(--flame);
  font-weight: 700;
}

/* Story Sample */
.story-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(31, 20, 11, 0.7);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.story-meta {
  padding: 2rem;
  background: rgba(28, 20, 12, 0.9);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(199, 162, 122, 0.1);
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.meta-value {
  font-weight: 600;
  color: var(--flame);
}

.story-text {
  padding: 2.5rem;
  background: rgba(254, 245, 221, 0.03);
}

.story-paragraph {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-indent: 2em;
}

.story-paragraph:first-child {
  text-indent: 0;
}

.story-paragraph:first-letter {
  font-size: 3em;
  line-height: 0.8;
  float: left;
  margin: 0.1em 0.1em 0 0;
  color: var(--flame);
  font-weight: 700;
}

.story-note {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1rem 1.5rem;
  background: rgba(255, 122, 24, 0.1);
  border-left: 3px solid var(--flame);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Forms */
.form-card {
  padding: 2rem;
  background: rgba(28, 20, 12, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sand);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(44, 36, 25, 0.6);
  border: 1px solid var(--border);
  color: var(--parchment);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--flame);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.2);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Principles (reusing feature card styles but adding specific overrides) */
.principle-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(31, 20, 11, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.principle-card:hover {
  background: rgba(31, 20, 11, 0.6);
  border-color: var(--flame);
}

.principle-icon {
  font-size: 1.5rem;
  color: var(--flame);
  font-weight: 700;
  flex-shrink: 0;
}

.principle-content {
  flex: 1;
}

.principle-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--parchment);
  font-weight: 700;
}

.principle-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Early Access */
.early-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.early-access-features {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.access-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(31, 20, 11, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.access-icon {
  font-size: 1.5rem;
}

/* Room Dot Callout */
.roomdot-callout {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background: rgba(6, 182, 212, 0.05);
  border: 2px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-xl);
}

.badge-pill {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(199, 162, 122, 0.1);
  border: 1px solid var(--border);
  color: var(--sand);
}

.badge-primary {
  background: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  background: var(--earth-base);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

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

/* Story Pipeline Grid */
.story-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pipeline-card {
  padding: 2rem;
  background: rgba(31, 20, 11, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
  position: relative;
}

.pipeline-card:hover {
  background: rgba(31, 20, 11, 0.7);
  border-color: var(--flame);
  transform: translateY(-4px);
}

.pipeline-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--flame) 0%, var(--flame-bright) 100%);
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.125rem;
  color: var(--earth-dark);
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(255, 122, 24, 0.4);
}

.pipeline-title {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  color: var(--parchment);
  font-weight: 700;
}

.pipeline-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.pipeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pipeline-tag {
  padding: 0.5rem 0.75rem;
  background: rgba(199, 162, 122, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--sand);
  white-space: nowrap;
}

.pipeline-icon {
  font-size: 3rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .early-access-grid {
    grid-template-columns: 1fr;
  }
  
  .story-pipeline-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-text {
    font-size: 1rem;
    line-height: 1.1;
  }

  .nav-inner > .btn {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  header.mobile-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  header.mobile-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  header.mobile-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(44, 36, 25, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  header.mobile-open .mobile-nav {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav a {
    display: block;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
  }

  .mobile-nav a:hover {
    color: var(--flame);
    background: rgba(31, 20, 11, 0.3);
  }

  section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .hero-trail {
    padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-3xl) var(--spacing-md);
    min-height: auto;
  }

  .trail-features-row {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .btn.btn-trail-ghost {
    margin-right: 0 !important;
    margin-bottom: 0.75rem;
  }

  .hero-actions .btn:last-child,
  .btn.btn-trail-ghost:last-child {
    margin-bottom: 0;
  }

  .btn {
    width: 100%;
  }

  .feature-grid,
  .app-sections,
  .principles-grid,
  .story-pipeline-grid {
    grid-template-columns: 1fr;
  }

  .story-text {
    padding: 1.5rem;
  }

  .story-paragraph {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-trail {
    padding-top: calc(80px + 2rem);
  }

  .trail-title {
    font-size: 2.5rem;
  }
}
