/* ═══════════════════════════════════════
   minimalistic.in — Styles
   ═══════════════════════════════════════ */

/* --- Bryant Pro Bold (brand font) --- */
@font-face {
  font-family: 'Bryant Pro';
  src: url('/fonts/BryantPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Variables --- */
:root {
  --color-primary: #6C5CE7;
  --color-primary-light: #8B7CF6;
  --color-primary-dark: #4A3DB5;
  --color-accent: #00CEC9;
  --color-bg: #F8F9FE;
  --color-white: #FFFFFF;
  --color-text: #2D3436;
  --color-text-secondary: #636E72;
  --color-text-light: #B2BEC3;
  --color-dark: #1a1a2e;
  --gradient-hero: linear-gradient(135deg, #8B7CF6 0%, #6C5CE7 50%, #4A3DB5 100%);
  --gradient-subtle: linear-gradient(135deg, #f0ecff 0%, #F8F9FE 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(108,92,231,0.08);
  --shadow-lg: 0 8px 32px rgba(108,92,231,0.12);
  --shadow-xl: 0 16px 48px rgba(108,92,231,0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1140px;
  --max-width-narrow: 720px;
  --font-brand: 'Bryant Pro', 'Quicksand', 'Nunito', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

/* --- Typography --- */
h1, h2, h3 { line-height: 1.15; font-weight: 700; font-family: var(--font-heading); }
h1 { font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.5rem + 1.5vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }
p { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); }
.text-secondary { color: var(--color-text-secondary); }
.text-light { color: var(--color-text-light); }

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

/* --- Section spacing --- */
.section { padding: 100px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

/* --- Three.js canvas --- */
.three-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav--scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  padding: 12px 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { width: 36px; height: 36px; }
.nav__name {
  font-family: var(--font-brand);
  font-size: 1.25rem; font-weight: 700; color: white;
  letter-spacing: 0.5px;
}
.nav--scrolled .nav__name { color: var(--color-text); }
.nav--scrolled .nav__logo line,
.nav--scrolled .nav__logo path { stroke: var(--color-primary); }
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__link {
  font-family: var(--font-heading);
  font-size: 0.9375rem; font-weight: 500; color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.nav__link:hover { color: white; }
.nav--scrolled .nav__link { color: var(--color-text-secondary); }
.nav--scrolled .nav__link:hover { color: var(--color-primary); }
.nav__cta {
  font-family: var(--font-heading);
  font-size: 0.875rem; font-weight: 600; color: var(--color-primary);
  background: white; padding: 8px 20px; border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav--scrolled .nav__cta { background: var(--color-primary); color: white; }

/* Mobile menu */
.nav__menu-btn { display: none; }
.nav__hamburger { width: 24px; height: 18px; position: relative; }
.nav__hamburger span {
  display: block; width: 100%; height: 2px; background: white;
  border-radius: 2px; position: absolute; left: 0;
  transition: all 0.3s;
}
.nav--scrolled .nav__hamburger span { background: var(--color-text); }
.nav__hamburger span:nth-child(1) { top: 0; }
.nav__hamburger span:nth-child(2) { top: 8px; }
.nav__hamburger span:nth-child(3) { top: 16px; }

.nav__overlay {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.nav__overlay--open { display: flex; }
.nav__overlay .nav__link {
  font-family: var(--font-heading);
  font-size: 1.5rem; color: var(--color-text);
}
.nav__overlay .nav__cta { font-size: 1.125rem; background: var(--color-primary); color: white; padding: 12px 32px; }
.nav__close {
  position: absolute; top: 20px; right: 24px;
  font-size: 2rem; color: var(--color-text); background: none; border: none;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: block; }
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-hero);
  position: relative; overflow: hidden; text-align: center;
  padding: 120px 24px 80px;
}

.hero__content { position: relative; z-index: 1; max-width: 680px; }

.hero__logo {
  width: 80px; height: 80px; margin: 0 auto 20px;
  animation: scaleIn 0.6s var(--ease-out) both;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.15));
}
.hero__title {
  color: white; margin-bottom: 12px;
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  color: rgba(255,255,255,0.7); font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 24px;
  animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}
.hero__subtitle {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: rgba(255,255,255,0.8); max-width: 480px; margin: 0 auto 40px;
  animation: fadeInUp 0.6s var(--ease-out) 0.6s both;
}
.hero__badges {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.6s var(--ease-out) 0.8s both;
}
.hero__badge { height: 52px; transition: transform 0.2s; border-radius: 8px; }
.hero__badge:hover { transform: scale(1.05); }
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite 1.5s;
  opacity: 0.5; z-index: 1;
}
.hero__scroll svg { width: 24px; height: 24px; }

/* ─── SHOWCASE ─── */
.showcase { background: var(--color-bg); }
.showcase__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.showcase__visual { position: relative; }
.showcase__phone {
  width: 280px; margin: 0 auto;
  background: var(--color-dark); border-radius: 36px; padding: 8px;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(108,92,231,0.15);
  transition: transform 0.4s var(--ease-out);
}
.showcase__phone:hover { transform: translateY(-6px) scale(1.01); }
.showcase__screen {
  border-radius: 28px; overflow: hidden; aspect-ratio: 9/19.5;
  background: var(--color-bg);
}
.showcase__screen img { width: 100%; height: 100%; object-fit: cover; }
.showcase__features { display: flex; flex-direction: column; gap: 24px; }
.showcase__label {
  font-family: var(--font-heading);
  font-size: 0.8125rem; font-weight: 600; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}

.feature-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--color-white); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-item--soon { opacity: 0.5; }
.feature-item__icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.125rem; color: white;
}
.feature-item__text h3 { margin-bottom: 4px; }
.feature-item__text p { font-size: 0.9375rem; color: var(--color-text-secondary); }
.feature-item__badge {
  font-family: var(--font-heading);
  font-size: 0.6875rem; font-weight: 600; color: var(--color-text-light);
  background: var(--color-bg); padding: 2px 10px; border-radius: 100px;
  margin-left: auto; align-self: center;
}

@media (max-width: 768px) {
  .showcase__grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .showcase__features { order: -1; }
}

/* ─── HOW IT WORKS ─── */
.how-it-works { background: var(--gradient-hero); position: relative; overflow: hidden; }
.how-it-works__header { text-align: center; margin-bottom: 64px; position: relative; z-index: 1; }
.how-it-works__header h2 { color: white; }
.how-it-works__header p { color: rgba(255,255,255,0.7); margin-top: 12px; }
.how-it-works .container { position: relative; z-index: 1; }
.how-it-works__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative; z-index: 1;
}
.step-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl); padding: 32px 24px; text-align: center;
  transition: transform 0.3s, background 0.3s;
}
.step-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); }
.step-card__number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: white;
  font-family: var(--font-heading);
  font-size: 0.875rem; font-weight: 700; margin-bottom: 20px;
}
.step-card h3 { color: white; margin-bottom: 8px; }
.step-card p { color: rgba(255,255,255,0.7); font-size: 0.9375rem; }

