/**
 * Tycho Data - Enterprise Theme (White & Blue)
 * Modern, sleek design for marketing pages
 * 
 * Color Palette:
 * - Background: #FDFDFD (off-white)
 * - Soft background: #F8FAFC (light blue-gray)
 * - Primary navy: #071A3D
 * - Secondary text: #334155
 * - Muted text: #64748B
 * - Primary blue: #0F5BFF
 * - Deep blue: #1D4ED8
 * - Soft blue: #DBEAFE
 * - Border: #DDE6F2
 * - Amber accent: #F59E0B
 * - Compass indigo: #4F46E5
 * - Beacon green: #3F8F29
 * - Dark UI: #07111F
 */

:root {
  /* Enterprise tokens */
  --bg-primary: #FDFDFD;
  --bg-soft: #F8FAFC;
  --color-navy: #071A3D;
  --color-navy-dark: #07111F;
  --color-text-secondary: #334155;
  --color-text-muted: #64748B;
  --color-blue-primary: #0F5BFF;
  --color-blue-deep: #1D4ED8;
  --color-blue-soft: #DBEAFE;
  --color-border: #DDE6F2;
  --color-amber: #F59E0B;
  --color-indigo: #4F46E5;
  --color-green: #3F8F29;
  --tycho-primary: #0F5BFF;
  --background-secondary: #FFFFFF;
  --border-color: #DDE6F2;
  --text-color-secondary: #64748B;

  /* Legacy token remap (used heavily in tycho.css + landing.css) */
  --primary-color: #FDFDFD;
  --primary-color-2: #F8FAFC;
  --accent-color-1: #DDE6F2;
  --accent-color-2: #0F5BFF;
  --highlight-color: #1D4ED8;
  --text-color: #071A3D;
  --text-color-for-highlight: #07111F;
  --text-color-muted: #64748B;
  --yellow-color: #F59E0B;
  --orange-color: #FF8C00;
  --tan-color: #334155;
  --success-color: #3F8F29;
  --success-color-hover: #347724;
  --info-color: #0F5BFF;
  --info-color-hover: #1D4ED8;
  --danger-color: #DC143C;
  --danger-color-hover: #B22222;
}

/* ===========================
   Typography & Fonts
   =========================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--color-navy);
  margin: 0px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

a {
  color: var(--color-navy);
  text-decoration: none;
}

.learn-more-link {
  color: var(--color-blue-primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.learn-more-link:hover {
  color: var(--color-blue-deep);
  border-bottom-color: var(--color-blue-deep);
}

.learn-more-link::after {
  content: "↗";
  font-size: 0.9em;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.learn-more-link:hover::after {
  opacity: 1;
}

.top-announcement {
  background: #1D4ED8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 20px;
}

.top-announcement-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-announcement-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.97rem;
}

.top-announcement-link {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.top-announcement-link:hover {
  text-decoration: underline;
}

.icon,
.icon-only {
  background-size: contain;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  display: inline-block;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-navy);
}

.icon-only {
  margin: 0 !important;
}

/* ===========================
   Navigation Bar
   =========================== */
.navbar {
  display: flex;
  align-items: center;
  padding: 12px 30px;
  background-color: #fff;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  width: auto;
  margin-right: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img.nav-wordmark {
  width: 180px;
  height: auto;
  display: block;
}

.nav-logo img.nav-favicon {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}

/* Force Tycho logo marks to black in enterprise theme */
.nav-wordmark,
.sitemap-icon img,
img[src*="logo_tychodata"] {
  filter: brightness(0) saturate(100%);
}

/* Menu styling */
.nav-menu {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  flex-wrap: wrap;
  gap: 5px;
}

.nav-menu li {
  position: relative;
  margin-left: 0;
}

/* Dropdown menu styling */
.nav-item {
  position: relative;
}

.nav-item > a {
  color: var(--color-text-secondary);
  padding: 12px 16px;
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 4px;
}

.nav-item > a:hover {
  color: var(--color-blue-primary);
  background-color: var(--bg-soft);
}

/* Dropdown menu */
.dropdown-menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  top: 100%;
  left: 0;
  min-width: 240px;
  position: absolute;
  background-color: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 6px;
  margin-top: 0;
  display: none;
  max-width: calc(100vw - 24px);
}

