/* ========================================
   Oz Projects Landing Page
   Professional & Modern
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #f1f5f9;
  --primary-light: #cbd5e1;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --warm: #f59e0b;
  --warm-hover: #fbbf24;
  --warm-glow: rgba(245, 158, 11, 0.25);
  --text: #e2e8f0;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-dark: #0b1120;
  --bg-card: #162033;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
  --radius: 8px;
  --max-width: 1140px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(15, 23, 42, 0.9);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

/* Nav text — always light */
.nav .nav-brand { color: #fff; }
.nav .nav-brand span { color: var(--warm); }
.nav.scrolled .nav-brand { color: #fff; }
.nav.scrolled .nav-brand span { color: var(--warm); }

.nav .nav-links a { color: rgba(255, 255, 255, 0.75); }
.nav .nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a { color: rgba(255, 255, 255, 0.75); }
.nav.scrolled .nav-links a:hover { color: #fff; }

.nav .nav-toggle span { background: #fff; }
.nav.scrolled .nav-toggle span { background: #fff; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.nav-brand span {
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-cta {
  background: var(--warm);
  color: #0f172a !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--warm-hover);
  color: #0f172a !important;
  box-shadow: 0 4px 15px var(--warm-glow);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: all 0.3s;
}

.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(6px, -6px);
}

/* --- Landing Hero (dark, full-viewport intro) --- */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(245, 158, 11, 0.06) 0%, transparent 70%),
    var(--bg-dark);
  z-index: 0;
}

/* Subtle dot grid overlay */
.landing-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 1;
}

/* Soft glow orb */
.landing-hero-bg::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.07) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.landing-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.landing-hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.landing-hero-accent {
  background: linear-gradient(135deg, var(--warm) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.landing-hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Warm CTA button */
.btn-warm {
  background: linear-gradient(135deg, var(--warm) 0%, var(--warm-hover) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--warm-glow);
}

.btn-warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--warm-glow);
  color: #fff;
}

/* Light outline button for dark backgrounds */
.btn-outline-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* --- Hero Section (portfolio showcases) --- */
.hero {
  padding: 8rem 0 4rem;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Phone frame - iPhone style */
.phone-frame {
  width: 300px;
  margin: 0 auto;
  background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 50%, #2c2c2e 100%);
  border-radius: 48px;
  padding: 14px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
}

/* Side buttons */
.phone-frame::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 100px;
  width: 3px;
  height: 30px;
  background: linear-gradient(180deg, #3a3a3c, #2c2c2e, #3a3a3c);
  border-radius: 2px 0 0 2px;
  box-shadow:
    0 35px 0 0 #3a3a3c,
    0 35px 0 0 linear-gradient(180deg, #3a3a3c, #2c2c2e, #3a3a3c);
}

/* Power button */
.phone-frame::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 120px;
  width: 3px;
  height: 45px;
  background: linear-gradient(180deg, #3a3a3c, #2c2c2e, #3a3a3c);
  border-radius: 0 2px 2px 0;
}

.phone-notch {
  width: 90px;
  height: 22px;
  background: #1c1c1e;
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Camera dot in notch */
.phone-notch::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #1a1a2e 30%, #0d0d1a 60%, #2a2a3e 100%);
  border-radius: 50%;
  top: 5px;
  right: 22px;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  background: #000;
  border-radius: 36px;
  overflow: hidden;
  margin-top: -11px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-screen video {
  width: 100%;
  display: block;
  border-radius: 0 0 35px 35px;
}

.phone-home {
  width: 110px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  margin: 12px auto 6px;
}

/* Hero fanned phone screenshots */
.hero-fan {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}

.hero-fan-img {
  flex: 0 0 38%;
  max-width: 160px;
  transition: transform 0.4s ease;
}

.hero-fan-img img {
  width: 100%;
  display: block;
  border-radius: 6px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.hero-fan-img:nth-child(1) {
  margin-right: -8%;
  transform: rotate(-5deg) translateY(6px);
  z-index: 1;
}

.hero-fan-img:nth-child(2) {
  z-index: 3;
  transform: translateY(-6px) scale(1.05);
}

.hero-fan-img:nth-child(3) {
  margin-left: -8%;
  transform: rotate(5deg) translateY(6px);
  z-index: 1;
}

/* --- Demo Overlay --- */
.demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.demo-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.demo-device {
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-overlay.active .demo-device {
  transform: scale(1);
}

.demo-overlay .phone-frame {
  width: 340px;
}

.demo-overlay .phone-screen {
  position: relative;
  background: #1a1a2e;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
}

.demo-hidden {
  display: none !important;
}

/* Toast notification */
.demo-toast {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #22c55e;
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.demo-toast.show {
  transform: translateY(0);
}

/* Rating screen - matches CPLL Tools modal */
.demo-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.demo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid #2a3a5c;
  background: #1a1a2e;
  flex-shrink: 0;
}

.demo-modal-header h2 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.demo-modal-close {
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.3s;
}

.demo-modal-close:hover {
  color: #ff8c42;
}

.demo-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.demo-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #2a3a5c;
  flex-shrink: 0;
}

/* Slider groups - matching CPLL Tools */
.demo-slider-group {
  margin-bottom: 1.25rem;
}

.demo-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.demo-badge {
  background: #ff8c42;
  color: #0a0a0a;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
  min-width: 2rem;
  text-align: center;
}

.demo-slider-wrapper {
  position: relative;
  padding-bottom: 1.5rem;
}

.demo-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: #1a1a2e;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  margin: 0;
}

.demo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  background: #ff8c42;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.demo-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.demo-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: #ff8c42;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Tick marks */
.demo-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  margin-top: 4px;
}

.demo-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
}

.demo-tick-mark {
  width: 2px;
  height: 8px;
  background: #2a3a5c;
  margin-bottom: 2px;
}

.demo-tick span {
  font-size: 0.7rem;
  color: #a0a0a0;
  font-weight: 500;
}

/* Scale labels */
.demo-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.65rem;
}