@media (max-width: 768px) {
  .how-it-works__steps { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ─── VALUES ─── */
.values { background: var(--color-white); }
.values__header { text-align: center; margin-bottom: 64px; }
.values__header h2 { margin-bottom: 12px; }
.values__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.value-card {
  background: var(--color-bg); border-radius: var(--radius-xl);
  padding: 32px 24px; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card__icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.value-card__icon svg { width: 28px; height: 28px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: 0.9375rem; color: var(--color-text-secondary); }

@media (max-width: 1024px) { .values__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values__grid { grid-template-columns: 1fr; } }

/* ─── CTA ─── */
.cta {
  background: var(--gradient-hero); text-align: center;
  position: relative; overflow: hidden;
}
.cta .container { position: relative; z-index: 1; }
.cta__content { position: relative; z-index: 1; }
.cta h2 { color: white; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,0.75); margin-bottom: 36px; font-size: 1.125rem; }
.cta__badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta__badges img { height: 52px; border-radius: 8px; transition: transform 0.2s; }
.cta__badges img:hover { transform: scale(1.05); }

/* ─── FOOTER ─── */
.footer {
  background: var(--color-dark); color: rgba(255,255,255,0.6);
  padding: 48px 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__logo { width: 28px; height: 28px; }
.footer__name {
  font-family: var(--font-brand);
  font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.8);
}
.footer__links { display: flex; gap: 24px; }
.footer__link {
  font-family: var(--font-heading);
  font-size: 0.875rem; transition: color 0.2s;
}
.footer__link:hover { color: white; }
.footer__copy { font-size: 0.8125rem; width: 100%; text-align: center; margin-top: 16px; }

@media (max-width: 640px) {
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ─── PRIVACY PAGE ─── */
.privacy { padding-top: 120px; }
.privacy__content {
  max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 24px 80px;
}
.privacy__header { margin-bottom: 48px; }
.privacy__header h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 8px; color: var(--color-primary); }
.privacy__updated { font-size: 0.875rem; color: var(--color-text-light); }
.privacy__section { margin-bottom: 36px; }
.privacy__section h2 {
  font-size: 1.25rem; color: var(--color-text); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--color-bg);
}
.privacy__section p {
  color: var(--color-text-secondary); line-height: 1.75; margin-bottom: 12px;
}
.privacy__section p:last-child { margin-bottom: 0; }
.privacy__section ul {
  margin: 8px 0 12px 24px; color: var(--color-text-secondary);
  line-height: 1.75; list-style: disc;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .three-canvas { display: none; }
}
