/* ═══════════════════════════════════════════════════════════════
   SELLIXY LANDING PAGE — STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties (from app_colors.dart) ──────────── */
:root {
  /* Brand */
  --primary:            #0A0A0A;
  --primary-fg:         #FFFFFF;
  --accent:             #FF6B00;
  --accent-fg:          #FFFFFF;

  /* Backgrounds */
  --bg:                 #FFFFFF;
  --bg-alt:             #F9FAFB;
  --surface:            #FFFFFF;
  --surface-variant:    #F5F5F5;

  /* Text */
  --text-primary:       #0A0A0A;
  --text-secondary:     #666666;
  --text-tertiary:      #999999;

  /* Semantic */
  --success:            #00C853;
  --whatsapp:           #25D366;

  /* Borders */
  --border:             #E5E7EB;

  /* Layout */
  --max-width:          1100px;
  --radius:             8px;
  --radius-lg:          12px;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}


/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}


/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 16px;
  padding: 14px 32px;
}

.btn-primary.btn-sm {
  font-size: 14px;
  padding: 10px 20px;
}

.btn-primary.btn-lg {
  font-size: 18px;
  padding: 16px 40px;
}


/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}


/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  padding: 80px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.15s ease;
}

.hero-link:hover {
  opacity: 0.8;
}

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


/* ── Phone Frame (shared) ──────────────────────────────────── */
.phone-frame {
  position: relative;
  width: 280px;
  background: var(--primary);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.08);
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: var(--primary);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  margin-top: -1px;
}

.phone-screen {
  background: var(--bg);
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
}

.phone-frame--sm {
  width: 260px;
}

.phone-frame--sm .phone-screen {
  min-height: 380px;
}


/* ── Placeholder Chat UI ───────────────────────────────────── */
.chat-placeholder {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: inherit;
}

.chat-header-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--whatsapp);
  color: #fff;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.chat-avatar--alt {
  background: rgba(255, 255, 255, 0.45);
}

.chat-name-block {
  display: flex;
  flex-direction: column;
}

.chat-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.chat-status {
  font-size: 11px;
  opacity: 0.85;
  line-height: 1.2;
}

.chat-messages {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #E5DDD5;
}

.chat-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.chat-bubble.incoming {
  align-self: flex-start;
  background: #fff;
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.chat-bubble.outgoing {
  align-self: flex-end;
  background: #DCF8C6;
  color: var(--text-primary);
  border-bottom-right-radius: 2px;
}

.chat-input-bar {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.chat-input-text {
  font-size: 12px;
  color: var(--text-tertiary);
}


/* ═══════════════════════════════════════════════════════════════
   SCREENSHOTS SECTION
   ═══════════════════════════════════════════════════════════════ */
.screenshots {
  padding: 80px 0;
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  color: var(--text-primary);
}

.screenshots-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════
   VALUE PROPS / FEATURES
   ═══════════════════════════════════════════════════════════════ */
.features {
  padding: 80px 0;
}

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

.feature-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-variant);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
   BOTTOM CTA
   ═══════════════════════════════════════════════════════════════ */
.cta {
  padding: 80px 0;
  background: var(--bg-alt);
}

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

.cta-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  color: var(--text-primary);
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

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

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

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color 0.15s ease;
}

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


/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES (Privacy Policy, Terms of Use)
   ═══════════════════════════════════════════════════════════════ */
.legal-page {
  padding: 64px 0 80px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.legal-content li strong {
  color: var(--text-primary);
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  opacity: 0.8;
}

.legal-contact {
  list-style: none;
  padding-left: 0;
}

.legal-contact li {
  margin-bottom: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .hero {
    padding: 48px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

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

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

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    width: 240px;
  }

  .phone-frame--sm {
    width: 220px;
  }

  .phone-screen {
    min-height: 360px;
  }

  .phone-frame--sm .phone-screen {
    min-height: 340px;
  }

  .section-title {
    font-size: 26px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 32px 20px;
  }

  .cta-title {
    font-size: 26px;
  }

  .screenshots-grid {
    gap: 24px;
  }

  .legal-title {
    font-size: 30px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 480px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 32px 0 48px;
  }

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

  .hero-subtitle {
    font-size: 16px;
  }

  .btn-primary {
    padding: 12px 24px;
    font-size: 15px;
    width: 100%;
  }

  .btn-primary.btn-sm {
    width: auto;
  }

  .btn-primary.btn-lg {
    font-size: 16px;
    padding: 14px 32px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
  }

  .phone-frame {
    width: 220px;
  }

  .phone-frame--sm {
    width: 200px;
  }

  .screenshots {
    padding: 56px 0;
  }

  .features {
    padding: 56px 0;
  }

  .cta {
    padding: 56px 0;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .cta-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

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

  .legal-page {
    padding: 40px 0 56px;
  }

  .legal-title {
    font-size: 26px;
  }

  .legal-updated {
    margin-bottom: 28px;
  }

  .legal-content h2 {
    font-size: 18px;
    margin-top: 32px;
  }
}