.demo-scale-left {
  color: #22c55e;
  font-weight: 500;
}

.demo-scale-right {
  color: #ef4444;
  font-weight: 500;
}

/* Buttons matching CPLL Tools */
.demo-btn-cancel {
  background: transparent;
  border: 1px solid #2a3a5c;
  color: #a0a0a0;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.demo-btn-cancel:hover {
  border-color: #ff8c42;
  color: #ff8c42;
}

.demo-btn-submit {
  background: linear-gradient(135deg, #e67300, #ff8c42);
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.demo-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

/* Completed view */
.demo-completed-content {
  text-align: center;
  padding: 2rem 1.25rem;
  overflow-y: auto;
}

.demo-checkmark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
}

.demo-checkmark svg circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: demo-circle 0.6s ease forwards;
}

.demo-checkmark svg path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: demo-check 0.3s 0.4s ease forwards;
}

@keyframes demo-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes demo-check {
  to { stroke-dashoffset: 0; }
}

.demo-easy-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.demo-privacy-text {
  font-size: 0.8rem;
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.demo-summary-card {
  background: #16213e;
  border: 1px solid #2a3a5c;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.demo-summary-player {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
}

.demo-summary-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.demo-summary-ratings .demo-badge {
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
}

.demo-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.demo-close-link {
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.3s;
}

.demo-close-link:hover {
  color: #ff8c42;
}

/* --- Portfolio intro (reduced bottom padding — showcases follow directly) --- */
#portfolio.section {
  padding-bottom: 0;
}

#portfolio + .hero {
  padding-top: 2rem;
  min-height: auto;
}

/* --- Drone Logger Showcase --- */
.drone-showcase {
  min-height: auto;
  padding: 4rem 0 3rem;
}

.drone-phone-wrap {
  display: flex;
  justify-content: center;
  max-width: 380px;
  margin: 0 auto;
}

.drone-carousel-phone {
  position: relative;
  width: 100%;
  perspective: 800px;
}

.drone-slide-img {
  width: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(0.92) translateX(0);
  transition: transform 0.8s ease, opacity 0.8s ease, z-index 0s;
  z-index: 0;
  pointer-events: none;
}

.drone-slide-img:first-child {
  position: relative;
}

.drone-slide-img.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  z-index: 5;
}

.drone-slide-img.fly-out {
  opacity: 0;
  transform: scale(0.85) translateX(-60%) rotateY(15deg);
  z-index: 10;
  transition: transform 0.9s ease-in, opacity 0.9s ease-in;
}

.drone-slide-img.stack-behind {
  opacity: 0.3;
  transform: scale(0.92) translateX(0);
  z-index: 1;
  transition: none;
}

.drone-carousel-text {
  position: relative;
  height: 120px;
  margin-bottom: 1rem;
}

.drone-slide-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.drone-slide-text.active {
  opacity: 1;
  pointer-events: auto;
}

.drone-slide-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--warm);
  margin-bottom: 0.5rem;
}

.drone-slide-text p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

.drone-dots {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.drone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--warm);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.drone-dot.active {
  background: var(--warm);
  transform: scale(1.2);
}

/* --- Cody Ponder Showcase --- */
.codyponder-showcase {
  min-height: auto;
  padding: 4rem 0 3rem;
  background: var(--bg);
}

.badge-active {
  background: rgba(212, 162, 84, 0.12) !important;
  color: #b8862d !important;
}

.codyponder-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.codyponder-preview-card {
  width: 320px;
  height: 420px;
  flex-shrink: 0;
  border-radius: 20px;
  background: #0c0b0f;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(212,162,84,0.08);
  overflow: hidden;
  border: 1px solid rgba(212,162,84,0.15);
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  contain: layout style paint;
}
.codyponder-preview-card:hover {
  box-shadow: 0 24px 70px rgba(0,0,0,0.4), 0 0 60px rgba(212,162,84,0.15);
}

