/* ============================================================
   POURDIRECTION — MARKETING SITE
   styles.css
   ============================================================ */

/* ------------------------------------------------------------
   CSS VARIABLES — Edit brand colors and fonts here
   ------------------------------------------------------------ */
:root {
  /* Brand colors */
  --accent: #1A9F86;
  --accent-light: #22c4a5;
  --accent-dim: rgba(26, 159, 134, 0.15);
  --accent-glow: rgba(26, 159, 134, 0.35);

  /* Backgrounds */
  --bg-base: #060a09;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-hover: rgba(255, 255, 255, 0.07);
  --bg-border: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary: #f0f4f3;
  --text-secondary: rgba(240, 244, 243, 0.55);
  --text-muted: rgba(240, 244, 243, 0.3);

  /* Spacing */
  --section-padding: 120px;
  --container-width: 1100px;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background: #080c0b;
  background-attachment: fixed;
}

img {
  display: block;
  max-width: 100%;
}

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

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

/* ------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------ */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 48px;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  cursor: pointer;
  border: none;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), opacity 0.18s, color 0.18s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0px);
  background: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: rgba(240, 244, 243, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.22);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
  background: var(--accent);
  color: #fff;
}

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

.btn-large {
  padding: 15px 40px;
  font-size: 16px;
}

.btn-play-icon {
  font-size: 9px;
  opacity: 0.6;
}

/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(6, 10, 9, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--bg-border);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}


.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  height: 28px;
  width: auto;
}

.nav-logo-wordmark {
  height: 18px;
  width: auto;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: center;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Right side: download btn + hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

/* Hamburger button — mobile only */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid transparent;
  background: rgba(6, 10, 9, 0.97);
  backdrop-filter: blur(24px);
}

.nav-drawer.open {
  max-height: 320px;
  border-top-color: var(--bg-border);
}

.nav-drawer-links {
  list-style: none;
  margin: 0;
  padding: 12px 0 20px;
}

.nav-drawer-link {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 14px 24px;
  transition: color 0.2s, background 0.2s;
}

.nav-drawer-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

@media (max-width: 860px) {
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links { display: none; }
  .nav-right .btn-sm { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Subtle map/grid texture */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 0%, transparent 100%);
  pointer-events: none;
}

/* Radial glow behind hero content */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 159, 134, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
}

/* Badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(26, 159, 134, 0.35);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  white-space: nowrap;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.6;
}

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

/* iPhone mockup */
.hero-phone {
  position: absolute;
  bottom: -20px;
  right: 6%;
  z-index: 2;
  pointer-events: none;
}

