/* ── Vertical Garden Planner – Promo Website ─────────────────────── */
/* Extracted from app theme (Flutter theme.dart) */

:root {
  --color-primary: #1565C0;
  --color-primary-dark: #0D47A1;
  --color-primary-hover: #1976D2;
  --color-secondary: #FFD600;
  --color-secondary-dark: #F5A700;
  --color-bg-primary: #0D1B2A;
  --color-bg-secondary: #0A1520;
  --color-surface: #0A1420;
  --color-surface-light: #132840;
  --color-card-start: #0B0A1D;
  --color-card-end: #22849E;
  --color-success: #43A047;
  --color-error: #E53935;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255,255,255,0.6);
  --color-text-muted: rgba(255,255,255,0.4);
  --color-border: rgba(255,255,255,0.08);
  --color-border-light: rgba(255,255,255,0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --font-heading: 'Bowlby One SC', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ──────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,20,32,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-secondary);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-success), #81C784);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 1px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ── Hero Section ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 40%, #0D2040 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(21,101,192,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(67,160,71,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(67,160,71,0.15);
  border: 1px solid rgba(67,160,71,0.3);
  color: #81C784;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

.hero-title span {
  color: var(--color-secondary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  color: var(--color-bg-primary);
  box-shadow: 0 4px 20px rgba(255,214,0,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255,214,0,0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-light);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* ── Device Mockup ───────────────────────────────────────────────── */
.hero-device {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.device-frame {
  position: relative;
  width: 280px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
}

.device-frame::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 22px;
  background: #0a0a18;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.device-frame img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.device-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(21,101,192,0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Section Base ────────────────────────────────────────────────── */
.section {
  padding: 80px 24px;
  position: relative;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary-hover);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Features ────────────────────────────────────────────────────── */
.features-bg {
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse .feature-visual { order: -1; }

.feature-visual {
  background: linear-gradient(135deg, var(--color-card-start), rgba(34,132,158,0.3));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.feature-icon-lg {
  font-size: 4rem;
  opacity: 0.9;
}

.feature-text { text-align: left; }

.feature-text h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-text p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Screenshots Carousel ────────────────────────────────────────── */
.screenshots-bg {
  background: var(--color-bg-secondary);
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 24px;
}

.carousel-slide {
  flex: 0 0 250px;
  cursor: pointer;
}

.carousel-device {
  background: #1a1a2e;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.3s;
}

.carousel-device:hover {
  transform: scale(1.03);
}

.carousel-device img {
  width: 100%;
  border-radius: 20px;
  display: block;
  height: 380px;
  object-fit: cover;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  background: rgba(255,255,255,0.06);
  color: var(--color-text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.12);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-secondary);
  width: 24px;
  border-radius: 4px;
}

/* ── Highlights Grid ─────────────────────────────────────────────── */
.highlights-bg {
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
}

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

.highlight-card {
  background: linear-gradient(135deg, rgba(11,10,29,0.7), rgba(34,132,158,0.12));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  transition: transform 0.25s, border-color 0.25s;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.highlight-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 8px;
}

.highlight-card p {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── CTA Banner ──────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,214,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  position: relative;
}

/* ── Content Pages (Privacy, Terms, Contact) ─────────────────────── */
.page-hero {
  padding: 120px 24px 40px;
  background: linear-gradient(180deg, var(--color-bg-secondary), var(--color-bg-primary));
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 36px 0 16px;
  color: var(--color-secondary);
}

.content-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--color-text-primary);
}

.content-section p {
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  text-align: left;
  line-height: 1.7;
}

.content-section ul {
  color: var(--color-text-secondary);
  margin: 8px 0 16px 20px;
  text-align: left;
  line-height: 1.7;
}

.content-section a {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.content-section a:hover {
  color: var(--color-secondary);
}

/* ── Contact Form ────────────────────────────────────────────────── */
.contact-card {
  background: linear-gradient(135deg, rgba(11,10,29,0.6), rgba(34,132,158,0.1));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.08);
}

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

.form-group input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-right: 10px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  background: rgba(67,160,71,0.1);
  border: 1px solid rgba(67,160,71,0.3);
  border-radius: var(--radius);
  color: #81C784;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

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

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

/* ── Lightbox ────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 200;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ── Privacy Accept Button (required by privacy plugin) ──────────── */
.privacy-accept-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  padding: 16px 24px 24px;
  background: linear-gradient(to top, var(--color-bg-primary) 60%, transparent);
  display: flex;
  justify-content: center;
}

.privacy-accept-btn.hidden { display: none; }

.accept-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 48px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  color: var(--color-bg-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,214,0,0.3);
  transition: all 0.25s ease;
  text-align: center;
}

.accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255,214,0,0.4);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }

  .hero-buttons { justify-content: center; }

  .hero-device { order: -1; }

  .device-frame { width: 220px; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-row.reverse .feature-visual { order: 0; }

  .feature-text { text-align: left; }

  .highlights-grid { grid-template-columns: 1fr 1fr; }

  .hero-title { font-size: 2.2rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(10,20,32,0.98);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-hamburger { display: block; }

  .hero { min-height: auto; padding: 100px 20px 50px; }

  .hero-title { font-size: 1.8rem; }

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

  .device-frame { width: 190px; }

  .section { padding: 60px 20px; }

  .section-title { font-size: 1.6rem; }

  .highlights-grid { grid-template-columns: 1fr; }

  .carousel-slide { flex: 0 0 200px; }

  .carousel-device img { height: 300px; }

  .contact-card { padding: 24px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner { padding: 32px 20px; }

  .page-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.5rem; }
  .device-frame { width: 160px; }
  .carousel-slide { flex: 0 0 170px; }
  .carousel-device img { height: 260px; }
}

/* ── Utility ─────────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

img.lazy {
  filter: blur(8px);
  transition: filter 0.4s ease;
}

img.lazy.loaded {
  filter: blur(0);
}