.nav-item.dropdown-align-right .dropdown-menu {
  left: auto;
  right: 0;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.nav-item:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-menu li:first-child a {
  border-radius: 6px 6px 0 0;
}

.dropdown-menu li:last-child a {
  border-radius: 0 0 6px 6px;
}

.dropdown-menu li a:hover {
  background-color: var(--bg-soft);
  color: var(--color-blue-primary);
}

.product-verb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-verb-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 6px;
}

.product-verb-title {
  display: block;
  color: var(--color-navy);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 2px;
}

.product-verb {
  color: var(--color-blue-primary);
  font-weight: 700;
  margin-right: 8px;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.product-verb-description {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.product-verb-link:hover .product-verb-title {
  color: var(--color-blue-deep);
}

.product-verb-link:hover .product-verb-description {
  color: var(--color-text-secondary);
}

/* Mega Menu Styling */
.mega-menu {
  min-width: 700px;
  padding: 0;
  border-radius: 6px;
  max-width: calc(100vw - 24px);
}

.mega-menu-content {
  display: flex;
  padding: 20px;
  gap: 40px;
}

.mega-menu-column {
  flex: 1;
  min-width: 180px;
}

.mega-menu-column h4 {
  color: var(--color-navy);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  padding: 0;
  border-bottom: 2px solid var(--color-blue-primary);
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-column li {
  margin: 0;
  padding: 0;
}

.mega-menu-column .dropdown-menu-link {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mega-menu-column .dropdown-menu-link:hover {
  color: var(--color-blue-primary);
}

.get-started {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 0;
  gap: 12px;
}

.get-started-login {
  min-width: max-content;
}

.get-started-login a {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.get-started-login a:hover {
  color: var(--color-blue-primary);
}

/* ===========================
   Buttons
   =========================== */
.btn, button, a.btn, .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

/* Override legacy CTA buttons from landing.css */
.cta-button {
  background-color: var(--color-blue-primary) !important;
  color: #fff !important;
  border: 2px solid var(--color-blue-primary) !important;
}

.cta-button:hover {
  background-color: var(--color-blue-deep) !important;
  border-color: var(--color-blue-deep) !important;
  box-shadow: 0 8px 20px rgba(15, 91, 255, 0.25) !important;
  transform: translateY(-2px);
}

/* Ensure all button variants use enterprise blue */
button, input[type="button"], input[type="submit"], .btn {
  background-color: var(--color-blue-primary);
  color: #fff;
  border: 2px solid var(--color-blue-primary);
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover, .btn:hover {
  background-color: var(--color-blue-deep);
  border-color: var(--color-blue-deep);
  box-shadow: 0 8px 20px rgba(15, 91, 255, 0.25);
  transform: translateY(-2px);
}

.btn-primary, button.btn-primary {
  background-color: var(--color-blue-primary);
  color: #fff;
  border: 2px solid var(--color-blue-primary);
}

.btn-primary:hover, button.btn-primary:hover {
  background-color: var(--color-blue-deep);
  border-color: var(--color-blue-deep);
  box-shadow: 0 8px 20px rgba(15, 91, 255, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-soft);
  color: var(--color-blue-primary);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-border);
  color: var(--color-blue-deep);
  border-color: var(--color-blue-deep);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-blue-primary);
  border: 2px solid var(--color-blue-primary);
}

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

/* ===========================
   Hero Section
   =========================== */
.hero {
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  text-align: center;
  position: relative;
  display: flex;
  min-height: 600px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  background: linear-gradient(135deg, #fff 0%, var(--bg-soft) 100%);
}

.hero-overlay {
  background-color: transparent;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 3rem 2rem;
  min-height: 100%;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--color-navy);
  font-size: 3rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.1;
}

#hero-subtitle {
  margin: 1.5rem 0 2.5rem;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.hero-demo {
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 2rem;
}

.hero-demo img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Sections & Cards
   =========================== */
section {
  padding: 4rem 2rem;
  box-sizing: border-box;
  margin: 0 auto;
  width:100%;
}

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

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

.section-title p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Benefits Grid */
.benefits-grid, .features-grid, .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-card, .feature-card, .card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.benefit-card:hover, .feature-card:hover, .card:hover {
  border-color: var(--color-blue-primary);
  box-shadow: 0 12px 30px rgba(15, 91, 255, 0.1);
  transform: translateY(-4px);
}

.benefit-card h3, .feature-card h3, .card h3 {
  color: var(--color-navy);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.benefit-card p, .feature-card p, .card p {
  color: var(--color-text-secondary);
  margin: 0;
}

/* Legacy landing section cards */
.benefit-item {
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.benefit-item:hover {
  background: #fff;
  border-color: var(--color-blue-primary);
  box-shadow: 0 12px 30px rgba(15, 91, 255, 0.1);
}

.benefit-item-title {
  color: var(--color-navy);
}

.benefit-item-description {
  color: var(--color-text-secondary);
}

.card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-soft);
  border-radius: 8px;
  color: var(--color-blue-primary);
  font-size: 1.5rem;
}

/* ===========================
   Form Styling
   =========================== */
form, .form-group {
  display: flex;
  flex-direction: column;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.2s ease;
  background-color: #fff;
  color: var(--color-navy);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-blue-primary);
  box-shadow: 0 0 0 3px rgba(15, 91, 255, 0.1);
}

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

/* ===========================
   Footer
   =========================== */
footer {
  background-color: var(--color-navy-dark);
  color: #fff;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
}

footer .footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  margin-bottom: 0.75rem;
}

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

footer a:hover {
  color: var(--color-blue-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-blue-primary);
}

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

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

.bg-soft {
  background-color: var(--bg-soft);
}

.bg-primary {
  background-color: #fff;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

/* ===========================
   Animations & Transitions
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ===========================
   Override Legacy Gradient Styles
   =========================== */
.magic-button {
  background-image: none !important;
  background-color: var(--color-blue-primary) !important;
  color: #fff !important;
  border: 2px solid var(--color-blue-primary) !important;
  border-radius: 6px !important;
  animation: none !important;
  height: auto;
  width: auto;
  max-width: none;
}

.magic-button:hover {
  background-image: none !important;
  background-color: var(--color-blue-deep) !important;
  border-color: var(--color-blue-deep) !important;
  box-shadow: 0 8px 20px rgba(15, 91, 255, 0.25) !important;
  transform: translateY(-2px);
  animation: none !important;
}

.magic-text {
  background: none !important;
  -webkit-text-fill-color: var(--color-blue-primary) !important;
  color: var(--color-blue-primary) !important;
  animation: none !important;
}

.magic-text:hover {
  background: none !important;
  -webkit-text-fill-color: var(--color-blue-deep) !important;
  color: var(--color-blue-deep) !important;
  animation: none !important;
}

/* ===========================
   Inline Legacy Contrast Fixes
   =========================== */
[style*="color: white"] {
  color: var(--color-navy) !important;
}

[style*="color: rgba(255, 255, 255"] {
  color: var(--color-text-secondary) !important;
}

[style*="background: rgba(255, 255, 255, 0.02)"],
[style*="background: rgba(255, 255, 255, 0.03)"] {
  background: var(--bg-soft) !important;
}

[style*="background: rgba(255, 255, 255, 0.04)"],
[style*="background: rgba(255, 255, 255, 0.05)"] {
  background: #ffffff !important;
  border: 1px solid var(--color-border) !important;
}

/* Hero chips next to See Demo (inline styles used on multiple marketing pages) */
[style*="display:inline-flex"][style*="border-radius:24px"][style*="background:rgba(255,255,255,0.06)"],
[style*="display:inline-flex"][style*="border-radius:24px"][style*="background: rgba(255, 255, 255, 0.06)"] {
  background: var(--bg-soft) !important;
  border: 1px solid var(--color-border) !important;
}

[style*="display:inline-flex"][style*="border-radius:24px"] a[style*="color:rgba(255,255,255,0.85)"],
[style*="display:inline-flex"][style*="border-radius:24px"] a[style*="color: rgba(255, 255, 255, 0.85)"] {
  color: var(--color-navy) !important;
}

[style*="border: 1px solid rgba(255, 255, 255"],
[style*="border: 2px solid rgba(255, 255, 255"] {
  border-color: var(--color-border) !important;
}

/* Ensure sections are fully visible without JS-driven fade-in timing issues */
section,
section.fade-in,
section.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ===========================
   Sitemap + Footer Alignment
   =========================== */
.sitemap {
  background-color: #fff;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
}

.sitemap-text {
  color: var(--color-text-secondary);
}

.sitemap-column h3 {
  color: var(--color-navy);
}

.sitemap-column ul li a {
  color: var(--color-text-secondary);
}

.sitemap-column ul li a:hover {
  color: var(--color-blue-primary);
}

/* Base template footer has inline styles; force enterprise palette */
footer[style] {
  background-color: var(--bg-soft) !important;
  border-top: 1px solid var(--color-border) !important;
}

footer[style] p,
footer[style] p[style] {
  color: var(--color-text-secondary) !important;
}

footer[style] a,
footer[style] a[style] {
  color: var(--color-blue-primary) !important;
}

footer[style] a:hover,
footer[style] a[style]:hover {
  color: var(--color-blue-deep) !important;
}

/* ===========================
   Integrations Page Fixes
   =========================== */
.page-description {
  background: #fff !important;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.integration-card {
  background: #fff !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.integration-card h4 {
  color: var(--color-navy) !important;
}

.integration-description {
  color: var(--color-text-secondary) !important;
}

.integration-card:hover,
.integration-card.expanded {
  border-color: var(--color-blue-primary) !important;
  box-shadow: 0 12px 24px rgba(15, 91, 255, 0.12) !important;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 16px;
  }

  .nav-logo {
    margin-right: 20px;
  }

  .nav-logo a {
    gap: 8px;
  }

  .nav-logo img.nav-wordmark {
    width: 145px;
  }

  .nav-logo img.nav-favicon {
    width: 22px;
    height: 22px;
  }

  .nav-menu {
    font-size: 0.85rem;
  }

  .nav-item > a {
    padding: 10px 12px;
  }

  .get-started {
    width: 100%;
    margin-top: 10px;
    margin-left: 0;
    justify-content: flex-start;
  }

  .hero {
    min-height: 400px;
    flex-direction: column;
  }

  .hero-overlay {
    padding: 2rem 1rem;
  }

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

  #hero-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .hero-demo {
    flex: none;
    width: 100%;
  }

  section {
    padding: 2.5rem 1rem;
  }

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

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .mega-menu-content {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .nav-logo {
    width: auto;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .nav-logo img.nav-wordmark {
    width: 125px;
  }

  .nav-logo img.nav-favicon {
    width: 20px;
    height: 20px;
  }

  .nav-menu {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .nav-item > a {
    width: 100%;
    display: block;
  }

  .get-started {
    width: 100%;
    flex-direction: column;
    margin-top: 10px;
  }

  .hero {
    min-height: 300px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  #hero-subtitle {
    font-size: 0.9rem;
    margin: 1rem 0 1.5rem;
  }

  section {
    padding: 1.5rem 1rem;
  }

  .benefit-card, .feature-card, .card {
    padding: 1.5rem;
  }
}
