/* ============================================================
   CROW'S NEST DIGITAL MEDIA — styles.css
   Blue & gray theme with light/dark mode
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Primary accent (blue from logo) */
  --accent:       #2196f3;
  --accent-dark:  #1976d2;
  --accent-light: #64b5f6;

  /* Third accent (deep charcoal) */
  --navy:         #1a1a1e;
  --navy-light:   #27272c;

  /* Secondary CTA */
  --amber:        #f59e0b;
  --amber-dark:   #d97706;

  /* Neutral scale (dark mode default) */
  --black:      #0b0b0c;
  --dark:       #131314;
  --dark-2:     #1b1b1d;
  --dark-3:     #242427;
  --dark-4:     #323236;
  --mid:        #5a5a62;
  --light-mid:  #84848e;
  --light:      #b3b3bc;
  --white:      #f0f0f2;

  /* Status */
  --live-red:   #ef4444;
  --success:    #22c55e;
  --error:      #ef4444;

  /* Fonts */
  --font-heading: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-sub:     'Oswald', 'Roboto', sans-serif;
  --font-body:    'Roboto', Arial, sans-serif;

  /* Spacing & shapes */
  --nav-h: 70px;
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.25s ease;

  /* Shadows */
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-accent: 0 4px 20px rgba(33,150,243,0.25);
  --shadow-glow: 0 0 30px rgba(33,150,243,0.12);

  /* Semi-transparent overlays (dark mode) */
  --header-bg: rgba(11,11,12,0.92);
  --header-bg-solid: rgba(11,11,12,0.97);
  --header-border: rgba(50,50,54,0.5);
  --header-shadow: 0 2px 20px rgba(0,0,0,0.4);
  --nav-mobile-bg: rgba(11,11,12,0.98);
  --hero-overlay: linear-gradient(to bottom, rgba(11,11,12,0.15) 0%, rgba(11,11,12,0.3) 50%, rgba(11,11,12,0.85) 100%);
  --nav-hover-bg: rgba(240,240,242,0.08);
  --btn-outline-border: rgba(240,240,242,0.4);
  --card-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ---- LIGHT MODE ---- */
[data-theme="light"] {
  --black:      #f7f9fb;
  --dark:       #eef1f6;
  --dark-2:     #ffffff;
  --dark-3:     #f0f3f8;
  --dark-4:     #d4dce6;
  --mid:        #94a3b5;
  --light-mid:  #64748b;
  --light:      #475569;
  --white:      #111827;

  --navy:       #e8eef4;
  --navy-light: #dce4ed;

  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-accent: 0 4px 20px rgba(33,150,243,0.15);
  --shadow-glow: 0 0 30px rgba(33,150,243,0.08);

  --header-bg: rgba(255,255,255,0.92);
  --header-bg-solid: rgba(255,255,255,0.97);
  --header-border: rgba(0,0,0,0.08);
  --header-shadow: 0 2px 20px rgba(0,0,0,0.06);
  --nav-mobile-bg: rgba(255,255,255,0.98);
  --hero-overlay: linear-gradient(to bottom, rgba(247,249,251,0.2) 0%, rgba(247,249,251,0.5) 50%, rgba(247,249,251,0.97) 100%);
  --nav-hover-bg: rgba(17,24,39,0.06);
  --btn-outline-border: rgba(17,24,39,0.25);
  --card-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--light);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.center { text-align: center; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-sub);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}
.btn-amber {
  background: var(--amber);
  color: var(--black);
  border-color: var(--amber);
}
.btn-amber:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--black);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--btn-outline-border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(33,150,243,0.08);
}
.btn-full { width: 100%; text-align: center; display: block; }

/* ---- SECTION HEADER ---- */
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-label {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: 0.02em;
}
.section-sub {
  margin-top: 16px;
  color: var(--light);
  font-size: 1.05rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  transition: background var(--transition), box-shadow var(--transition);
}
#header.scrolled {
  background: var(--header-bg-solid);
  box-shadow: var(--header-shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 36px;
  width: auto;
}

/* Nav social icons */
.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-mid);
  transition: color var(--transition);
}
.nav-social a:hover {
  color: var(--accent);
}
.nav-social svg {
  width: 22px;
  height: 22px;
}

