/* ===================================
   InstaTaste Landing Page Styles
   Premium Dark Editorial Design
   =================================== */

:root {
  --bg-base: #121316;
  --bg-surface: #181A1F;
  --bg-elevated: #22252B;
  --bg-glass: rgba(32, 35, 42, 0.55);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.50);
  --accent-orange: #E8850C;
  --accent-gold: #D4A017;
  --accent-green: #4CAF72;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --gradient-primary: linear-gradient(135deg, #E8850C, #D4A017);
  --shadow-card: 0 6px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-glow: 0 0 60px rgba(232, 133, 12, 0.12);

  /* Legal page variables */
  --legal-bg: #0b0b0d;
  --legal-surface: #111114;
  --legal-border: rgba(255, 255, 255, 0.08);
  --legal-heading: #f5f5f7;
  --legal-body: #a1a1aa;
  --legal-muted: #71717a;
  --legal-accent: #f59e0b;
  --legal-accent-hover: #fbbf24;
  --legal-max-width: 820px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ---- Gradient Text ---- */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(18, 19, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; }
.logo-icon { font-size: 1.5rem; }
.logo-text { letter-spacing: -0.5px; font-weight: 400; }
.logo-text strong { font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--gradient-primary) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 133, 12, 0.35);
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  margin: 5px 0; border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===================================
   HERO
   =================================== */
.hero {
  padding: 140px 0 80px;
  background: radial-gradient(ellipse at 30% 20%, rgba(232, 133, 12, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(212, 160, 23, 0.04) 0%, transparent 50%),
              var(--bg-base);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(232, 133, 12, 0.12);
  border: 1px solid rgba(232, 133, 12, 0.25);
  color: var(--accent-orange);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.store-badge { transition: transform 0.2s; display: inline-block; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 50px; width: auto; }

.hero-stats {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.9rem; color: var(--text-muted);
}
.hero-stats strong { color: var(--text-primary); }
.divider { color: var(--border-hover); }

/* Phone Mockup */
.hero-phone { display: flex; justify-content: center; }
.phone-frame {
  width: 290px;
  background: linear-gradient(145deg, #2a2d35, #1a1c22);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5),
              0 0 0 1px rgba(255,255,255,0.06),
              inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
}
.phone-screen {
  background: var(--bg-surface);
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9 / 19.2;
  display: flex;
  flex-direction: column;
}
.phone-mock-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px 4px;
  font-size: 0.72rem; font-weight: 700;
  color: var(--text-secondary);
}
.mock-notch {
  width: 90px; height: 24px;
  background: #000; border-radius: 0 0 16px 16px;
}
.mock-icons { font-size: 0.5rem; letter-spacing: 2px; }
.phone-mock-content { flex: 1; padding: 16px; overflow: hidden; }
.mock-greeting {
  font-size: 1rem; font-weight: 700; margin-bottom: 12px;
}
.mock-search {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.mock-section-title {
  font-size: 0.78rem; font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.mock-card {
  display: flex; gap: 10px; align-items: center;
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}
.mock-card-img {
  width: 48px; height: 48px;
  border-radius: 10px; flex-shrink: 0;
}
.mock-card-info {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 0.7rem;
}
.mock-card-info strong { font-size: 0.78rem; }
.mock-card-info span { color: var(--text-muted); font-size: 0.65rem; }
.mock-tag {
  display: inline-block;
  background: rgba(232, 133, 12, 0.15);
  color: var(--accent-orange) !important;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.6rem !important;
  font-weight: 600;
  width: fit-content;
}
.phone-mock-tabbar {
  display: flex; justify-content: space-around;
  padding: 10px 0 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.phone-mock-tabbar .tab { font-size: 1rem; opacity: 0.4; }
.phone-mock-tabbar .tab.active { opacity: 1; }

/* ===================================
   TRUST BAR
   =================================== */
.trust-bar {
  padding: 40px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  text-align: center;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.trust-icon { font-size: 1.5rem; margin-bottom: 4px; }
.trust-item strong { font-size: 1rem; }
.trust-item span { font-size: 0.75rem; color: var(--text-muted); }

/* ===================================
   FEATURES
   =================================== */
.features { padding: 100px 0; }
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 16px; letter-spacing: -0.3px;
}
.feature-card li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.feature-card li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ===================================
   HOW IT WORKS
   =================================== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  text-align: center;
  padding: 40px 28px;
}
.step-number {
  width: 56px; height: 56px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
  margin: 0 auto 20px;
  color: white;
  box-shadow: 0 4px 20px rgba(232, 133, 12, 0.3);
}
.step-card h3 {
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 12px;
}
.step-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===================================
   REVIEWS
   =================================== */
.reviews { padding: 100px 0; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s;
}
.review-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.review-stars { font-size: 0.85rem; margin-bottom: 16px; letter-spacing: 2px; }
.review-card > p {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.reviewer {
  display: flex; align-items: center; gap: 12px;
}
.reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; color: white;
}
.reviewer strong { font-size: 0.9rem; }
.reviewer span { font-size: 0.78rem; color: var(--text-muted); }

/* ===================================
   USE CASES
   =================================== */
.use-cases {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.case-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}
.case-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.case-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.case-card strong {
  display: block; font-size: 1rem;
  margin-bottom: 8px;
}
.case-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===================================
   FAQ
   =================================== */
.faq { padding: 100px 0; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-item summary {
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  transition: color 0.2s;
}
.faq-item summary:hover { color: var(--accent-orange); }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--accent-orange);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================
   CTA
   =================================== */
.cta {
  padding: 100px 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(232, 133, 12, 0.08) 0%, transparent 60%),
              var(--bg-base);
}
.cta-inner { text-align: center; }
.cta h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.cta > p, .cta-inner > p { color: var(--text-secondary); font-size: 1.05rem; }
.cta .hero-buttons { justify-content: center; margin-top: 32px; }
.cta-note {
  margin-top: 20px !important;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}
.web-cta {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.web-cta:hover { opacity: 0.8; }

/* ===================================
   FOOTER
   =================================== */
.footer {
  padding: 60px 0 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-text { font-size: 1.2rem; display: block; margin-bottom: 12px; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 0.85rem; font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================================
   LEGAL PAGES
   Terms / Privacy / Copyright / Community Guidelines
   =================================== */

/* Applies legal-page background only on pages that contain the legal layout. */
body:has(.legal-main) {
  background: var(--legal-bg);
  color: var(--legal-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--legal-border);
}

.legal-header-inner {
  max-width: var(--legal-max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--legal-heading);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--legal-border);
  font-size: 18px;
  line-height: 1;
}

.legal-back:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--legal-heading);
  text-decoration: none;
}

.legal-header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--legal-heading);
  margin: 0;
  letter-spacing: -0.01em;
}

main.legal-main {
  max-width: var(--legal-max-width);
  margin: 0 auto;
  padding: 32px 20px 16px;
}

.legal-meta {
  font-size: 13px;
  color: var(--legal-muted);
  margin: 0 0 28px;
}

article.legal-article h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--legal-heading);
  margin: 0 0 12px;
}

