/* ============================================
   Inboxd Marketing Website
   Design System: "Amber & Onyx" Soft-Tech
   ============================================ */

/* CSS Variables */
:root {
  /* Brand Colors */
  --amber: #ffcc00;
  --amber-light: #ffe066;
  --amber-dark: #e6b800;
  --onyx: #0f0f0f;
  --charcoal: #1a1a1a;
  --white: #ffffff;

  /* Neutral Scale */
  --ghost: #fafbfc;
  --slate-light: #e8e8e8;
  --slate-medium: #9ca3af;
  --slate-dark: #4b5563;

  /* Semantic */
  --success: #10b981;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-surface: 0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-amber: 0 4px 20px rgba(255, 204, 0, 0.35),
    0 0 0 1px rgba(255, 204, 0, 0.1);
  --shadow-amber-intense: 0 8px 32px rgba(255, 204, 0, 0.45),
    0 0 60px rgba(255, 204, 0, 0.15);
  --shadow-onyx: 0 4px 20px rgba(15, 15, 15, 0.25);

  /* Fonts */
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Spacing */
  --container-max: 1024px;
  --container-narrow: 640px;
  --section-padding: 96px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--ghost);
  color: var(--onyx);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-label-amber {
  color: var(--amber);
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--onyx);
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
}

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

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-sm {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-lg {
  height: 60px;
  padding: 0 32px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: var(--onyx);
  box-shadow: var(--shadow-amber);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-amber-intense);
}

.btn-secondary {
  background: var(--onyx);
  color: var(--white);
  box-shadow: var(--shadow-onyx);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--charcoal);
}

.btn-ghost {
  background: transparent;
  color: var(--onyx);
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
}

.btn-ghost:hover {
  background: rgba(15, 15, 15, 0.05);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top,
    var(--white) 0%,
    var(--ghost) 70%
  );
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero-glow-1 {
  top: 120px;
  right: 10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 204, 0, 0.1);
}

.hero-glow-2 {
  top: 400px;
  left: 5%;
  width: 200px;
  height: 200px;
  background: rgba(255, 204, 0, 0.06);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--slate-light);
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.badge-dot {
  position: relative;
  width: 10px;
  height: 10px;
}

.badge-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.badge-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--success);
  border-radius: 50%;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 800px;
}

.text-gradient {
  display: block;
  background: linear-gradient(135deg, var(--amber) 0%, #ff9500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-amber {
  color: var(--amber);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--slate-dark);
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
}

.avatars {
  display: flex;
  margin-left: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -12px;
  box-shadow: var(--shadow-sm);
}

.social-proof p {
  font-size: 14px;
  color: var(--slate-medium);
}

.social-proof strong {
  color: var(--onyx);
}

/* ============================================
   Cards
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--onyx);
}

.card p {
  font-size: 16px;
  color: var(--slate-dark);
  line-height: 1.6;
}

.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: var(--onyx);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-amber);
  margin-bottom: 24px;
}

.icon-container {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ghost) 0%, var(--white) 100%);
  border: 1px solid var(--slate-light);
  color: var(--slate-dark);
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.card:hover .icon-container {
  color: var(--onyx);
}

.icon-container-amber {
  background: linear-gradient(
    135deg,
    rgba(255, 204, 0, 0.15) 0%,
    rgba(255, 204, 0, 0.05) 100%
  );
  border: 1px solid rgba(255, 204, 0, 0.2);
  color: var(--amber);
}

/* ============================================
   Creator Card (Dark Section)
   ============================================ */

.creator-card {
  position: relative;
  background: var(--onyx);
  border-radius: 32px;
  padding: 80px 48px;
  overflow: hidden;
}

.creator-card-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  opacity: 0.5;
}

.creator-card-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 204, 0, 0.2);
  border-radius: 50%;
  filter: blur(100px);
}

.creator-card-content {
  position: relative;
  text-align: center;
}

.creator-title {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--white);
  margin-bottom: 24px;
}

.creator-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 48px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.stat-value.text-amber {
  color: var(--amber);
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Trust Section
   ============================================ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}

.trust-item {
  text-align: center;
}

.trust-item .icon-container {
  margin: 0 auto 24px;
  transition: transform 0.3s ease;
}

.trust-item:hover .icon-container {
  transform: scale(1.1);
}

.trust-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--onyx);
}

.trust-item p {
  font-size: 14px;
  color: var(--slate-dark);
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   Final CTA
   ============================================ */

.final-cta {
  text-align: center;
}

.final-cta p {
  font-size: 18px;
  color: var(--slate-dark);
  margin: 16px 0 48px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--white);
  border-top: 1px solid var(--slate-light);
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-brand .logo-img {
  height: 48px;
  border-radius: 50%;
}

.footer-brand p {
  font-size: 14px;
  color: var(--slate-dark);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--onyx);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--slate-dark);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--onyx);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--slate-light);
}

.footer-bottom p {
  font-size: 14px;
  color: var(--slate-medium);
}

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

.social-links a {
  color: var(--slate-medium);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--onyx);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 100ms;
}
.delay-2 {
  animation-delay: 200ms;
}
.delay-3 {
  animation-delay: 300ms;
}
.delay-4 {
  animation-delay: 400ms;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .nav-content {
    padding: 0 16px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-title {
    font-size: clamp(32px, 10vw, 48px);
  }

  .hero-subtitle {
    font-size: 16px;
  }

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

  .hero-cta .btn {
    width: 100%;
  }

  .stats {
    gap: 32px;
  }

  .stat-value {
    font-size: 24px;
  }

  .creator-card {
    padding: 48px 24px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-item {
    padding: 24px;
  }

  .faq-item h3 {
    font-size: 16px;
  }

  .faq-item p {
    font-size: 14px;
    padding-left: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-dark) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 204, 0, 0.2);
}

.faq-item:hover::before {
  opacity: 1;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 204, 0, 0.15) 0%,
    rgba(255, 204, 0, 0.05) 100%
  );
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  margin-top: 2px;
}

.faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--onyx);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.faq-item p {
  font-size: 15px;
  color: var(--slate-dark);
  line-height: 1.6;
  margin: 0;
  padding-left: 40px;
}

/* ============================================
   Focus States (Accessibility)
   ============================================ */

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

::selection {
  background: var(--amber);
  color: var(--onyx);
}