/* Nav links */
#main-nav > ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  font-family: var(--font-sub);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: var(--nav-hover-bg);
}
.cta-nav {
  background: var(--accent);
  color: var(--white) !important;
  padding: 9px 20px;
  margin-left: 8px;
}
.cta-nav:hover {
  background: var(--accent-dark) !important;
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile social icons in nav menu - hidden on desktop */
.mobile-social-li {
  display: none;
}
.mobile-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 24px 6px;
}
.mobile-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-mid);
  transition: color var(--transition);
}
.mobile-social a:hover {
  color: var(--accent);
}
.mobile-social svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
/* Split hero: text left, live camera right */
.hero.hero-split {
  min-height: auto;
  padding: calc(var(--nav-h) + 60px) 0 60px;
  align-items: stretch;
}
.hero-split-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  overflow: hidden;
}
.hero-player {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.hero-text {
  text-align: left;
  min-width: 0;
}
.hero-text .hero-title {
  align-items: flex-start;
}
.hero-text .hero-sub {
  margin-left: 0;
  margin-right: 0;
}
.hero-text .hero-btns {
  justify-content: flex-start;
}
.hero-player .main-player {
  max-width: none;
}
.hero-player .thumb-card {
  width: 110px;
}
.hero-player .thumb-card img {
  height: 62px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Static gradient hero fallback when no video */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(33,150,243,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(33,150,243,0.08) 0%, transparent 50%),
    linear-gradient(160deg, var(--dark) 0%, var(--black) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--btn-outline-border);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-title .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--light);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--dark-2);
  border-bottom: 1px solid var(--dark-4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 28px 40px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 48px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.04em;
}
.stat-num small { font-size: 1.4rem; }
.stat-lbl {
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--dark-4);
  flex-shrink: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  background: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--dark-3);
  border: 1px solid rgba(33,150,243,0.15);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
}
.service-card:hover {
  border-color: rgba(33,150,243,0.4);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

/* AI-powered card enhancements */
.service-card.ai-card {
  background: linear-gradient(160deg, var(--dark-3) 0%, rgba(33,150,243,0.08) 100%);
  border-color: rgba(33,150,243,0.15);
}
.service-card.ai-card:hover {
  border-color: rgba(33,150,243,0.5);
  box-shadow: var(--card-shadow), 0 0 20px rgba(33,150,243,0.1);
}
.service-card.ai-card .service-icon {
  color: var(--accent-light);
}

/* AI badge pill */
.ai-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-sub);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(33,150,243,0.12);
  border: 1px solid rgba(33,150,243,0.25);
  padding: 3px 10px;
  border-radius: 20px;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--light-mid);
}
.service-card h3 {
  font-family: var(--font-sub);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--light);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ============================================================
   CLIENTS
   ============================================================ */
.clients-section {
  background: var(--dark-2);
}

.clients-marquee {
  overflow: hidden;
  position: relative;
}

.clients-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 40s linear infinite;
  padding: 8px 0 16px;
}
.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 12px 16px;
  text-decoration: none;
  width: 200px;
  height: 130px;
  flex-shrink: 0;
}
.client-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.client-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.client-subs span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent);
  background: rgba(33,150,243,0.08);
  border: 1px solid rgba(33,150,243,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* ============================================================
   CAMERA SHOWCASE (Home page preview)
   ============================================================ */
.cameras-section {
  position: relative;
  background: var(--black);
  overflow: hidden;
}
.cameras-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(33,150,243,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cam-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cam-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.cam-card:hover {
  border-color: rgba(33,150,243,0.4);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.cam-feed {
  position: relative;
}
.cam-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--dark-3);
}
.cam-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
/* Placeholder for cameras without embeds */
.cam-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-2) 100%);
  color: var(--mid);
  font-size: 3rem;
}

.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--live-red);
  border-radius: 50%;
  animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.cam-info {
  padding: 16px 20px;
}
.cam-info h3 {
  font-family: var(--font-sub);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.cam-location {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 4px;
}
.cam-desc {
  font-size: 0.88rem;
  color: var(--light);
  margin-top: 6px;
}

/* ============================================================
   PRICING TEASER (Home page)
   ============================================================ */
.pricing-teaser-section {
  background: var(--dark-2);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--dark-3);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--dark-3) 0%, rgba(33,150,243,0.08) 100%);
}

.featured-label {
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px;
}

.pricing-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--dark-4);
  text-align: center;
}
.pricing-header h3 {
  font-family: var(--font-sub);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.price-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}
.price-period {
  font-size: 0.9rem;
  color: var(--light-mid);
}

