/* ORCA Landing Page Styles - Redesign 2024-10-14
 * Direction: DESIGN.md
 * Dials: ENERGY 2 / RHYTHM 2 / MOTION 2
 * Fonts: Manrope (primary), Sora (headings)
 * Palette: Teal #0E7C7B (ORCA brand), Navy #0A1628 (dark bg), White/Slate (light)
 */

:root {
  --orca-teal: #0e7c7b;
  --orca-teal-dark: #0a5f5e;
  --navy-dark: #0a1628;
  --navy-overlay: rgba(10, 22, 40, 0.85);
  --amber-warm: #f59e0b;
  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --text-dark: var(--slate-900);
  --text-muted: var(--slate-500);
  --border: var(--slate-200);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --easing: cubic-bezier(0.32, 0.72, 0, 1);
  --header-h: 6.5rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--orca-teal);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: top 200ms var(--easing);
}

.skip-link:focus {
  top: 1rem;
}

/* Header — default transparent over dark hero, solid white when scrolled */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 5vw;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition: background-color 300ms var(--easing), border-color 300ms var(--easing), box-shadow 300ms var(--easing), backdrop-filter 300ms var(--easing);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: clamp(9rem, 14vw, 12rem);
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter 300ms var(--easing);
}

.site-header.is-scrolled .brand-logo {
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav a {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: all 200ms var(--easing);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.site-header.is-scrolled .site-nav a {
  color: var(--text-muted);
}

.site-header.is-scrolled .site-nav a:hover {
  background: var(--slate-100);
  color: var(--text-dark);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--orca-teal);
  outline-offset: 2px;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: none;
  transition: all 200ms var(--easing);
}

.site-header.is-scrolled .menu-toggle {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: all 220ms var(--easing);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.42rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.42rem) rotate(-45deg);
}

/* Hero Section - New with Photo Background */
.hero-new {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../img/backgroud.jpg') center center / cover no-repeat;
}

.hero-bg-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy-overlay) 0%, rgba(10, 22, 40, 0.7) 50%, rgba(10, 22, 40, 0.5) 100%);
}

.hero-content-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  max-width: 42rem;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orca-teal);
}

.hero-new h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 12ch;
}

.hero-intro {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--slate-100);
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  transition: all 220ms var(--easing);
  border: none;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--orca-teal);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--orca-teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(14, 124, 123, 0.3);
}

.btn-primary:hover {
  background: var(--orca-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 124, 123, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* WhatsApp Chat Mockup */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: min(22rem, 90vw);
  padding: 0.75rem;
  border-radius: 2.5rem;
  background: linear-gradient(145deg, #1f2937, #111827);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  border-radius: 2rem;
  overflow: hidden;
  background: #e5ddd5;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #075e54;
  color: white;
}

.wa-back {
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.wa-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: white;
  color: #075e54;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-contact {
  flex: 1;
}

.wa-name {
  font-size: 1rem;
  font-weight: 600;
}

.wa-status {
  font-size: 0.8125rem;
  opacity: 0.9;
}

.wa-chat {
  padding: 1rem;
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #efeae2;
}

.wa-bubble {
  max-width: 80%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  position: relative;
}

.wa-bubble-in {
  align-self: flex-start;
  background: white;
  border-radius: 0 0.5rem 0.5rem 0.5rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.wa-bubble-out {
  align-self: flex-end;
  background: #dcf8c6;
  border-radius: 0.5rem 0 0.5rem 0.5rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.wa-text {
  word-wrap: break-word;
}

.wa-time {
  font-size: 0.6875rem;
  color: var(--slate-500);
  text-align: right;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.wa-check {
  color: #34b7f1;
  font-size: 0.75rem;
}

.wa-intent-label {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber-warm);
  background: rgba(245, 158, 11, 0.1);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.intent-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--amber-warm);
  flex-shrink: 0;
}

/* Proof Bar */
.proof-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 5vw;
  background: var(--navy-dark);
  color: white;
}

.proof-item {
  font-size: 0.875rem;
  font-weight: 600;
}

.proof-divider {
  color: var(--orca-teal);
  opacity: 0.6;
}

/* Section Layout */
.section {
  padding: 5rem 5vw;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.section-light {
  background: var(--slate-50);
}

.section-white {
  background: var(--white);
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-heading p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* How It Works - Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  text-align: left;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--orca-teal);
  color: white;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Features */
.feature-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card-new {
  padding: 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 300ms var(--easing);
}

.feature-card-new:hover {
  border-color: var(--orca-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card-new:focus-within {
  border-color: var(--orca-teal);
  box-shadow: var(--shadow-md);
}

.feature-card-new h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--orca-teal);
}

.feature-card-new p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Personas */
.section-personas {
  background: var(--slate-50);
}

.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.persona-card {
  padding: 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-align: center;
  transition: all 300ms var(--easing);
}

.persona-card:hover {
  border-color: var(--orca-teal);
  box-shadow: var(--shadow-md);
}

.persona-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--orca-teal);
  color: white;
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.persona-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.persona-tenant {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orca-teal);
  margin-bottom: 0.75rem;
}

.persona-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Tagline Section */
.section-tagline {
  background: var(--navy-dark);
  padding: 5rem 5vw;
  text-align: center;
}

.tagline-wrap {
  max-width: 48rem;
  margin: 0 auto;
}

.tagline-text {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--white);
  font-family: "Sora", sans-serif;
}

