/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
  /* Colors */
  --bg-primary: #0D0D12;
  --bg-secondary: #141416;
  --bg-elevated: #1C252E;
  --green: #00A76F;
  --green-light: #6BD893;
  --white: #FCFCFD;
  --white-pure: #FFFFFF;
  --gray: #7E8596;
  --gray-light: #B1B5C3;
  --gray-mid: #666D80;
  --border: #353945;
  --surface: #23262F;

  /* Fonts */
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Poppins', sans-serif;
  --font-action: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  padding: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--green);
  color: white;
  padding: 8px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, .hero-title {
  font-family: var(--font-heading);
  font-size: 64px;
  line-height: 74px;
  letter-spacing: 0px;
  color: var(--white);
}

.hero-title {
  opacity: 1 !important;
  transform: none !important;
}

.line-wrap {
  display: block;
  overflow: hidden;
}

.line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.in-view .line-wrap:nth-child(1) .line-inner {
  transition-delay: 0.1s;
}

.in-view .line-wrap:nth-child(2) .line-inner {
  transition-delay: 0.25s;
}

.in-view .line-inner {
  transform: translateY(0);
}

h2, .h2, .privacy-title {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -2px;
  color: var(--white);
}

.eyebrow {
  font-family: var(--font-action);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--gray-light);
  margin-top: 24px;
}

.accent {
  color: var(--green);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-action);
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--green-light);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--gray-light);
}

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  background: var(--green);
  color: var(--white-pure);
  border-radius: 8px;
}

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

/* ==========================================================================
   Layout Architecture
   ========================================================================== */
.page-wrap {
  background: var(--bg-primary);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 96px;
  background: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.header--scrolled {
  background: rgba(13, 13, 18, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

button.header-link {
  font-family: var(--font-action);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}

button.header-link:hover {
  color: var(--green);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('hero-bg.jpg') center center / 85% no-repeat;
  opacity: 0.12;
  mix-blend-mode: luminosity;
  z-index: 1;
  animation: heroBgBreathe 30s linear infinite alternate;
  transform-origin: center center;
  will-change: transform;
}

@keyframes heroBgBreathe {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(2%, -2%); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-primary) 10%, transparent 25%, transparent 75%, var(--bg-primary) 90%, var(--bg-primary) 100%),
    linear-gradient(to right, var(--bg-primary) 0%, var(--bg-primary) 7%, transparent 20%, transparent 80%, var(--bg-primary) 93%, var(--bg-primary) 100%);
  z-index: 2;
}

.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 60px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  z-index: 5;
}

.hero-content {
  max-width: 480px;
  position: relative;
  z-index: 5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.hero-product {
  position: relative;
  right: -60px;
  width: 55%;
  flex-shrink: 0;
  z-index: 5;
}

.hero-product-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.4));
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--green);
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { 
    transform: translateX(-50%) translateY(0); 
    opacity: 0.5; 
    border-color: rgba(0,167,111,0.3); 
  }
  50% { 
    transform: translateX(-50%) translateY(10px); 
    opacity: 1; 
    border-color: rgba(0,167,111,1); 
  }
}

/* ==========================================================================
   Privacy Section
   ========================================================================== */
.privacy {
  background: var(--bg-secondary);
  position: relative;
  z-index: 5;
}

.privacy-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 200px 60px;
  text-align: center;
}

.privacy-header {
  margin-bottom: 80px;
}

.privacy-title {
  margin-bottom: 16px;
}

.privacy-principles {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.principle {
  flex: 1;
}

.principle h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 16px;
}

.principle p {
  color: var(--gray-light);
  line-height: 1.6;
}

.principle-divider {
  width: 1px;
  background: var(--green);
  opacity: 0.3;
  align-self: stretch;
}

/* ==========================================================================
   Launch Section
   ========================================================================== */
.launch {
  background: #000000;
  display: flex;
  min-height: 600px;
  position: relative;
  z-index: 5;
}

.launch-image {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}

.launch-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.launch-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.launch-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  max-width: 720px;
}

