/* ============================================================
   CustomDashboard Landing Page — customdashboards.us
   ============================================================ */

/* --- Font Face (self-hosted Inter variable) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-var.woff2') format('woff2');
}

/* --- Custom Properties --- */
:root {
  --color-primary: #1A1A2E;
  --color-accent: #4361EE;
  --color-accent-hover: #3451DE;
  --color-success: #22C55E;
  --color-bg-light: #F8F9FA;
  --color-bg-dark: #0F0F14;
  --color-text-primary: #1A1A2E;
  --color-text-secondary: #6B7280;
  --color-white: #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --section-pad: clamp(3rem, 8vw, 7rem);
  --radius: 12px;
  --radius-sm: 8px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
  .currency__track { animation: none !important; }
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text-primary);
}

.section-title--light {
  color: var(--color-white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
}

.btn--accent:hover { background: var(--color-accent-hover); }

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

.store-badge {
  display: inline-block;
  transition: transform 0.2s;
}

.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: translateY(0); opacity: 0.85; }

.store-badge img {
  height: 50px;
  width: auto;
}

/* --- Screen Reader Only (Accessibility) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Phone Mockup --- */
.phone-mockup {
  position: relative;
  width: 240px;
  border-radius: 28px;
  background: #1c1c1e;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.08);
}

.phone-mockup__screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 18px;
  background: #2a2a3e;
  overflow: hidden;
}

.phone-mockup--hero { width: 280px; }
.phone-mockup--step { width: 200px; margin: 0 auto 1rem; }

/* Placeholder styling — wireframe look until real screenshots arrive */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(67, 97, 238, 0.08) 0%, rgba(67, 97, 238, 0.02) 100%),
    #2a2a3e;
}

.placeholder::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: rgba(67, 97, 238, 0.1);
}

.placeholder::after {
  content: attr(data-label);
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
  padding-bottom: var(--section-pad);
}

.hero__gradient {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.nav__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 2rem;
}

.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

/* Step 5: Brand tagline */
.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__image {
  display: flex;
  justify-content: center;
}

@media (max-width: 374px) {
  .phone-mockup--hero {
    width: 240px;
  }
}

@media (min-width: 768px) {
  .hero__content {
    grid-template-columns: 1fr auto;
    gap: 4rem;
    padding-top: 3rem;
  }
}

/* ============================================================
   2. TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--color-bg-light);
  padding: 2.5rem 0;
  text-align: center;
}

.trust-bar__lead {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

.trust-bar__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
}

.trust-badge__icon {
  color: var(--color-success);
  flex-shrink: 0;
}

/* ============================================================
   3. HOW IT WORKS (Steps)
   ============================================================ */
.steps {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}

.steps__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.step {
  text-align: center;
  max-width: 300px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step__connector {
  display: none;
  height: 0;
  overflow: hidden;
}

@media (min-width: 900px) {
  .steps__grid {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
  }

  .step__connector {
    display: flex;
    align-items: center;
    padding-top: 140px;
  }
}

/* ============================================================
   4. FEATURES
   ============================================================ */
.features {
  padding: var(--section-pad) 0;
  background: var(--color-bg-light);
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature:last-child { margin-bottom: 0; }

.feature__image {
  display: flex;
  justify-content: center;
}

.feature__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature__desc {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature__bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.5rem;
}

@media (min-width: 480px) {
  .feature__bullets {
    grid-template-columns: 1fr 1fr;
  }
}

.feature__bullets li {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.feature__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

@media (min-width: 768px) {
  .feature {
    grid-template-columns: 1fr 1fr;
  }

  .feature--reverse .feature__image {
    order: 2;
  }

  .feature--reverse .feature__text {
    order: 1;
  }
}

/* ============================================================
   5. PRIVACY
   ============================================================ */
.privacy {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--section-pad) 0;
}

.privacy__lead {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: -1.5rem auto 3rem;
  line-height: 1.7;
}

.privacy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.privacy-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s, transform 0.2s;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.privacy-card__icon {
  margin-bottom: 1rem;
}

.privacy-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.privacy-card__desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.privacy-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.privacy-card:active {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(0);
}

@media (min-width: 640px) {
  .privacy__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   6. USE CASES
   ============================================================ */
.use-cases {
  padding: var(--section-pad) 0;
  background: var(--color-bg-light);
}

.use-cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.use-case-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.use-case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.use-case-card:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.use-case-card__icon {
  margin-bottom: 1rem;
}

.use-case-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.use-case-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .use-cases__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   7. CURRENCY
   ============================================================ */
.currency {
  padding: 3rem 0;
  background: var(--color-white);
  overflow: hidden;
}

.currency .section-title { margin-bottom: 2rem; }

.currency__ticker {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.currency__track {
  display: flex;
  gap: 2.5rem;
  animation: ticker 20s linear infinite;
  width: max-content;
}

.currency__track span {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.currency__track span:nth-child(3n+1) { color: var(--color-accent); }
.currency__track span:nth-child(3n+2) { color: var(--color-text-secondary); }
.currency__track span:nth-child(3n+3) { color: var(--color-text-primary); }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   8. COMING SOON
   ============================================================ */
.coming-soon {
  padding: var(--section-pad) 0;
  background: var(--color-bg-light);
}

.coming-soon__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.coming-soon__card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.coming-soon__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.coming-soon__card:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.coming-soon__icon { margin-bottom: 1rem; }

.coming-soon__card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--soon {
  background: rgba(67, 97, 238, 0.1);
  color: var(--color-accent);
}

@media (min-width: 640px) {
  .coming-soon__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   9. FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--section-pad) 0;
  text-align: center;
}

.final-cta__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.final-cta__subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.final-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 2.5rem 0;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  transition: color 0.2s;
}

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

.footer__more {
  display: flex;
  gap: 0.5rem;
}

.footer__more a {
  color: var(--color-accent);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ============================================================
   PRIVACY / LEGAL PAGE
   ============================================================ */
.privacy-header {
  background: var(--color-primary);
  color: var(--color-white);
}

.legal {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}

.legal__container {
  max-width: 720px;
}

.legal__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.legal__updated {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

.legal__section {
  margin-bottom: 2.5rem;
}

.legal__section:last-child {
  margin-bottom: 0;
}

.legal__section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}

.legal__section p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__section ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal__section li {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  padding-left: 0.5rem;
  position: relative;
  list-style: disc;
}

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

.legal__section a:hover {
  color: var(--color-accent-hover);
}

/* ============================================================
   404 ERROR PAGE
   ============================================================ */
.error-page {
  padding: var(--section-pad) 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-page__code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--color-bg-light);
  line-height: 1;
  letter-spacing: -0.04em;
}

.error-page__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.error-page__desc {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: rgba(67, 97, 238, 0.3);
  color: var(--color-white);
}