.pricing-perks {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.pricing-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--light);
}
.pricing-perks li span {
  font-size: 0.8rem;
  flex-shrink: 0;
  color: var(--accent);
}
.pricing-perks li.no { color: var(--mid); }
.pricing-perks li.no span { color: var(--mid); }

.pricing-card .btn {
  margin: 0 auto 28px;
  display: block;
  width: fit-content;
}

/* ============================================================
   ABOUT / FOUNDER
   ============================================================ */
.about-section { background: var(--dark); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.founder-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(33,150,243,0.2);
  border: 2px solid rgba(33,150,243,0.3);
  max-width: 400px;
  width: 100%;
}
.founder-photo {
  width: 100%;
  height: auto;
  display: block;
}
/* Placeholder when no photo */
.founder-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  color: var(--mid);
  font-size: 4rem;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.about-text p {
  color: var(--light);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-text p strong { color: var(--white); }

.about-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--light);
  font-size: 0.95rem;
}
.feature-icon {
  color: var(--accent);
  font-size: 0.5rem;
  flex-shrink: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--black); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: stretch;
}
.contact-grid .contact-form-wrap { order: 2; }
.contact-grid .contact-info {
  order: 1;
  display: flex;
  flex-direction: column;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  font-size: 1.4rem;
  width: 40px;
  flex-shrink: 0;
  padding-top: 2px;
}
.contact-item strong { color: var(--white); display: block; margin-bottom: 4px; }
.contact-item a { color: var(--accent); }

.contact-social {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--dark-4);
  color: var(--white);
  transition: all var(--transition);
}
.contact-social a:hover {
  background: var(--accent);
}
.contact-social svg { width: 24px; height: 24px; }

.contact-email-signup {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(33,150,243,0.06);
  border: 1px solid rgba(33,150,243,0.2);
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--light);
}
.contact-email-signup strong {
  color: var(--white);
}
.email-signup-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.email-signup-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Contact form */
.contact-form-wrap {
  background: var(--dark-2);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.contact-form {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.contact-form .btn-full {
  margin-top: auto;
}
.contact-form h3 {
  font-family: var(--font-sub);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-3);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--mid); }
.form-group textarea { resize: vertical; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--dark-3); }

.form-success {
  display: none;
  text-align: center;
  color: var(--success);
  font-size: 0.95rem;
  margin-top: 12px;
  padding: 12px;
  background: rgba(34,197,94,0.1);
  border-radius: var(--radius);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  padding: 0;
  border-top: 1px solid var(--dark-4);
}
.footer-logo-img {
  height: 36px;
  width: auto;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--light-mid);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(33,150,243,0.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--accent-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.nav-theme-li { display: flex; align-items: center; margin-left: 4px; }
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--dark-4);
  border-radius: var(--radius);
  color: var(--light-mid);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
