/* ==========================================================================
   TargetLog Landing Page — Styles
   Dark theme, gold accents, Apple-like minimalism
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1B2838;
  --primary-light: #2A3F56;
  --accent: #E8A838;
  --accent-light: #F0C060;
  --accent-glow: rgba(232, 168, 56, 0.25);
  --bg: #0F1923;
  --surface: #1B2838;
  --surface-light: #243447;
  --card: #1E3044;
  --text: #FFFFFF;
  --text-secondary: #8B9DB5;
  --text-muted: #5A6F85;
  --border: #2A3F56;
  --border-light: #344D66;
  --danger: #E53935;
  --radius: 12px;
  --radius-lg: 20px;
  --nav-height: 64px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  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;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(232, 168, 56, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

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

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(15, 25, 35, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(42, 63, 86, 0.5);
  transition: background 0.3s;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.813rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.938rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #D09530);
  color: #0F1923;
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(232, 168, 56, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

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

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--accent);
  opacity: 0.7;
}

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

.phone-mockup {
  position: relative;
  max-width: 280px;
}

.phone-frame {
  position: relative;
  background: #000;
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px var(--accent-glow);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-screen {
  border-radius: 28px;
  width: 100%;
  display: block;
}

.phone-hero {
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.phone-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
}

/* ---------- Features ---------- */
.features {
  padding: 120px 0;
}

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

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

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(232, 168, 56, 0.1);
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, rgba(27, 40, 56, 0.3), transparent);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.step-reverse {
  direction: rtl;
}

.step-reverse > * {
  direction: ltr;
}

.step-number {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(232, 168, 56, 0.12);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

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

.step-visual .phone-mockup {
  max-width: 220px;
}

/* ---------- Screenshots ---------- */
.screenshots {
  padding: 120px 0 80px;
}

.screenshots-track {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 24px 20px;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshots-scroll {
  display: flex;
  gap: 20px;
  width: max-content;
}

.screenshot-item {
  flex-shrink: 0;
  width: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.screenshot-item img {
  width: 100%;
  height: auto;
}

/* ---------- Download CTA ---------- */
.download {
  padding: 120px 0;
}

.download-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.download-card h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}

.download-card > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  position: relative;
}

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 24px;
  transition: border-color 0.3s, transform 0.3s;
}

.store-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.store-btn svg {
  flex-shrink: 0;
}

.store-label {
  display: block;
  font-size: 0.688rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: left;
  line-height: 1.2;
}

.store-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.813rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.813rem;
  color: var(--text-muted);
}

/* ---------- Legal Pages ---------- */
.legal-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.legal-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-content {
  padding: 0 0 120px;
}

.legal-content .container {
  max-width: 760px;
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text);
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-section p {
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0;
  padding-left: 0;
}

.legal-section li {
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.75;
  padding: 6px 0 6px 24px;
  position: relative;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}

.legal-section ol {
  counter-reset: steps;
}

.legal-section ol li {
  counter-increment: steps;
}

.legal-section ol li::before {
  content: counter(steps);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(232, 168, 56, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 10px;
  opacity: 1;
}

.legal-section a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s;
}

.legal-section a:hover {
  color: var(--text);
}

.legal-highlight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
}

.legal-highlight p {
  margin-bottom: 0;
}

.legal-warning {
  background: rgba(229, 57, 53, 0.06);
  border: 1px solid rgba(229, 57, 53, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
}

.legal-warning p {
  margin-bottom: 0;
}

.legal-warning strong {
  color: var(--danger);
}

.legal-timeline {
  margin: 16px 0;
}

.legal-timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.legal-timeline-item:last-child {
  border-bottom: none;
}

.legal-timeline-label {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  min-width: 120px;
}

.legal-timeline-desc {
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(15, 25, 35, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0 60px;
    gap: 40px;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

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

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

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

  .step, .step-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    direction: ltr;
  }

  .step-visual .phone-mockup {
    max-width: 180px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .download-card {
    padding: 60px 24px;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .legal-timeline-item {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}
