/* ==========================================================================
   StyrX Marketing Website - Stylesheet
   Based on app theme from lib/theme.tsx
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens from App)
   -------------------------------------------------------------------------- */
:root {
  /* Primary Colors */
  --accent: #00aaff;
  --accent-dim: #7dd4ff;
  --accent-strong: #004f76;
  --accent-rgb: 0, 170, 255;

  /* Light Theme (Default) */
  --bg: #ffffff;
  --bg-secondary: #f5f7fa;
  --text: #0b1220;
  --text-muted: #6e7680;
  --panel: #e6f0ff;
  --border: #c6c6c8;

  /* Semantic Colors */
  --success: #34c759;
  --warning: #ff9f0a;
  --error: #ff3b30;
  --heat: #ef4444;
  --cool: #3b82f6;

  /* Gradients */
  --gradient-hero: linear-gradient(
    135deg,
    #daecff 0%,
    #cfe5ff 50%,
    #e6f0ff 100%
  );
  --gradient-accent: linear-gradient(135deg, #00aaff 0%, #004f76 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-secondary: #141414;
  --text: #ffffff;
  --text-muted: #9aa7b2;
  --panel: #0b2a4a;
  --border: #3a3a3c;
  --gradient-hero: linear-gradient(
    135deg,
    #0b1f39 0%,
    #0d2a48 50%,
    #0b2a4a 100%
  );
  --gradient-card: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
}

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

/* Theme-aware logo switching */
.logo-dark {
  display: none;
}
.logo-light {
  display: block;
}
[data-theme="dark"] .logo-dark {
  display: block;
}
[data-theme="dark"] .logo-light {
  display: none;
}

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

a:hover {
  color: var(--accent-strong);
}

[data-theme="dark"] a:hover {
  color: var(--accent-dim);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-md);
}

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

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

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

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--hero {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.section--alt {
  background-color: var(--bg-secondary);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
  display: flex;
  gap: var(--space-md);
}

.flex--center {
  align-items: center;
  justify-content: center;
}

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

.flex--wrap {
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background-color var(--transition-base);
}

[data-theme="dark"] .header {
  background: rgba(10, 10, 10, 0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.header__logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__logo img {
  height: 32px;
  width: auto;
}

.header__logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__list {
  display: flex;
  gap: var(--space-lg);
}

.nav__link {
  color: var(--text);
  font-weight: 500;
  padding: var(--space-sm) 0;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--accent);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-md);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform var(--transition-base),
      opacity var(--transition-base);
  }

  .nav__list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--panel);
  color: var(--text);
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
}

.hero__content {
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 170, 255, 0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  color: var(--accent-strong);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

[data-theme="dark"] .hero__badge {
  color: var(--accent);
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

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

.hero__image img {
  max-height: 600px;
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 40px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  animation: float 6s ease-in-out infinite;
}

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

/* Hero Background Pattern */
.hero__bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(
      135deg,
      rgba(218, 236, 255, 0.90) 0%,
      rgba(207, 229, 255, 0.85) 50%,
      rgba(230, 240, 255, 0.80) 100%
    ),
    url('../images/hero-cabin.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

[data-theme="dark"] .hero__bg-pattern {
  background-image:
    linear-gradient(
      135deg,
      rgba(11, 31, 57, 0.80) 0%,
      rgba(13, 42, 72, 0.75) 50%,
      rgba(11, 42, 74, 0.70) 100%
    ),
    url('../images/hero-cabin.jpg');
}

@media (max-width: 968px) {
  .hero__bg-pattern {
    background-image:
      linear-gradient(
        135deg,
        rgba(218, 236, 255, 0.75) 0%,
        rgba(207, 229, 255, 0.70) 50%,
        rgba(230, 240, 255, 0.65) 100%
      ),
      url('../images/hero-cabin-mobile.jpg');
  }

  [data-theme="dark"] .hero__bg-pattern {
    background-image:
      linear-gradient(
        135deg,
        rgba(11, 31, 57, 0.80) 0%,
        rgba(13, 42, 72, 0.75) 50%,
        rgba(11, 42, 74, 0.70) 100%
      ),
      url('../images/hero-cabin-mobile.jpg');
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: var(--space-xl) 0;
  }

  .hero__content {
    order: 2;
  }

  .hero__image {
    order: 1;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow:
    var(--shadow-md),
    0 0 0 0 rgba(var(--accent-rgb), 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-lg),
    0 0 20px rgba(var(--accent-rgb), 0.4);
  color: #ffffff;
}

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

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.btn--outline:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.125rem;
}

.btn--small {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
}

.btn--icon {
  padding: var(--space-md);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* App Store Buttons */
.app-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-lg);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

[data-theme="dark"] .app-btn {
  background: #ffffff;
  color: #0a0a0a;
}

.app-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--bg);
}

[data-theme="dark"] .app-btn:hover {
  color: #0a0a0a;
}

.app-btn svg {
  width: 28px;
  height: 28px;
}

.app-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-btn__text small {
  font-size: 0.7rem;
  opacity: 0.8;
}

.app-btn__text span {
  font-size: 1rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

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

.card--feature {
  text-align: center;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  color: var(--accent);
}

.card__icon svg {
  width: 32px;
  height: 32px;
}

.card__title {
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Product Card */
.card--product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl);
}

.card--product img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: var(--space-xl);
}