/* Dark mode (default): show sun icon */
.theme-toggle .icon-moon { display: none; }
/* Light mode: show moon icon */
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---- Light mode specific overrides ---- */
[data-theme="light"] .hero-gradient {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(33,150,243,0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(33,150,243,0.07) 0%, transparent 50%),
    linear-gradient(160deg, #d6dde8 0%, #e2e8f0 100%);
}
[data-theme="light"] .services-section,
[data-theme="light"] .contact-section,
[data-theme="light"] .footer {
  background: #3a3a40;
  color: #f0f0f2;
}
[data-theme="light"] .services-section .section-header h2,
[data-theme="light"] .services-section .section-sub,
[data-theme="light"] .contact-section .section-header h2,
[data-theme="light"] .contact-section .section-sub,
[data-theme="light"] .contact-section .contact-item,
[data-theme="light"] .contact-section .contact-item strong {
  color: #f0f0f2;
}
[data-theme="light"] .footer,
[data-theme="light"] .footer-nav a,
[data-theme="light"] .footer-bottom p {
  color: #b3b3bc;
  border-color: #4a4a50;
}
[data-theme="light"] .footer-nav a:hover {
  color: var(--accent);
}
[data-theme="light"] .hamburger span {
  background: var(--white);
}
[data-theme="light"] .live-badge {
  background: rgba(0, 0, 0, 0.65);
}
[data-theme="light"] .service-card {
  background: #fff;
  border: 1px solid rgba(33,150,243,0.25);
  box-shadow: 0 2px 12px rgba(33,150,243,0.06);
}
[data-theme="light"] .service-card:hover {
  border-color: rgba(33,150,243,0.5);
  box-shadow: 0 4px 20px rgba(33,150,243,0.12);
}
[data-theme="light"] .founder-photo-wrap {
  box-shadow: 0 0 40px rgba(33,150,243,0.1);
  border-color: rgba(33,150,243,0.2);
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: var(--dark-3);
  border-color: var(--dark-4);
  color: var(--white);
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: var(--mid);
}
[data-theme="light"] .btn-primary {
  color: #fff;
}
[data-theme="light"] .btn-primary:hover {
  color: #fff;
}
[data-theme="light"] .cta-nav {
  color: #fff !important;
}
[data-theme="light"] .cta-nav:hover {
  color: #fff !important;
}
[data-theme="light"] .featured-label {
  color: #fff;
}
[data-theme="light"] .back-to-top {
  color: #fff;
}
[data-theme="light"] .logo-invert-light {
  filter: invert(1);
}

/* ============================================================
   ANIMATIONS / SCROLL REVEAL
   ============================================================ */

/* ============================================================
   SUB-PAGE STYLES
   ============================================================ */

/* Page header banner */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--dark);
  color: var(--white);
}
.page-header .section-label {
  color: var(--accent);
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.page-header-sub {
  font-family: var(--font-sub);
  font-size: 1.1rem;
  color: var(--light-mid);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* ============================================================
   LIVE CAMS PAGE
   ============================================================ */

/* Expanded header for live cams page */
.livecams-header {
  padding: 140px 0 56px;
}
.livecams-intro {
  max-width: 680px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--light);
  text-align: center;
}
.livecams-intro strong {
  color: var(--white);
}
.livecams-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 36px auto 32px;
  max-width: 520px;
}
.livecams-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
  text-align: center;
}
.livecams-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.04em;
}
.livecams-stat-lbl {
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}
.livecams-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--dark-4);
  flex-shrink: 0;
}
.livecams-cta-text {
  font-size: 1rem;
  color: var(--light-mid);
  margin-bottom: 24px;
  text-align: center;
}
.livecams-header .btn {
  margin: 0 auto;
}

/* Main rotating player */
.livecams-player-section {
  background: var(--black);
  padding: 40px 0 0;
}

.main-player {
  max-width: 960px;
  margin: 0 auto;
}

.main-player-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--dark-4);
  box-shadow: var(--card-shadow);
}
.main-player-stage > .cam-embed-wrap {
  padding-bottom: 56.25%;
}
.main-player-stage .live-badge {
  top: 16px;
  left: 16px;
  font-size: 0.78rem;
  padding: 5px 14px;
}

.main-player-stage .cam-embed-wrap {
  transition: opacity 0.3s ease;
}
.main-player-stage.switching .cam-embed-wrap {
  opacity: 0;
}

.main-player-progress {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 3;
}
.main-player-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s linear;
}

.main-player-info {
  padding: 20px 4px 16px;
}
.main-player-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1;
}
.main-player-info .cam-location {
  font-size: 0.95rem;
  margin-top: 6px;
}

/* Thumbnail strip */
.main-player-thumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.thumb-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  padding: 4px 0 8px;
}
.thumb-track::-webkit-scrollbar { display: none; }

.thumb-card {
  flex-shrink: 0;
  width: 140px;
  background: var(--dark-2);
  border: 2px solid var(--dark-4);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  text-align: center;
}
.thumb-card:hover {
  border-color: rgba(33,150,243,0.4);
}
.thumb-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(33,150,243,0.25);
}
.thumb-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}
.thumb-label {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--light);
  padding: 6px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thumb-card.active .thumb-label {
  color: var(--accent);
}

.thumb-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--dark-4);
  background: var(--dark-2);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}
.thumb-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.thumb-arrow svg {
  width: 16px;
  height: 16px;
}

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

/* Camera filter tabs */
.cam-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--dark-4);
}
.cam-tab {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  padding: 12px 32px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: var(--light-mid);
  cursor: pointer;
  transition: all var(--transition);
}
.cam-tab:hover {
  color: var(--white);
}
.cam-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.cam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-full-section {
  background: var(--dark-2);
}