.tagline-break {
  color: var(--orca-teal);
}

.tagline-word {
  display: inline-block;
  opacity: 0.3;
  transition: opacity 0.8s var(--easing);
}

.tagline-word.is-active {
  opacity: 1;
}

/* CTA Section */
.section-cta {
  background: white;
  padding: 5rem 5vw;
}

.cta-card-new {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--slate-50);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.cta-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 32rem;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: var(--slate-300);
  padding: 3rem 5vw 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--slate-500);
  padding: 0.25rem 0;
  transition: color 200ms var(--easing);
}

.footer-col a:hover {
  color: var(--orca-teal);
}

.footer-col a:focus-visible {
  outline: 2px solid var(--orca-teal);
  outline-offset: 2px;
}

.footer-logo {
  width: 8rem;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* Legal Pages */
.legal-page {
  padding: 4rem 5vw;
  background: white;
  min-height: 70vh;
}

.legal-container {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-container h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.legal-notice {
  padding: 0.75rem 1rem;
  background: var(--slate-100);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-container h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-container p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-700);
  margin-bottom: 1rem;
}

.legal-back a {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
  color: var(--orca-teal);
}

.legal-back a:hover {
  color: var(--orca-teal-dark);
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  transition: opacity 700ms var(--easing), transform 700ms var(--easing);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
  }

  .hero-new h1 {
    max-width: 100%;
  }

  .feature-grid-new,
  .steps-grid,
  .personas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .brand {
    position: relative;
    z-index: 2;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 2;
  }

  /* Prevent backdrop-filter from creating a containing block for the fixed nav overlay */
  .site-header,
  .site-header.is-scrolled {
    backdrop-filter: none;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    padding: 5rem 2rem 2rem;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 300ms var(--easing), transform 400ms var(--easing);
  }

  .site-header.is-scrolled .site-nav {
    background: rgba(255, 255, 255, 0.97);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.75rem 1rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .site-header.is-scrolled .site-nav a {
    color: var(--text-muted);
  }

  .site-header.is-scrolled .site-nav a:hover {
    background: var(--slate-100);
    color: var(--text-dark);
  }

  .hero-new {
    min-height: auto;
  }

  .hero-content-wrap {
    padding: 2rem 5vw 3rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-mockup {
    margin-top: 1rem;
  }

  .proof-bar {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 5vw;
  }

  .proof-divider {
    display: none;
  }

  .feature-grid-new,
  .steps-grid,
  .personas-grid {
    grid-template-columns: 1fr;
  }

  .cta-card-new {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .cta-card-new .btn {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 5vw;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    width: 7rem;
  }

  .hero-new h1 {
    font-size: 2.25rem;
  }

  .phone-frame {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
