/* ==========================================================================
   SafeSense — Stylesheet
   ========================================================================== */

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

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

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Design Tokens ---------- */
:root {
  --white: #ffffff;
  --black: #000000;
  --text: #000000;
  --text-secondary: #636363;
  --text-muted: #727374;
  --accent: #2663eb;
  --primary: #035fff;
  --bg-light: #f5f6f6;
  --card-gray: #e7e7e8;
  --card-blue: #bfcaff;
  --card-purple: #b3b3ff;
  --card-peach: #ffe4c4;
  --dark: #272a2c;

  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-pill: 63px;
  --max-width: 1200px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 80px; font-weight: 700; }
h2 { font-size: 48px; font-weight: 600; color: var(--accent); }
h3 { font-size: 32px; font-weight: 700; }
h4 { font-size: 24px; font-weight: 700; }

p { color: var(--text-secondary); line-height: 1.5; }

.text-center { text-align: center; }
.text-white { color: var(--white); }

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

section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav a {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav__logo {
  width: 36px;
  height: 36px;
}

.nav__wordmark {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 40px 100px;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
  border-radius: var(--radius-lg);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero__title { color: var(--white); }

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  max-width: 560px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s, opacity 0.2s;
}

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

.btn--primary {
  background: var(--white);
  color: var(--text);
}

.btn--outline {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
}

/* ---------- Works With ---------- */
.works-with {
  padding: 80px 40px 0;
}

.works-with h2 { margin-bottom: 40px; }

.works-with__image {
  width: 100%;
  max-width: 1043px;
  border-radius: var(--radius-lg);
}

/* ---------- Plan / Setup ---------- */
.plan {
  padding: 80px 40px;
}

.plan__inner {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plan__header {
  text-align: center;
  max-width: 600px;
  margin-bottom: 48px;
}

.plan__header p {
  margin-top: 16px;
}

.plan__steps {
  width: 100%;
  max-width: 700px;
}

.plan__step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--card-gray);
}

.plan__step:first-child { border-top: none; }

.plan__step-number {
  font-size: 48px;
  font-weight: 600;
  color: var(--accent);
  min-width: 60px;
  line-height: 1;
}

.plan__step-content { flex: 1; }

.plan__step-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan__step-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plan__step-icons {
  font-size: 20px;
  flex-shrink: 0;
}

.plan__step-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

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

/* Hero banner with gradient */
.features__hero {
  background: linear-gradient(180deg, var(--primary) 0%, #a6cfff 100%);
  width: 100%;
  padding: 100px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 24px;
}

.features__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.features__hero h2 {
  color: var(--white);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.features__hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.6;
  max-width: 750px;
  margin-bottom: 56px;
}

.features__phone {
  width: 100%;
  max-width: 480px;
  border-radius: 32px;
}

/* Feature cards grid */
.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
    min-height: 220px;
}

.feature-card--gray   { background: var(--card-gray); }
.feature-card--blue   { background: var(--card-blue); }
.feature-card--purple { background: var(--card-purple); }
.feature-card--peach  { background: var(--card-peach); }

.feature-card__title { margin-bottom: 8px; }

.feature-card__desc {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ---------- Brand Carousel ---------- */
.brands {
  padding: 60px 0;
  overflow: hidden;
  width: 100%;
}

.brands__track {
  display: flex;
  gap: 80px;
  align-items: center;
  animation: scroll-brands 30s linear infinite;
  width: max-content;
  --set-width: 50%;
}

.brands__item {
  flex-shrink: 0;
  width: 120px;
  height: auto;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.brands__item:hover { opacity: 0.7; }

@keyframes scroll-brands {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(var(--set-width) * -1)); }
}

/* ---------- FAQ ---------- */
.faq {
  padding: 80px 40px;
}

.faq__inner {
  display: flex;
  gap: 80px;
  width: 100%;
  max-width: var(--max-width);
  align-items: flex-start;
}

.faq__header {
  flex: 1;
  position: sticky;
  top: 120px;
}

.faq__header h2 {
  text-align: left;
  margin-bottom: 16px;
}

.faq__header p { max-width: 400px; }

.faq__list {
  flex: 1;
  max-width: 600px;
}

.faq__item {
  border-top: 1px solid var(--card-gray);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
}

.faq__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.faq__item.active .faq__icon { transform: rotate(45deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__item.active .faq__answer {
  max-height: 300px;
}

.faq__answer p {
  padding-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: var(--white);
  padding: 64px 40px 40px;
  width: 100%;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 64px;
}

.footer__cta { max-width: 500px; }

.footer__cta h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer__cta p {
  color: var(--text-muted);
  font-size: 16px;
}

.footer__download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__qr-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.footer__qr {
  width: 120px;
  height: 120px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.footer__qr img {
  width: 100%;
  height: 100%;
}

.footer__download-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer__download-link:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer__tagline {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  max-width: 700px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

.footer__copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__logo {
  width: 48px;
  height: auto;
  opacity: 0.3;
}

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible { opacity: 1; }

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Policy Pages ---------- */
.policy {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 40px 80px;
}

.policy h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

.policy .policy__intro {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.policy__updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.policy h2 {
  font-size: 24px;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
}

.policy h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.policy p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.policy ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy ul li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}

.policy a {
  color: var(--accent);
  text-decoration: underline;
}

.policy a:hover { text-decoration: none; }

/* ---------- Responsive: Tablet (810–1199px) ---------- */
@media (max-width: 1199px) {
  h1 { font-size: 64px; }
  h2 { font-size: 42px; }
  h3 { font-size: 28px; }

  .hero { height: 80vh; }

  .features__phone { max-width: 400px; }

  .faq__inner { gap: 48px; }
}

/* ---------- Responsive: Mobile (<810px) ---------- */
@media (max-width: 809px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
  body { font-size: 14px; }

  .container { padding: 0 20px; }

  .nav { padding: 16px 20px; }
  .nav__wordmark { font-size: 16px; }

  .hero {
    height: 80vh;
    padding: 0 20px 80px;
  }

  .hero__subtitle { font-size: 15px; }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn { justify-content: center; }

  .works-with { padding: 60px 20px 0; }

  .plan { padding: 60px 20px; }
  .plan__inner { padding: 40px 24px; }
  .plan__step { gap: 20px; }
  .plan__step-number { font-size: 36px; min-width: 44px; }
  .plan__step-title { font-size: 24px; }

  .features__hero { padding: 60px 20px 0; }
  .features__hero h2 { font-size: 36px; }
  .features__hero p { font-size: 15px; margin-bottom: 40px; }
  .features__phone { max-width: 340px; }

  .features__grid { grid-template-columns: 1fr; padding: 0 20px; }
  .feature-card { min-height: 200px; padding: 28px; }

  .brands__track { gap: 40px; }
  .brands__item { width: 90px; }

  .faq { padding: 60px 20px; }

  .faq__inner {
    flex-direction: column;
    gap: 32px;
  }

  .faq__header {
    position: static;
  }

  .faq__list { max-width: 100%; }

  .footer { padding: 48px 20px 32px; }

  .footer__top {
    flex-direction: column;
    gap: 40px;
  }

  .footer__download {
    align-items: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer__meta { align-items: flex-start; }

  .policy {
    padding: 100px 20px 60px;
  }

  .policy h1 { font-size: 32px; }
}