.card__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.card__price-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* Retailer Card */
.card--retailer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card--retailer img {
  height: 60px;
  object-fit: contain;
  margin-bottom: var(--space-lg);
}

/* Retailer logo wrapper with white gradient in dark mode */
.retailer-logo-wrapper {
  background: transparent;
}

[data-theme="dark"] .retailer-logo-wrapper {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

/* Screenshot Card */
.card--screenshot {
  padding: var(--space-lg);
  background: var(--panel);
}

.card--screenshot img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   Feature Sections
   -------------------------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-row__content {
  max-width: 500px;
}

.feature-row__image {
  display: flex;
  justify-content: center;
}

.feature-row__image img {
  max-height: 500px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    text-align: center;
    direction: ltr;
  }

  .feature-row__content {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   Comparison Table
   -------------------------------------------------------------------------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  background: var(--bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead {
  background: var(--gradient-accent);
  color: #ffffff;
}

.comparison-table th {
  font-weight: 600;
  font-size: 1.125rem;
}

.comparison-table tbody tr:hover {
  background: var(--panel);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: var(--success);
  font-weight: 700;
  font-size: 1.25rem;
}

.comparison-table .cross {
  color: var(--error);
  font-weight: 700;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.875rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   Specs Table
   -------------------------------------------------------------------------- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table th {
  text-align: left;
  padding: var(--space-md);
  width: 40%;
  color: var(--text-muted);
  font-weight: 500;
}

.specs-table td {
  padding: var(--space-md);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Use Cases
   -------------------------------------------------------------------------- */
.use-case {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.use-case:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.use-case__image {
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  aspect-ratio: 3/2;
}

.use-case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.use-case:hover img {
  transform: scale(1.05);
}

.use-case__content {
  padding: var(--space-lg);
  text-align: center;
}

.use-case__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.use-case__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: background-color var(--transition-fast);
}

.accordion__trigger:hover {
  background: var(--panel);
}

.accordion__icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.accordion__item.active .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion__inner {
  padding: 0 var(--space-xl) var(--space-xl);
  color: var(--text-muted);
}

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

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.form {
  max-width: 600px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form__checkbox input {
  margin-top: 4px;
}

.form__error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
}

.form__success {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  color: var(--success);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--text);
  color: var(--bg);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer a {
  color: var(--bg);
  opacity: 0.8;
}

.footer a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.footer__logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__logo .logo-light,
.footer__logo .logo-dark {
  height: 32px;
  width: auto;
}

.footer__logo .logo-dark {
  display: none;
}

[data-theme="dark"] .footer__logo .logo-light {
  display: none;
}

[data-theme="dark"] .footer__logo .logo-dark {
  display: block;
}

.footer__brand p {
  opacity: 0.8;
  max-width: 300px;
}

/* App logo styling */
.app-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--panel);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
}

.app-logo-badge img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}

.app-logo-badge span {
  font-weight: 600;
  color: var(--text);
}

.footer__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--bg);
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast);
}