.iphone {
  position: relative;
  width: 220px;
  height: 470px;
  background: #1a1a1a;
  border-radius: 44px;
  box-shadow:
    0 0 0 1px #2e2e2e,
    0 0 0 2px #141414,
    0 32px 80px rgba(0,0,0,0.7),
    inset 0 0 0 1px #333;
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px) rotate(1.5deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

/* Side buttons */
.iphone-btn {
  position: absolute;
  background: #2a2a2a;
  border-radius: 2px;
}

.iphone-btn--vol-up {
  left: -3px;
  top: 100px;
  width: 3px;
  height: 28px;
}

.iphone-btn--vol-down {
  left: -3px;
  top: 138px;
  width: 3px;
  height: 28px;
}

.iphone-btn--power {
  right: -3px;
  top: 115px;
  width: 3px;
  height: 52px;
}

/* Screen area */
.iphone-screen {
  position: absolute;
  inset: 6px;
  border-radius: 38px;
  overflow: hidden;
  background: #000;
}

/* Dynamic Island */
.iphone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

/* App screenshot fills the screen */
.iphone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ------------------------------------------------------------
   FEATURES
   ------------------------------------------------------------ */
.features {
  padding: var(--section-padding) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.feature-card {
  --card-accent: #1A9F86;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px 20px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  cursor: default;
}

.feature-card:hover {
  background: rgba(255,255,255,0.055);
  border-color: color-mix(in srgb, var(--card-accent) 30%, transparent);
  transform: translateY(-3px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: color-mix(in srgb, var(--card-accent) 15%, transparent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--card-accent);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   SCREENSHOTS
   ------------------------------------------------------------ */
.screenshots {
  padding: var(--section-padding) 0;
}

/* Stacked app screen rows */
.app-showcase {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.app-row {
  display: flex;
  flex-direction: row;
  gap: 56px;
  align-items: center;
}

/* Reverse: image goes to right */
.app-row--reverse {
  flex-direction: row-reverse;
}

.app-row-image {
  flex: 0 0 120px;
  width: 120px;
  overflow: hidden;
}

.app-row-image img {
  width: 120px;
  height: auto;
  display: block;
  border-radius: 16px;
}

.app-row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.app-row-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.app-row-headline {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
}

.app-row-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 440px;
}

@media (max-width: 700px) {
  .app-row,
  .app-row--reverse {
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 32px !important;
    padding-left: 0 !important;
  }

  .app-row-image {
    flex: 0 0 auto !important;
    width: 220px !important;
    align-self: center;
  }

  .app-row-image img {
    width: 220px !important;
    max-width: 220px !important;
  }

  .app-row-text {
    flex: 1 1 auto !important;
    width: 100% !important;
    text-align: center;
  }

  .app-showcase {
    gap: 64px;
  }
}

/* ------------------------------------------------------------
   HOW IT WORKS
   ------------------------------------------------------------ */
.how {
  padding: var(--section-padding) 0;
  position: relative;
}

/* Centered intro header */
.how-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 64px;
}

.how-headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 12px 0 14px;
}

.how-sub {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Steps row */
.steps {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: stretch;
  gap: 0;
}

/* Each step takes up 1fr; arrows are separate grid items */
.step {
  display: contents; /* let card + arrow each occupy their grid cell */
}

.step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  height: 100%;
  box-sizing: border-box;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(26, 159, 134, 0.3);
  transform: translateY(-4px);
}

/* Active/highlighted middle step */
.step-card--active {
  background: rgba(26, 159, 134, 0.07);
  border-color: rgba(26, 159, 134, 0.25);
}

.step-card--active:hover {
  border-color: rgba(26, 159, 134, 0.45);
}

/* Top row: number chip + icon side by side */
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.step-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(26, 159, 134, 0.12);
  border: 1px solid rgba(26, 159, 134, 0.2);
  border-radius: 100px;
  padding: 4px 10px;
}

.step-icon {
  width: 40px;
  height: 40px;
  background: rgba(26, 159, 134, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.step-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Arrow between steps — sits in its own 40px column, vertically centered */
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

/* ------------------------------------------------------------
   CTA SECTION
   ------------------------------------------------------------ */
.cta-section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(26, 159, 134, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-logo {
  height: 56px;
  width: auto;
  margin-bottom: 32px;
}

.cta-headline {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-sub {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--bg-border), transparent);
  margin: 40px 0;
}

/* Email capture */
.email-capture {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.email-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

.email-form {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.email-form .btn {
  padding: 0 20px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.email-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  padding: 12px 16px;
  min-width: 0;
  transition: border-color 0.2s;
}

.email-input:focus {
  border-color: rgba(26, 159, 134, 0.5);
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-thanks {
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 500;
  display: none;
  animation: fadeInUp 0.4s var(--ease);
}

.email-thanks.visible {
  display: block;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  padding: 72px 24px 56px;
  border-top: 1px solid var(--bg-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.7;
}

.footer-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 8px 0 4px;
}

.footer-social-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 8px 14px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social-link:hover {
  color: var(--accent);
  border-color: rgba(26,159,134,0.3);
  background: rgba(26,159,134,0.06);
}

/* ------------------------------------------------------------
   ANIMATIONS
   ------------------------------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

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

/* ------------------------------------------------------------
   RESPONSIVE — TABLET
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  :root {
    --section-padding: 80px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-arrow {
    padding-top: 0;
    transform: rotate(90deg);
  }


  .hero-phone {
    display: none;
  }
}

/* ------------------------------------------------------------
   RESPONSIVE — MOBILE
   ------------------------------------------------------------ */
@media (max-width: 560px) {
  :root {
    --section-padding: 64px;
  }

  .hero {
    min-height: auto;
    padding: 180px 24px 60px;
    justify-content: flex-start;
    align-items: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-badge {
    margin: 0 auto 20px;
  }

  .hero-headline {
    white-space: normal;
    font-size: clamp(32px, 9vw, 52px);
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 20px 16px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .email-form {
    flex-direction: column;
    gap: 10px;
  }

  .email-input {
    font-size: 16px; /* prevent iOS zoom */
    width: 100%;
  }

  .email-form .btn {
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
  }

  .section-headline {
    margin-bottom: 40px;
  }
}
