/* ======================================================
   Transform With Toska — Waitlist Landing Page
   Design System & Styles
   ====================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* --- Custom Properties --- */
:root {
  /* Brand Colors */
  --teal-deep:    #0d7377;
  --teal-mid:     #14919b;
  --teal-light:   #80cbc4;
  --teal-pale:    #e0f2f1;
  --teal-ghost:   #f0fafa;

  --navy-dark:    #0a192f;
  --navy-mid:     #112240;

  --gold-warm:    #c9a84c;
  --gold-soft:    #e8d5a3;

  --white:        #ffffff;
  --off-white:    #fafcfc;
  --text-dark:    #1a2a3a;
  --text-body:    #3a4a5a;
  --text-muted:   #7a8a9a;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-soft:  0 4px 20px rgba(13, 115, 119, 0.08);
  --shadow-card:  0 8px 32px rgba(13, 115, 119, 0.12);
  --shadow-glow:  0 0 40px rgba(13, 115, 119, 0.25);

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --duration:  0.6s;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--off-white);
  overflow-x: hidden;
  min-width: 320px;
}

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

a {
  color: var(--teal-deep);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--teal-mid);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
}

p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  max-width: 65ch;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: var(--space-sm);
}

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

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

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
  animation: autoReveal 0s 3s forwards;
}

@keyframes autoReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   HERO SECTION
   ====================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d7377 0%, #0f5e61 30%, #0a192f 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('hero-bg.png') center / cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(13, 115, 119, 0.3) 0%, transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-md) var(--space-lg);
  max-width: 800px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* --- Logo Styles --- */
.hero-logo {
  display: block;
  margin: 0 auto var(--space-md);
  max-width: 450px;
  width: 90%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 1s var(--ease-out) 0.2s both;
}

.footer-logo {
  display: block;
  margin: 0 auto;
  max-width: 160px;
  height: auto;
  border-radius: var(--radius-sm);
  opacity: 0.85;
}

.hero h1 .butterfly-emoji {
  display: inline-block;
  animation: flutter 3s ease-in-out infinite;
}

@keyframes flutter {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(3deg); }
  75% { transform: translateY(2px) rotate(-2deg); }
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 300;
  max-width: 550px;
  margin: 0 auto var(--space-md);
  line-height: 1.6;
}

/* --- Social Proof Stats --- */
.social-proof {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Waitlist Form --- */
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
  overflow: visible;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
              0 0 60px rgba(13, 115, 119, 0.15);
  transition: box-shadow 0.3s ease;
}

.waitlist-form input[type="email"] {
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.95);
  min-width: 0;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.waitlist-form button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-mid) 100%);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.waitlist-form:focus-within {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
              0 0 80px rgba(13, 115, 119, 0.3);
}

.waitlist-form button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-mid) 0%, #17a2ad 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.waitlist-form button:hover::before {
  opacity: 1;
}

.waitlist-form button span {
  position: relative;
  z-index: 1;
}

.form-success {
  display: none;
  text-align: center;
  color: var(--white);
  animation: fadeInUp 0.6s var(--ease-out);
}

.form-success.show {
  display: block;
}

.form-success .success-butterfly {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-sm);
  animation: flutter 2s ease-in-out infinite;
}

.form-success h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

.form-success p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto;
}

/* --- Consent Checkbox --- */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.4rem 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  order: 10;
}

.consent-label a {
  color: var(--teal-light);
  text-decoration: underline;
}

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

.consent-check {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--teal-deep);
  cursor: pointer;
}

/* Consent in light sections */
.final-cta .consent-label {
  color: var(--text-muted);
}

.final-cta .consent-label a {
  color: var(--teal-deep);
}

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

/* --- Floating Butterflies (Hero) --- */
.butterfly-float {
  position: absolute;
  z-index: 1;
  opacity: 0.15;
  pointer-events: none;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.15;
  }
  90% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  animation: bobDown 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bobDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ======================================================
   PILLARS SECTION
   ====================================================== */
.pillars {
  background: var(--off-white);
}

.pillars .section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.pillars .section-header h2 {
  margin-bottom: var(--space-sm);
}

.pillars .section-header p {
  color: var(--text-muted);
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(13, 115, 119, 0.06);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-mid));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.pillar-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--text-dark);
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 auto;
}

/* ======================================================
   ABOUT / STORY SECTION
   ====================================================== */
.about {
  background: linear-gradient(180deg, var(--teal-ghost) 0%, var(--off-white) 100%);
  position: relative;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image-frame {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--teal-deep), var(--navy-dark));
  box-shadow: var(--shadow-card);
}