.footer__social a:hover {
  background: var(--accent);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   Cookie Consent Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: var(--bg);
  padding: var(--space-lg);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform var(--transition-base);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .cookie-banner {
  background: #ffffff;
  color: #0b1220;
}

[data-theme="dark"] .cookie-banner__text a {
  color: var(--accent);
}

[data-theme="dark"] .cookie-decline {
  background: transparent !important;
  border-color: #6e7680 !important;
  color: #6e7680 !important;
}

[data-theme="dark"] .cookie-decline:hover {
  background: rgba(110, 118, 128, 0.1) !important;
  border-color: #5a5f68 !important;
  color: #5a5f68 !important;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.875rem;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Stats / Numbers
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.stat__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat__label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-card {
  background: var(--gradient-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition:
    border-color var(--transition-base),
    transform var(--transition-base);
}

.pricing-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--accent);
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-card__price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card__list {
  text-align: left;
  margin: var(--space-xl) 0;
}

.pricing-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.pricing-card__list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Testimonials (placeholder for future)
   -------------------------------------------------------------------------- */
.testimonial {
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
}

.testimonial__quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.testimonial__author {
  font-weight: 600;
}

.testimonial__role {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Image Placeholders
   -------------------------------------------------------------------------- */
.placeholder {
  background: linear-gradient(135deg, var(--panel) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--space-md);
}

.placeholder--hero {
  min-height: 400px;
}

.placeholder--product {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
}

.placeholder--screenshot {
  width: 100%;
  aspect-ratio: 9/16;
  max-width: 280px;
  border-radius: var(--radius-lg);
}

.placeholder--use-case {
  aspect-ratio: 3/2;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-sm {
  margin-bottom: var(--space-sm);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.mb-lg {
  margin-bottom: var(--space-lg);
}
.mb-xl {
  margin-bottom: var(--space-xl);
}
.mb-2xl {
  margin-bottom: var(--space-2xl);
}
.mb-3xl {
  margin-bottom: var(--space-3xl);
}

.mt-0 {
  margin-top: 0;
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mt-xl {
  margin-top: var(--space-xl);
}
.mt-2xl {
  margin-top: var(--space-2xl);
}

.pt-0 {
  padding-top: 0;
}
.pb-0 {
  padding-bottom: 0;
}

.hidden {
  display: none;
}

.visible-mobile {
  display: none;
}
@media (max-width: 768px) {
  .visible-mobile {
    display: block;
  }
  .hidden-mobile {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Page Header (for inner pages)
   -------------------------------------------------------------------------- */
.page-header {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
  background: var(--gradient-hero);
  text-align: center;
}

.page-header__title {
  margin-bottom: var(--space-md);
}

.page-header__subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
}

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

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

/* --------------------------------------------------------------------------
   Animations (AOS integration)
   -------------------------------------------------------------------------- */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* Ensure smooth page load */
.no-js [data-aos] {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Enhanced Mobile Responsiveness
   -------------------------------------------------------------------------- */

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
}

/* Container adjustments for small screens */
@media (max-width: 480px) {
  :root {
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }
}

/* Typography word breaking for long Norwegian words */
@media (max-width: 768px) {
  h1, h2, h3, h4, p, li, td, th, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .lead {
    font-size: 1rem;
  }
}

/* Hero section mobile adjustments */
@media (max-width: 768px) {
  .section--hero {
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
  }

  .hero {
    padding: var(--space-md) 0;
  }

  .hero__image img {
    max-height: 400px;
    width: auto;
    max-width: 90%;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* App store buttons mobile */
@media (max-width: 480px) {
  .app-buttons {
    flex-direction: column;
    align-items: center;
  }

  .app-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Header mobile improvements */
@media (max-width: 480px) {
  .header__logo img {
    height: 24px;
  }

  .header__logo-icon {
    width: 28px;
    height: 28px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }
}

/* Grid adjustments for small screens */
@media (max-width: 480px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .grid {
    gap: var(--space-lg);
  }
}

/* Comparison table - horizontal scroll wrapper */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-xl) 0;
}

.table-wrapper .comparison-table {
  margin: 0;
  min-width: 600px;
}

@media (max-width: 768px) {
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    min-width: 120px;
  }

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    min-width: 100px;
    position: sticky;
    left: 0;
    background: var(--bg);
    z-index: 1;
  }

  .comparison-table thead th:first-child {
    background: var(--accent-strong);
  }
}

/* Cards mobile adjustments */
@media (max-width: 480px) {
  .card {
    padding: var(--space-lg);
  }

  .card--product {
    padding: var(--space-lg);
  }

  .card--product img {
    width: 150px;
    height: 150px;
  }

  .card__price {
    font-size: 1.5rem;
  }

  .card__icon {
    width: 48px;
    height: 48px;
  }

  .card__icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Buttons mobile */
@media (max-width: 480px) {
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
  }

  .btn--large {
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
  }

  .btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Stats section mobile */
@media (max-width: 480px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat__number {
    font-size: 2rem;
  }

  .stat__label {
    font-size: 0.8rem;
  }
}

/* Pricing cards mobile */
@media (max-width: 480px) {
  .pricing-card {
    padding: var(--space-lg);
  }

  .pricing-card__price {
    font-size: 2rem;
  }

  .pricing-card__list {
    margin: var(--space-lg) 0;
  }

  .pricing-card__list li {
    font-size: 0.9rem;
  }
}

/* Footer mobile improvements */
@media (max-width: 480px) {
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__logo-icon {
    width: 40px;
    height: 40px;
  }

  .footer__logo .logo-light,
  .footer__logo .logo-dark {
    height: 28px;
  }

  .footer__title {
    margin-bottom: var(--space-md);
  }

  .footer__grid {
    gap: var(--space-xl);
  }
}

/* FAQ accordion mobile */
@media (max-width: 480px) {
  .accordion__trigger {
    padding: var(--space-md);
    font-size: 0.9rem;
  }

  .accordion__inner {
    padding: 0 var(--space-md) var(--space-md);
    font-size: 0.9rem;
  }
}

/* Contact form mobile */
@media (max-width: 480px) {
  .form__input,
  .form__textarea {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
  }

  .form__label {
    font-size: 0.9rem;
  }
}

/* Page header mobile */
@media (max-width: 480px) {
  .page-header {
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-lg);
  }

  .page-header__subtitle {
    font-size: 0.9rem;
  }

  .breadcrumb {
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Use cases mobile */
@media (max-width: 480px) {
  .use-case__overlay {
    padding: var(--space-md);
  }

  .use-case__title {
    font-size: 1rem;
  }

  .use-case__text {
    font-size: 0.8rem;
  }
}

/* Feature row mobile improvements */
@media (max-width: 768px) {
  .feature-row__image img {
    max-height: 350px;
    max-width: 100%;
  }
}

/* Specs table mobile */
@media (max-width: 480px) {
  .specs-table th,
  .specs-table td {
    padding: var(--space-sm);
    font-size: 0.85rem;
  }

  .specs-table th {
    width: 45%;
  }
}

/* Cookie banner mobile */
@media (max-width: 480px) {
  .cookie-banner {
    padding: var(--space-md);
  }

  .cookie-banner__text {
    font-size: 0.8rem;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-banner__actions .btn {
    flex: 1;
    font-size: 0.8rem;
  }
}

/* App logo badge mobile */
@media (max-width: 480px) {
  .app-logo-badge {
    padding: var(--space-sm) var(--space-md);
    flex-direction: column;
    text-align: center;
  }

  .app-logo-badge img {
    width: 40px;
    height: 40px;
  }

  .app-logo-badge span {
    font-size: 0.9rem;
  }
}