/* Feature comparison table */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-4);
  margin-top: 48px;
  margin-bottom: 32px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.compare-table thead {
  background: var(--dark-3);
}
.compare-table th {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
}
.compare-table th:not(:first-child) { text-align: center; }
.compare-table td {
  padding: 14px 20px;
  font-size: 0.93rem;
  color: var(--light);
  border-top: 1px solid var(--dark-4);
}
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:hover td { background: var(--nav-hover-bg); }
.check { color: var(--accent); font-weight: 700; }
.dash  { color: var(--mid); }

/* FAQ accordion */
.faq-section {
  background: var(--dark);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--dark-2);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(33,150,243,0.3); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: left;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question::after {
  content: '\2212';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}
.faq-answer p {
  color: var(--light);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(33,150,243,0.1) 0%, var(--dark-2) 100%);
  border-top: 1px solid rgba(33,150,243,0.2);
  border-bottom: 1px solid rgba(33,150,243,0.2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .cam-grid,
  .cam-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text {
    text-align: center;
  }
  .hero-text .hero-title { align-items: center; }
  .hero-text .hero-btns { justify-content: center; }
  .hero-text .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-player { max-width: 100%; width: 100%; margin: 0 auto; }
  .hero-player .main-player { max-width: 100%; width: 100%; }
  .hero-player .main-player-thumbs { min-width: 0; overflow: hidden; }
  .hero-player > div:last-child { text-align: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-container { justify-content: center; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .hamburger { display: flex; position: absolute; right: 20px; }
  .nav-theme-li { margin: 6px 24px 0; display: flex; justify-content: center; }
  .nav-social { display: none; }
  .mobile-social-li { display: block; }
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 999;
    background: var(--nav-mobile-bg);
    border-bottom: 1px solid var(--dark-4);
    padding: 10px 0;
  }
  #main-nav.open { display: block; }
  #main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .nav-link {
    display: block;
    padding: 9px 24px;
    border-radius: 0;
    font-size: 0.88rem;
    font-weight: 700;
  }
  .cta-nav { margin: 6px 24px 0; border-radius: var(--radius); }

  .stats-bar {
    padding: 24px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    justify-items: center;
  }
  .stat { padding: 0; }
  .stat-divider { display: none; }

  .section { padding: 60px 0; }

  .cam-grid,
  .cam-preview-grid { grid-template-columns: 1fr 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-brand-row { flex-direction: column; gap: 12px; }
  .footer-nav { justify-content: center; }

  .hero.hero-split { padding: calc(var(--nav-h) + 30px) 0 30px; }
  .hero-split-grid { gap: 32px; padding: 0 16px; }
  .hero-title { font-size: clamp(3rem, 10vw, 5rem); margin-bottom: 20px; }
  .hero-badge { margin-bottom: 20px; font-size: 0.72rem; padding: 5px 14px; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 32px; }
  .hero-player .thumb-card { width: 80px; }
  .hero-player .thumb-card img { height: 44px; }
  .hero-player .thumb-label { font-size: 0.6rem; }
  .hero-player .main-player-info h2 { font-size: 1.3rem; }
  .hero-player .thumb-arrow { width: 28px; height: 28px; }

  .page-header { padding: 100px 0 40px; }
  .page-header h1 { font-size: 2.5rem; }
  .livecams-header { padding: 100px 0 40px; }
  .livecams-stat { padding: 0 20px; }
  .livecams-stat-num { font-size: 1.6rem; }
  .livecams-player-section { padding: 24px 0 0; }
  .main-player-info h2 { font-size: 1.6rem; }
  .thumb-card { width: 120px; }
  .thumb-card img { height: 68px; }

  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .cam-grid,
  .cam-preview-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero.hero-split { padding: calc(var(--nav-h) + 20px) 0 24px; }
  .hero-split-grid { gap: 24px; padding: 0 12px; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); margin-bottom: 16px; }
  .hero-badge { margin-bottom: 16px; }
  .hero-sub { font-size: 0.9rem; margin-bottom: 24px; line-height: 1.6; }
  .hero-player .thumb-card { width: 70px; }
  .hero-player .thumb-card img { height: 38px; }
  .hero-player .thumb-label { font-size: 0.5rem; }
  .hero-player .thumb-arrow { width: 26px; height: 26px; }
  .hero-player .main-player-thumbs { gap: 6px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; }
  .client-card { width: 120px; height: 80px; padding: 8px 12px; }
  .thumb-card { width: 110px; }
  .thumb-card img { height: 60px; }
  .thumb-arrow { width: 32px; height: 32px; }
  .main-player-info h2 { font-size: 1.4rem; }
}