article.legal-article h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--legal-heading);
  margin: 28px 0 12px;
  letter-spacing: -0.005em;
}

article.legal-article h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--legal-heading);
  margin: 20px 0 8px;
}

article.legal-article p {
  margin: 0 0 14px;
  color: var(--legal-body);
}

article.legal-article a {
  color: var(--legal-accent);
  text-decoration: none;
}

article.legal-article a:hover {
  color: var(--legal-accent-hover);
  text-decoration: underline;
}

article.legal-article ul,
article.legal-article ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--legal-body);
  list-style: revert;
}

article.legal-article li {
  margin: 0 0 6px;
}

article.legal-article strong {
  color: var(--legal-heading);
}

article.legal-article u {
  text-decoration: underline;
}

footer.legal-footer {
  max-width: var(--legal-max-width);
  margin: 24px auto 0;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--legal-border);
  text-align: center;
  font-size: 12px;
  color: var(--legal-muted);
}

footer.legal-footer a {
  color: var(--legal-accent);
}

footer.legal-footer a:hover {
  color: var(--legal-accent-hover);
  text-decoration: underline;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .features-grid, .reviews-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-phone { margin-top: 20px; }
  .phone-frame { width: 240px; }

  .nav-links {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(18, 19, 22, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .hamburger { display: block; z-index: 1001; }

  .features-grid, .reviews-grid, .steps-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body:has(.legal-main) { font-size: 14.5px; }
  main.legal-main { padding: 24px 16px 12px; }
  .legal-header-inner { padding: 12px 16px; }
  article.legal-article h2 { font-size: 16px; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}