.launch-title {
  margin-bottom: 24px;
}

.launch-email {
  display: inline-block;
  font-size: 22px;
  color: var(--green);
  font-family: var(--font-action);
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 32px;
}

/* ==========================================================================
   Privacy Modal
   ========================================================================== */
.privacy-modal {
  position: fixed;
  margin: auto;
  max-width: 640px;
  width: 90vw;
  max-height: 80vh;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  color: var(--white);
  overflow-y: auto;
}

.privacy-modal::backdrop {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.privacy-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.privacy-modal h3 {
  font-family: var(--font-action);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
  margin-top: 32px;
  color: var(--white);
}

.privacy-modal-title {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--white);
}

.privacy-modal p {
  color: var(--gray-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.privacy-modal-note a {
  color: var(--green);
  text-decoration: none;
}

.privacy-modal-close {
  background: var(--surface);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.privacy-modal-close:hover {
  background: var(--border);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-primary);
  position: relative;
  z-index: 5;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo svg {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer-logo:hover svg {
  opacity: 1;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-privacy-btn {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white);
}

.footer-privacy-btn:hover {
  color: var(--green);
}

.footer-copy {
  font-size: 12px;
  color: var(--gray-mid);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.hero-product {
  opacity: 0;
  transform: translateY(64px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.launch-image {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-product.in-view {
  opacity: 1;
  transform: translateY(0);
}

.launch-image.in-view {
  opacity: 1;
}

/* Stagger Text & Element Containers */
.hero-content > *,
.platform-intro > *,
.flow-step > *,
.privacy-header > *,
.privacy-principles > *,
.launch-content > * {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content.in-view > *,
.platform-intro.in-view > *,
.flow-step.in-view > *,
.privacy-header.in-view > *,
.privacy-principles.in-view > *,
.launch-content.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.in-view > *:nth-child(1) { transition-delay: 0.1s; }
.in-view > *:nth-child(2) { transition-delay: 0.25s; }
.in-view > *:nth-child(3) { transition-delay: 0.4s; }
.in-view > *:nth-child(4) { transition-delay: 0.55s; }
.in-view > *:nth-child(5) { transition-delay: 0.7s; }

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

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .header-inner,
  .hero-inner,
  .privacy-inner,
  .footer-inner {
    padding-left: 40px;
    padding-right: 40px;
  }

  h1, .hero-title {
    font-size: 48px;
    line-height: 56px;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
    flex-direction: column-reverse;
    align-items: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-product {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 60px;
  }

  .scroll-indicator {
    display: none;
  }

  .privacy-inner {
    padding: 120px 40px;
  }

  .launch {
    flex-direction: column;
  }

  .launch-image {
    flex: none;
    width: 100%;
    height: 300px;
  }

  .launch-content {
    padding: 60px 40px;
    max-width: 100%;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .header-inner,
  .hero-inner,
  .privacy-inner,
  .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1, .hero-title {
    font-size: 42px;
    line-height: 50px;
  }

  h2, .h2, .privacy-title, .launch-title {
    font-size: 36px;
    line-height: 44px;
  }

  .hero-content,
  .privacy-header,
  .launch-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    font-size: 16px;
    line-height: 24px;
  }

  .header-link {
    display: none;
  }

  .hero-inner {
    padding-top: 100px;
    padding-bottom: 60px;
    flex-direction: column-reverse;
  }

  .hero-product {
    max-width: 100%;
    margin: 0 auto 40px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .privacy-inner {
    padding: 80px 20px;
  }

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

  .principle-divider {
    display: none;
  }

  .launch-image {
    height: 280px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    align-items: center;
    justify-content: center;
  }

  .footer-right {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .launch-image {
    height: 280px;
  }

  .launch-image-overlay {
    display: none;
  }

  .launch-content {
    padding: 60px 20px;
    background: #000000;
  }

}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .hero-content, 
  .hero-product, 
  .privacy-header, 
  .privacy-principles, 
  .launch-content, 
  .launch-image {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .scroll-indicator {
    animation: none;
  }
}
