@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --color-primary: #FF4500; /* Sunset Orange */
  --color-primary-rgb: 255, 69, 0;
  --color-secondary: #FFC107; /* Amber */
  --color-secondary-rgb: 255, 193, 7;
  --color-tertiary: #FF7F50; /* Coral */
  --color-bg: #1C1917; /* Warm Brownish-Grey */
  --color-surface: #292524; /* Lighter brownish-grey */
  --color-surface-hover: #3E3835;
  --color-text: #F5F5F4;
  --color-text-muted: #A8A29E;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-glow: rgba(255, 69, 0, 0.15);
  
  --gradient-sunset: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  --gradient-glow: radial-gradient(circle, rgba(255, 69, 0, 0.15) 0%, rgba(255, 193, 7, 0.05) 50%, transparent 100%);
  
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(255, 69, 0, 0.25);
  
  --radius-full: 9999px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- BACKGROUNDS & LAYOUT UTILITIES --- */
.bg-sunset-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 900px;
  background: var(--gradient-glow);
  z-index: -1;
  pointer-events: none;
}

.bg-sunset-radial {
  background: radial-gradient(circle at top right, rgba(255, 127, 80, 0.12) 0%, transparent 50%),
              radial-gradient(circle at bottom left, rgba(255, 69, 0, 0.08) 0%, transparent 50%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- GLASSMORPHISM --- */
.glass {
  background: rgba(41, 37, 36, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
}

.glass-interactive {
  transition: var(--transition-normal);
}
.glass-interactive:hover {
  background: rgba(41, 37, 36, 0.85);
  border-color: rgba(255, 69, 0, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-sunset);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover::after {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

header.scrolled {
  background: rgba(28, 25, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #FFFFFF;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-sunset);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.logo-text span {
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
nav a:hover, nav a.active {
  color: #FFFFFF;
}

/* --- HERO SECTION --- */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 69, 0, 0.1);
  border: 1px solid rgba(255, 69, 0, 0.2);
  color: var(--color-tertiary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title span {
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* Store Badge & QR layout */
.download-desktop {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

.qr-code-wrapper {
  background: #FFFFFF;
  padding: 8px;
  border-radius: var(--radius-md);
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

.qr-code-wrapper svg {
  width: 100%;
  height: 100%;
}

.qr-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.qr-desc strong {
  color: #FFFFFF;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* --- THE CORE LOOP SECTION --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-text-muted);
}

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

.loop-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.loop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(255, 69, 0, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.loop-number {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.8;
}

.loop-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.loop-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --- PRIVACY HIGHLIGHTS --- */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.privacy-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
}

.privacy-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 69, 0, 0.1);
  border: 1px solid rgba(255, 69, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.privacy-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.privacy-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- MOBILE SIMULATOR --- */
.simulator-section {
  background: radial-gradient(circle at center, rgba(255, 69, 0, 0.03) 0%, transparent 70%);
}

.simulator-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.phone-shell {
  width: 320px;
  height: 640px;
  border-radius: 40px;
  border: 12px solid #000000;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 69, 0, 0.15);
  background: #1C1917;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
  font-size: 12px;
}

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

/* Phone Header */
.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 16px;
}
.phone-title {
  font-weight: 800;
  font-size: 1.1rem;
}
.phone-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 2px;
  margin-bottom: 16px;
}
.phone-tab {
  text-align: center;
  padding: 6px 0;
  border-radius: 6px;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.75rem;
}
.phone-tab.active {
  background: var(--color-surface);
  color: #FFFFFF;
}

/* Requests Tray */
.tray-label {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.phone-tray {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.phone-tray::-webkit-scrollbar {
  display: none;
}
.tray-card {
  width: 90px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  padding: 8px;
  text-align: center;
  position: relative;
}
.tray-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 6px auto;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-glow);
}
.tray-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.tray-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.btn-action {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  border: none;
}
.btn-decline {
  background: rgba(255,255,255,0.08);
  color: var(--color-text-muted);
}
.btn-accept {
  background: var(--gradient-sunset);
  color: #FFFFFF;
}

/* Grid */
.grid-label {
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex-grow: 1;
  overflow-y: auto;
}
.phone-card {
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 120px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.phone-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 1;
}
.phone-card-content {
  z-index: 2;
  margin-top: auto;
}
.phone-card-name {
  font-weight: 700;
  font-size: 0.85rem;
}
.phone-card-pref {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
}
.badge-active {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  z-index: 2;
}

/* Simulator Controller */
.sim-controls {
  padding-left: 20px;
}
.sim-pill {
  display: inline-block;
  background: rgba(255, 69, 0, 0.1);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.sim-headline {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.sim-desc {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}
.sim-trigger-btn {
  background: var(--gradient-sunset);
  border: none;
  font-weight: 700;
  color: white;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.sim-trigger-btn:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-glow);
}

/* --- FAQ SECTION --- */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.15rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 16px;
}

.faq-icon {
  transition: var(--transition-normal);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--color-border);
  padding: 60px 0 40px 0;
  background: #151312;
}

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

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

.footer-links h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 30px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

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

/* --- DOCUMENT LAYOUTS (TOS / PRIVACY) --- */
.doc-section {
  padding-top: 160px;
  padding-bottom: 100px;
  max-width: 800px;
  margin: 0 auto;
}

.doc-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.doc-title {
  font-size: 3rem;
  margin-bottom: 12px;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.doc-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.doc-content h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.doc-content p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.doc-content ul {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  padding-left: 24px;
  line-height: 1.7;
}

.doc-content li {
  margin-bottom: 8px;
}

/* --- ANIMATION EFFECTS --- */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 12px rgba(255, 69, 0, 0.2); }
  50% { box-shadow: 0 0 24px rgba(255, 69, 0, 0.45); }
  100% { box-shadow: 0 0 12px rgba(255, 69, 0, 0.2); }
}

.anim-pulse {
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes wipeFade {
  0% { transform: scale(1); opacity: 1; filter: blur(0); }
  50% { transform: scale(0.95); opacity: 0.3; filter: blur(4px); }
  100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

.wipe-purging {
  animation: wipeFade 1.6s ease-in-out;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .download-desktop {
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
  }
  .loop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .simulator-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .sim-controls {
    text-align: center;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  nav {
    display: none; /* Hide top nav on mobile, direct download is key */
  }
  .doc-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .loop-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .download-desktop {
    display: none; /* Desktop only QR helper */
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