.about-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 25, 47, 0.6) 100%);
}

.about-image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
}

.about-image-inner .large-butterfly {
  font-size: 5rem;
  opacity: 0.3;
  animation: flutter 4s ease-in-out infinite;
}

.about-image-inner .tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255 ,255, 255, 0.7);
  font-size: 1.1rem;
  margin-top: var(--space-sm);
  text-align: center;
}

.about-text .section-label {
  margin-bottom: var(--space-sm);
}

.about-text h2 {
  margin-bottom: var(--space-md);
}

.about-text p {
  margin-bottom: var(--space-md);
  color: var(--text-body);
}

.about-text blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--teal-deep);
  padding-left: var(--space-md);
  border-left: 3px solid var(--teal-light);
  margin: var(--space-lg) 0;
  line-height: 1.6;
}

/* ======================================================
   TESTIMONIALS / COMMUNITY
   ====================================================== */
.community {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #0f3a3d 100%);
  position: relative;
  overflow: hidden;
}

.community::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('hero-bg.png') center / cover no-repeat;
  opacity: 0.08;
}

.community .section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.community .section-header .section-label {
  color: var(--teal-light);
}

.community .section-header h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.community .section-header p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform 0.4s var(--ease-out), background 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--teal-light);
  line-height: 1;
  opacity: 0.5;
  margin-bottom: var(--space-xs);
}

.testimonial-card p {
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.testimonial-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal-light);
}

/* ======================================================
   FINAL CTA SECTION
   ====================================================== */
.final-cta {
  background: var(--off-white);
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-3xl);
  position: relative;
}

.final-cta h2 {
  margin-bottom: var(--space-sm);
  text-align: center;
}

.final-cta .section-label {
  display: block;
  text-align: center;
}

.final-cta .section-divider {
  margin: 0 auto var(--space-sm);
}

.final-cta > .container p {
  color: var(--text-muted);
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.final-cta .waitlist-form {
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.final-cta .waitlist-form:focus-within {
  box-shadow: none;
}

.final-cta .waitlist-form input[type="email"] {
  background: var(--white);
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  box-shadow: -4px 0 16px rgba(13, 115, 119, 0.08),
              0 4px 16px rgba(13, 115, 119, 0.08);
}

.final-cta .waitlist-form button {
  box-shadow: 4px 0 16px rgba(13, 115, 119, 0.08),
              0 4px 16px rgba(13, 115, 119, 0.08);
}

.final-cta .consent-label {
  background: transparent;
  color: var(--text-muted);
  padding-top: 0.8rem;
}

.privacy-note {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
}

.privacy-note svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: var(--navy-dark);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.footer-brand span {
  margin-left: 0.3rem;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--teal-light);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}

.footer-privacy-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  font-size: 0.8rem;
}

.footer-privacy-link:hover {
  color: var(--teal-light);
}

/* ======================================================
   UTILITIES & GLOBAL ANIMATIONS
   ====================================================== */

/* Glowing pulse for CTA */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(13, 115, 119, 0.2); }
  50% { box-shadow: 0 0 40px rgba(13, 115, 119, 0.4); }
}

/* Divider */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-light));
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-lg);
}

/* === Responsive Fine-tuning === */
@media (max-width: 600px) {
  .hero-content {
    padding: var(--space-md);
  }

  .social-proof {
    gap: var(--space-md);
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .waitlist-form {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .waitlist-form input[type="email"] {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    text-align: center;
  }

  .waitlist-form button {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 1rem;
  }

  .final-cta .waitlist-form {
    position: relative;
    box-shadow: none;
    background: transparent;
    overflow: visible;
    border-radius: 0;
  }

  .final-cta .waitlist-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* Cover only the email input + button, not the consent label */
    height: calc(100% - 2rem);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    z-index: 0;
    pointer-events: none;
  }

  .final-cta .waitlist-form input[type="email"],
  .final-cta .waitlist-form button {
    position: relative;
    z-index: 1;
    box-shadow: none;
  }

  .final-cta .consent-label {
    position: relative;
    z-index: 1;
  }

  .about-image-frame {
    max-width: 280px;
  }

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

@media (max-width: 768px) {
  .about-inner {
    text-align: center;
  }

  .about-text blockquote {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--teal-light);
    padding-top: var(--space-md);
  }

  .about-text p {
    margin-left: auto;
    margin-right: auto;
  }
}
