/* ===== App Theme (extracted from Flutter source) ===== */
:root {
  --color-primary: #FFD600;
  --color-secondary: #2E7D32;
  --color-accent: #FF6F00;
  --color-bg: #1A1A1A;
  --color-bg-lighter: #222222;
  --color-surface: #2A2A2A;
  --color-surface-light: #333333;
  --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.1);
  --color-glass-bg: rgba(255,255,255,0.05);
  --color-glass-border: rgba(255,255,255,0.15);
  --color-error: #F44336;
  --gradient-primary: linear-gradient(135deg, #FFD600, #FF6F00);
  --gradient-hero: linear-gradient(160deg, #1A1A1A 0%, #2A2A1A 50%, #1A1A1A 100%);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;
  --font-family: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

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

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

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

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

/* ===== Hero Section ===== */
.hero {
  min-height: min(100vh, 700px);
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,214,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

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

.hero-device {
  flex-shrink: 0;
  width: 280px;
  position: relative;
}

.device-frame {
  position: relative;
  background: #000;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.1);
}

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

.device-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1A1A1A;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-align: center;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #1A1A1A;
  box-shadow: 0 4px 20px rgba(255,214,0,0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(255,214,0,0.4);
}

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

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ===== Sections ===== */
.section {
  padding: 80px 24px;
}

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

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

.section-header h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

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

/* ===== Feature Cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,214,0,0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--color-glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 14px;
  text-align: left;
  line-height: 1.6;
}

/* ===== Screenshots Carousel ===== */
.screenshots-section {
  padding: 80px 24px;
  overflow: hidden;
}

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

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.carousel-device {
  max-width: 240px;
  width: 100%;
  position: relative;
  background: #000;
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.carousel-device img {
  width: 100%;
  border-radius: 20px;
  display: block;
  filter: blur(5px);
  transition: filter 0.4s ease;
}

.carousel-device img.loaded {
  filter: blur(0);
}

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

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-glass-border);
  background: var(--color-glass-bg);
  color: var(--color-text-primary);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-primary);
}

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

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

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 24px;
  text-align: center;
}

.cta-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.cta-box h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  font-size: 16px;
}

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

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

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

/* ===== Content Pages (Privacy, Terms, Contact) ===== */
.page-header {
  padding: 120px 24px 40px;
  text-align: center;
  background: var(--gradient-hero);
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
}

.page-header p {
  color: var(--color-text-secondary);
  margin-top: 12px;
  font-size: 16px;
}

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

.content-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.content-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}

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

.content-section ul,
.content-section ol {
  color: var(--color-text-secondary);
  font-size: 15px;
  padding-left: 24px;
  margin-bottom: 14px;
  text-align: left;
}

.content-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.content-section a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255,214,0,0.3);
  transition: text-decoration-color 0.2s;
}

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

/* ===== Contact Form ===== */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-primary);
  font-size: 15px;
  font-family: var(--font-family);
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
}

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

.form-file {
  padding: 10px 0;
}

.form-file input[type="file"] {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.form-file input[type="file"]::file-selector-button {
  padding: 8px 16px;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius);
  color: var(--color-text-primary);
  font-size: 13px;
  cursor: pointer;
  margin-right: 12px;
  font-family: var(--font-family);
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  color: #1A1A1A;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-family);
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .checkmark {
  font-size: 48px;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--color-text-secondary);
  font-size: 15px;
}

/* ===== Privacy Accept Button ===== */
.privacy-accept-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 20px 24px 28px;
  background: linear-gradient(to top, var(--color-bg) 60%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.accept-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background: var(--gradient-primary);
  color: #1A1A1A;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-family);
  box-shadow: 0 4px 20px rgba(255,214,0,0.3);
  text-align: center;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  object-fit: contain;
}

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

/* ===== Mobile Navigation ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  z-index: 99;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--color-primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

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

  .hero-inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

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

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

  .hero-device {
    width: 220px;
  }

  .section {
    padding: 56px 20px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-device {
    max-width: 200px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .cta-box {
    padding: 40px 24px;
  }
}

@media (max-width: 580px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-device {
    width: 180px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 15px;
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .carousel-device {
    max-width: 170px;
  }
}

/* ===== Fade-in animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
