/* ============================================================
   ExpireAI Landing Page & Legal Pages Stylesheet (Vanilla CSS)
   ============================================================ */

/* --- Custom Variables & Theme Tokens --- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette */
  --bg-dark: #0b1319;
  --bg-dark-card: #13202b;
  --bg-dark-hover: #182937;
  --bg-light: #f8fafc;
  --bg-light-card: #ffffff;
  
  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.3);
  
  --coral: #f43f5e;
  --coral-soft: rgba(244, 63, 94, 0.12);
  
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-dark: #0f172a;
  --text-dark-soft: #475569;
  
  --glass-bg: rgba(19, 32, 43, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset & Typography --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--slate-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
}

a {
  color: var(--emerald);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--text-white);
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-dark-card);
  border: 2px solid var(--bg-dark);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--slate-700);
}

/* --- Layout Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background-color: #080e12;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(11, 19, 25, 0.95);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-white);
}

.logo span {
  color: var(--emerald);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px var(--emerald);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-400);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--emerald);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--emerald-hover);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--slate-200);
  border: 1px solid var(--slate-700);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border-color: var(--slate-400);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 6rem;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 45%),
              radial-gradient(circle at 10% 50%, rgba(244, 63, 94, 0.04), transparent 30%);
}

.hero-grid {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--emerald) 40%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--slate-400);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-400);
}

.hero-feat-item svg {
  color: var(--emerald);
}

/* --- Hero Phone Mockup --- */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 60%);
  z-index: 1;
}

.phone-mockup {
  position: relative;
  width: 310px;
  height: 630px;
  border-radius: 40px;
  border: 12px solid #2e3b46;
  background-color: var(--bg-dark);
  box-shadow: var(--shadow-premium), 0 0 0 4px rgba(255,255,255,0.05);
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Simulated App UI */
.app-header {
  background-color: #0e1a24;
  padding: 1.25rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.app-body {
  flex: 1;
  background-color: #0e1a24;
  padding: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-hero-card {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border-radius: 16px;
  padding: 1.15rem;
  color: var(--text-white);
  position: relative;
}

.app-hero-title {
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-hero-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.25rem 0;
}

.app-hero-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.5rem;
  font-size: 0.7rem;
}

.app-list-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.app-section-title {
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-item-row {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
}

.app-item-info {
  flex: 1;
}

.app-item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.15rem;
}

.app-item-meta {
  font-size: 0.65rem;
  color: var(--slate-400);
}

.app-item-badge {
  padding: 0.2rem 0.4rem;
  border-radius: 99px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
}

.app-item-badge.danger {
  background-color: var(--coral-soft);
  color: var(--coral);
}

.app-item-badge.success {
  background-color: var(--emerald-soft);
  color: var(--emerald);
}

.app-tabbar {
  height: 48px;
  background-color: #091016;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 4px;
}

.app-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--slate-400);
}

.app-tab-item.active {
  color: var(--emerald);
}

.app-tab-icon {
  width: 18px;
  height: 18px;
}

.app-tab-label {
  font-size: 0.55rem;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  color: var(--emerald);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--slate-400);
  font-size: 1.05rem;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-cols: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--emerald-border);
  box-shadow: var(--shadow-premium);
}

.feat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--emerald-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--slate-400);
  font-size: 0.95rem;
}

/* --- How It Works --- */
.steps-wrapper {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}

.step-card {
  position: relative;
  text-align: center;
  background-color: var(--bg-dark-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem 2rem;
  z-index: 2;
}

.step-num {
  position: absolute;
  top: -24px;
  left: calc(50% - 24px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--emerald);
  color: var(--bg-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--slate-400);
  font-size: 0.95rem;
}

/* --- Download Banner --- */
.download-banner {
  background: linear-gradient(135deg, #0e202f 0%, #0b1319 100%);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  padding: 4rem;
  display: grid;
  grid-template-cols: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.download-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background-color: var(--emerald);
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.download-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.download-desc {
  color: var(--slate-400);
  font-size: 1.1rem;
  margin-bottom: 0rem;
}

.badge-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-dark);
  border: 1.5px solid var(--slate-700);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  width: 220px;
  transition: var(--transition-smooth);
}

.store-badge:hover {
  border-color: var(--emerald);
  background-color: #121c24;
  transform: translateY(-2px);
}

.store-badge svg {
  color: var(--text-white);
  width: 28px;
  height: 28px;
}

.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--slate-400);
  letter-spacing: 0.05em;
}

.badge-main {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.2;
}

/* --- Footer --- */
footer {
  background-color: #060a0d;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-cols: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.95rem;
  color: var(--slate-400);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--slate-700);
}

/* --- Legal Page Elements --- */
.legal-hero {
  padding-top: 8rem;
  padding-bottom: 3rem;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, transparent 100%);
  text-align: center;
}

.legal-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.legal-hero p {
  color: var(--slate-400);
  font-size: 1rem;
}

.legal-content-wrapper {
  padding-bottom: 6rem;
}

/* Tab System for Bilingual Legal Texts */
.tab-container {
  max-width: 800px;
  margin: 0 auto;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--slate-400);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-white);
}

.tab-btn.active {
  background-color: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

/* Legal Document Styles */
.legal-document {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3.5rem;
  box-shadow: var(--shadow-premium);
}

.legal-document h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
  color: var(--emerald);
}

.legal-document h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.legal-document p {
  color: var(--slate-200);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.legal-document ul, .legal-document ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--slate-200);
}

.legal-document li {
  margin-bottom: 0.5rem;
}

.legal-document table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.legal-document th, .legal-document td {
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.legal-document th {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-white);
  font-weight: 600;
}

.legal-document td {
  color: var(--slate-200);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-cols: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-features {
    justify-content: center;
  }
  
  .steps-wrapper {
    grid-template-cols: 1fr;
    gap: 2.5rem;
  }
  
  .download-banner {
    grid-template-cols: 1fr;
    text-align: center;
    padding: 3rem 2rem;
  }
  
  .badge-wrapper {
    align-items: center;
  }
  
  .footer-grid {
    grid-template-cols: 1fr;
    gap: 2.5rem;
  }
  
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .nav-menu {
    display: none; /* In production, add a simple burger menu drawer */
  }
  
  .legal-document {
    padding: 2rem 1.25rem;
  }
}