/* Scrolling site screenshot */
.cp-scroll-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.cp-scroll-img {
  width: 100%;
  display: block;
  animation: cpScroll 18s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes cpScroll {
  0%   { transform: translateY(0); opacity: 1; }
  5%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(-75%); opacity: 1; }
  70%  { transform: translateY(-80%); opacity: 0; }
  71%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* CTA overlay */
.cp-cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(12,11,15,0.7) 0%, rgba(12,11,15,0.95) 70%);
  opacity: 0;
  animation: cpCtaFade 18s ease-in-out infinite;
  padding: 2rem;
}
.cp-cta-overlay h3 {
  color: #f0ece4;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.cp-cta-overlay span {
  color: #d4a254;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.cp-cta-text {
  font-size: 0.75rem;
  color: #8a8592;
  line-height: 1.5;
  max-width: 220px;
  font-style: italic;
}
@keyframes cpCtaFade {
  0% { opacity: 0; }
  72% { opacity: 0; }
  80% { opacity: 1; }
  95% { opacity: 1; }
  100% { opacity: 0; }
}

/* Photo rain inside card (legacy, kept for compat) */
.cp-photo-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  z-index: 0;
  pointer-events: none;
}

.cp-falling-photo {
  position: absolute;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  opacity: 0;
  border: 2px solid rgba(255,255,255,0.1);
  object-fit: cover;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

@keyframes cpPhotoFall {
  0% {
    opacity: 0;
    transform: translateY(-60px) rotate(var(--rot-start)) scale(0.7) translateZ(0);
  }
  10% { opacity: 0.9; }
  65% { opacity: 0.9; }
  100% {
    opacity: 0;
    transform: translateY(var(--fall-dist)) rotate(var(--rot-end)) scale(0.8) translateZ(0);
  }
}

.codyponder-preview-inner {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(12,11,15,0.5) 0%, rgba(12,11,15,0.85) 70%);
}

/* Hover audio indicator */
.cp-audio-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.6rem;
  color: rgba(212,162,84,0.4);
  z-index: 3;
  transition: opacity 0.3s;
  display: none;
}
.codyponder-preview-card:hover .cp-audio-hint {
  display: block;
}

.codyponder-preview-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #d4a254;
  box-shadow: 0 0 30px rgba(212,162,84,0.2);
  margin-bottom: 1.2rem;
}

.codyponder-preview-inner h3 {
  color: #f0ece4;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.codyponder-preview-inner span {
  color: #d4a254;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.codyponder-preview-badge {
  display: inline-block;
  padding: 0.45rem 1.4rem;
  border: 1px solid rgba(212,162,84,0.3);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #8a8592;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(212,162,84,0.06);
}

@media (max-width: 768px) {
  .codyponder-preview-card { width: 260px; height: 360px; }
  .codyponder-preview-inner { padding: 2rem 1.5rem; }
  .codyponder-preview-logo { width: 90px; height: 90px; }
  .cp-falling-photo { width: 70px; }
}

/* --- Free Apps Section --- */
.free-apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.free-app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.free-app-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.15);
}

.free-app-screenshots {
  margin-bottom: 1.5rem;
}

.free-app-screenshots .hero-fan {
  padding: 0.5rem 0;
}

.free-app-screenshots .hero-fan-img {
  max-width: 120px;
}

.free-app-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.free-app-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.free-app-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.free-app-actions .btn {
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--warm) 0%, var(--warm-hover) 100%);
  color: #0f172a;
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--warm-hover) 0%, var(--warm) 100%);
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--warm-glow);
}

.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  border-color: var(--warm);
  color: var(--warm);
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section.section-first {
  padding-top: 8rem;
  scroll-margin-top: 80px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.08);
  transform: translateY(-4px);
  border-color: var(--warm);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--warm);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* --- Process Section --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--warm) 0%, var(--warm-hover) 100%);
  color: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Connector line between steps */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: rgba(245, 158, 11, 0.2);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.contact-info > p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.contact-detail-text span,
.contact-detail-text a {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--warm);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--accent);
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: 0.75rem;
}

.footer-brand span {
  color: var(--warm);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  color: var(--text-inverse);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Responsive --- */

/* Nav collapses to hamburger before buttons can split */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    overflow: visible;
    white-space: normal;
  }

  .nav.scrolled .nav-links {
    background: var(--bg-dark);
    border-bottom-color: var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    flex-shrink: initial;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links .nav-cta {
    display: inline-block;
    width: fit-content;
  }
}

@media (max-width: 768px) {
  .landing-hero {
    min-height: 85vh;
    padding: 5rem 0 3rem;
  }

  .landing-hero-title {
    font-size: 2.5rem;
  }

  .landing-hero-sub {
    font-size: 1.05rem;
  }

  .hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-grid .hero-buttons {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .phone-frame {
    width: 240px;
    border-radius: 40px;
    padding: 10px;
  }

  .demo-overlay .phone-frame {
    width: 300px;
  }

  .drone-carousel-text {
    min-height: 100px;
  }

  .drone-dots {
    justify-content: center;
  }

  .free-apps-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .landing-hero-title {
    font-size: 2rem;
  }

  .landing-hero-buttons {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .demo-overlay .phone-frame {
    width: 280px;
    border-radius: 36px;
    padding: 10px;
  }

  .demo-slider-label {
    font-size: 0.75rem;
  }

  .demo-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
  }
}
