/* ============================================
   Floada — Scandinavian Minimalist Design
   ============================================ */

/* --- Local Font Faces --- */
@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/zen-kaku-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/zen-kaku-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/zen-kaku-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/zen-kaku-900.woff2') format('woff2');
}

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

:root {
  --white: #ffffff;
  --off-white: #f9f8f5;
  --warm-gray-100: #eae9e6;
  --warm-gray-200: #d5d4d1;
  --warm-gray-400: #9c9c9a;
  --warm-gray-600: #6b6b69;
  --warm-gray-800: #3a3a38;
  --black: #0b0b0a;
  --soft-black: #0D0D12;
  --accent: #9689A4;

  --font: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1360px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 20px;
  --border-light: 1px solid var(--warm-gray-100);
}

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

body {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--warm-gray-600);
  background: var(--white);
  overflow-x: hidden;
}

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

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

strong {
  font-weight: 700;
  color: var(--warm-gray-800);
}

::selection {
  background: var(--black);
  color: var(--white);
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* --- Typography --- */
h1, h2, h3 {
  font-weight: 900;
  color: var(--black);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3.25rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

p {
  max-width: 560px;
}

.text-large {
  font-size: 1.25rem;
  line-height: 1.8;
}

.center-block .text-large + .text-large {
  margin-top: 0.25rem;
}

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

/* --- Labels --- */
.label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.9375rem 2.25rem 1.0625rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background: var(--warm-gray-800);
  border-color: var(--warm-gray-800);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--warm-gray-200);
}

.btn-outline:hover {
  border-color: var(--black);
}

.btn-outline-white {
  background: var(--white);
  color: var(--black);
  border-color: var(--warm-gray-200);
}

.btn-outline-white:hover {
  border-color: var(--black);
}

.btn-sm {
  padding: 0.6875rem 1.5rem 0.8125rem;
  font-size: 0.9375rem;
}

.btn-arrow {
  transition: transform var(--transition);
  display: inline-block;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(20px);
  border-bottom: var(--border-light);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 28px;
  transition: opacity var(--transition);
}

.nav-logo:hover img {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
  margin-right: 2rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: #4a4a48;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--black);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-link-muted {
  color: var(--warm-gray-400) !important;
}

/* --- Nav Dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: #4a4a48;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
  position: relative;
}

.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-dropdown-toggle:hover {
  color: var(--black);
}

.nav-dropdown-toggle:hover::after {
  width: 100%;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--warm-gray-100);
  border-radius: 12px;
  padding: 0.5rem 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 110;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-toggle:focus + .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--warm-gray-600);
  transition: color var(--transition), background var(--transition);
}

.nav-dropdown-menu a:hover {
  color: var(--black);
  background: var(--off-white);
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: all var(--transition);
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-bottom: 5.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--warm-gray-600);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--black);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-cta {
  margin-top: 1rem;
}

.mobile-menu-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-gray-400);
  margin-top: 1rem;
}

.mobile-menu-sub {
  font-size: 1.25rem !important;
  color: var(--warm-gray-400) !important;
}

.mobile-menu-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-menu-legal a {
  font-size: 0.875rem !important;
  color: var(--warm-gray-400) !important;
  font-weight: 400;
}

.mobile-menu-legal-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--warm-gray-200);
  flex-shrink: 0;
}

/* --- Hero --- */
.hero {
  padding: 18rem 0 10rem;
  background: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 40%, rgba(150, 137, 164, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(150, 137, 164, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 80%, rgba(150, 137, 164, 0.05) 0%, transparent 50%);
  animation: heroGradient 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroGradient {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  33% {
    transform: scale(1.1) translate(2%, -1%);
    opacity: 0.8;
  }
  66% {
    transform: scale(0.95) translate(-1%, 2%);
    opacity: 1;
  }
  100% {
    transform: scale(1.05) translate(1%, -1%);
    opacity: 0.9;
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-bottom: 1.75rem;
}

.hero-title-muted {
  color: var(--warm-gray-600);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.75rem;
  max-width: 520px;
  line-height: 1.8;
}

.hero-image {
  animation: heroFloat 6s ease-in-out infinite;
  perspective: 1000px;
}

/* Browser Frame */
.browser-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.10), 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 0.5px solid var(--warm-gray-200);
  background: var(--white);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.browser-frame:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--off-white);
  border-bottom: 1px solid var(--warm-gray-100);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm-gray-200);
}

.browser-dot:first-child { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--warm-gray-400);
  background: var(--white);
  padding: 4px 12px;
  border-radius: 6px;
  flex: 1;
  max-width: 200px;
}

.browser-frame-body {
  background: var(--white);
}

/* Hero Chart styles → components/hero-chart/hero-chart.css */

/* --- Trust Bar --- */
.trust-bar {
  padding: 2.5rem 0;
  border-bottom: var(--border-light);
  text-align: center;
}

.trust-text {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--warm-gray-400);
  max-width: none;
  letter-spacing: 0.01em;
}

/* --- Benefit Cards --- */
.benefit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 4rem auto 0;
}

.benefit-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border: var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.benefit-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  border-color: rgba(150, 137, 164, 0.2);
  transform: translateY(-4px);
}

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

.benefit-icon {
  margin-bottom: 1.25rem;
}

.benefit-icon svg {
  opacity: 0.7;
}

.benefit-number {
  display: block;
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.benefit-desc {
  font-size: 0.9375rem;
  color: var(--warm-gray-400);
  max-width: none;
  line-height: 1.5;
}

/* --- Dot Grid Pattern (decorative) --- */
.dot-grid-accent {
  position: relative;
}

.dot-grid-accent::before {
  content: '';
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

/* --- Sections --- */
.section {
  padding: 11.5rem 0;
}

.section-about {
  padding: 13.8rem 0;
}

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

.section-dark {
  background: var(--soft-black);
  position: relative;
  overflow: hidden;
}

/* Subtle grid overlay for depth (Vercel-inspired) */
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(150, 137, 164, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 137, 164, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Radial accent glow behind content */
.dark-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 65%;
  background: radial-gradient(ellipse 65% 55% at 50% 25%, rgba(150, 137, 164, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-dark .container {
  padding-left: 5rem;
  padding-right: 5rem;
  position: relative;
  z-index: 1;
}

/* --- Shared Content Block Spacing --- */
.split-text h2,
.stacked-header h2,
.center-block h2 {
  margin-bottom: 1.75rem;
}

.split-text p,
.stacked-header p {
  margin-bottom: 1.125rem;
}

.split-text .btn,
.stacked-header .btn {
  margin-top: 2.25rem;
}

/* --- Split Layout --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.split-image img {
  border-radius: var(--radius);
  width: 100%;
  max-width: none;
  border: var(--border-light);
}

/* --- Stacked Block (Enterprise) --- */
.stacked-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stacked-header {
  max-width: 600px;
  margin-bottom: 5rem;
}

.stacked-header p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Integrations Row --- */
.integrations-row {
  margin-top: 5.875rem;
  text-align: center;
  width: 100%;
}

.integrations-label {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--warm-gray-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.475rem;
  max-width: none;
}

.integrations-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.95rem;
}

.integration-logo {
  opacity: 0.55;
  transition: opacity var(--transition);
}

.integration-logo:hover {
  opacity: 0.85;
}

.integration-logo img {
  height: 31px;
  width: auto;
}

.integrations-compliance {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--warm-gray-400);
  letter-spacing: 0.02em;
  margin-top: 4rem;
  margin-bottom: -1.25rem;
  max-width: none;
}

/* Platform Showcase styles → components/platform-showcase/platform-showcase.css */

/* --- Center Block --- */
.center-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 6rem;
}

.center-block:last-child {
  margin-bottom: 0;
}

.center-block-right {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

.center-block p {
  margin: 0 auto 2.25rem;
  max-width: 600px;
}

.center-block-right .dark-subtitle {
  margin: 0 0 2.25rem auto;
}

/* --- Dark section label + subtitle --- */
.label-dark {
  color: var(--accent);
  opacity: 0.85;
}

.dark-subtitle {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.0625rem;
  max-width: none;
  margin-left: auto;
  margin-right: 0;
  line-height: 1.6;
  text-align: right;
}

/* --- Steps Flow (How It Works) — vertical alternating --- */
.steps-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 2rem;
  position: relative;
}

.step-row {
  display: flex;
  width: 100%;
}

.step-row-left {
  justify-content: flex-start;
}

.step-row-right {
  justify-content: flex-end;
}

.step-row .step-card {
  width: 52%;
}

.step-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Top accent line */
.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: width 0.5s ease;
}

.step-card:hover {
  border-color: rgba(150, 137, 164, 0.2);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 40px rgba(150, 137, 164, 0.04);
}

.step-card:hover::before {
  width: 60%;
}

.step-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.step-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(150, 137, 164, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(150, 137, 164, 0.12);
}

/* Icon container with accent background */
.step-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(150, 137, 164, 0.1);
  border: 1px solid rgba(150, 137, 164, 0.15);
  color: var(--accent);
  flex-shrink: 0;
}

.step-icon-wrap .step-icon-svg {
  width: 26px;
  height: 26px;
}

.step-card h3 {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.step-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 480px;
  line-height: 1.7;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.step-list li {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}

.step-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* --- Dotted connectors between cards (90-degree L-shaped paths) --- */
/* Lines exit from the SIDE of one card and enter the TOP of the next,
   with gaps so they never touch card borders. */
.step-connector {
  position: relative;
  height: 80px;
  width: 100%;
}

.connector-arm {
  position: absolute;
  border: none;
}

.connector-arm-h {
  height: 0;
  border-top: 1.5px dashed rgba(150, 137, 164, 0.22);
}

.connector-arm-v {
  width: 0;
  border-left: 1.5px dashed rgba(150, 137, 164, 0.22);
}

/* Small dot at the 90-degree bend and at the endpoint */
.connector-arm-v::before,
.connector-arm-v::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(150, 137, 164, 0.3);
  left: -2.5px;
}

.connector-arm-v::before {
  top: -2px;
}

.connector-arm-v::after {
  bottom: -2px;
}

/* Connector left→right: exits right side of left card, enters top of right card.
   Left card spans 0–52%. Right card spans 48–100%.
   Horizontal arm: from right edge of left card (52%) + gap → to ~65% (well inside right card)
   Vertical arm: at ~65%, from the horizontal arm down, stopping short of next card top */
.step-connector-lr .connector-arm-h {
  left: calc(52% + 16px);
  right: 35%;
  top: 18px;
}

.step-connector-lr .connector-arm-v {
  right: 35%;
  top: 18px;
  bottom: 10px;
}

/* Connector right→left: exits left side of right card, enters top of left card.
   Horizontal arm: from ~35% (well inside left card) → to left edge of right card (48%) - gap
   Vertical arm: at ~35%, from the horizontal arm down, stopping short of next card top */
.step-connector-rl .connector-arm-h {
  left: 35%;
  right: calc(52% + 16px);
  top: 18px;
}

.step-connector-rl .connector-arm-v {
  left: 35%;
  top: 18px;
  bottom: 10px;
}

/* Staggered row reveals */
.step-row.fade-in:nth-child(3) {
  transition-delay: 0.15s;
}

.step-row.fade-in:nth-child(5) {
  transition-delay: 0.3s;
}

.step-connector.fade-in {
  transition-delay: 0.1s;
}

/* Centralize: documents stacking */
.step-icon-centralize .doc {
  animation: docStack 3.5s ease-in-out infinite;
}
.step-icon-centralize .doc-1 { animation-delay: 0s; }
.step-icon-centralize .doc-2 { animation-delay: 0.15s; }
.step-icon-centralize .doc-3 { animation-delay: 0.3s; }

@keyframes docStack {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  20% { opacity: 1; transform: translateY(-3px); }
  40%, 100% { opacity: 0.4; transform: translateY(0); }
}

.step-icon-centralize .doc-line {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: lineReveal 3.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

@keyframes lineReveal {
  0%, 10% { stroke-dashoffset: 20; }
  30% { stroke-dashoffset: 0; }
  70%, 100% { stroke-dashoffset: 0; }
}

/* Compute: nodes pulsing and connecting */
.step-icon-compute .node {
  animation: nodePulse 4s ease-in-out infinite;
}
.step-icon-compute .node-1 { animation-delay: 0s; }
.step-icon-compute .node-2 { animation-delay: 0.3s; }
.step-icon-compute .node-3 { animation-delay: 0.6s; }
.step-icon-compute .node-4 { animation-delay: 0.9s; }
.step-icon-compute .node-center { animation-delay: 0.45s; }

@keyframes nodePulse {
  0%, 100% { opacity: 0.4; }
  30% { opacity: 1; }
  60% { opacity: 0.4; }
}

.step-icon-compute .edge {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: edgeConnect 4s ease-in-out infinite;
}
.step-icon-compute .edge-1 { animation-delay: 0.2s; }
.step-icon-compute .edge-2 { animation-delay: 0.5s; }
.step-icon-compute .edge-3 { animation-delay: 0.8s; }
.step-icon-compute .edge-4 { animation-delay: 1.1s; }

@keyframes edgeConnect {
  0%, 5% { stroke-dashoffset: 20; }
  25% { stroke-dashoffset: 0; }
  75% { stroke-dashoffset: 0; }
  95%, 100% { stroke-dashoffset: 20; }
}

/* Close: checkmark drawing */
.step-icon-close .check-ring {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: ringDraw 3s ease-in-out infinite;
}

@keyframes ringDraw {
  0% { stroke-dashoffset: 140; }
  40% { stroke-dashoffset: 0; }
  70% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 140; }
}

.step-icon-close .check-mark {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkDraw 3s ease-in-out infinite;
}

@keyframes checkDraw {
  0%, 35% { stroke-dashoffset: 40; }
  55% { stroke-dashoffset: 0; }
  70% { stroke-dashoffset: 0; }
  90%, 100% { stroke-dashoffset: 40; }
}

/* --- EWOR Badge --- */
.about-locations {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.about-locations span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--warm-gray-400);
  letter-spacing: 0.02em;
}

.ewor-badge {
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: var(--border-light);
}

/* --- Contact + Footer --- */
.contact-section {
  background: var(--soft-black);
  padding: 11.5rem 0 8.4rem;
}

.contact-centered {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.contact-centered h2 {
  margin-bottom: 0.75rem;
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.01em;
}

.form-group input {
  font-family: var(--font);
  font-size: 1.125rem;
  padding: 1.0625rem 1.375rem;
  border: none;
  border-radius: 14px;
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: all var(--transition);
}

.form-group input::placeholder {
  color: var(--warm-gray-400);
}

.form-group input:focus {
  box-shadow: 0 0 0 2px rgba(150, 137, 164, 0.4);
}

.btn-outline-light {
  background: var(--white);
  color: var(--black);
  border: none;
  justify-content: center;
}

.btn-outline-light:hover {
  background: var(--warm-gray-100);
}

.form-success {
  font-size: 1rem;
  color: var(--warm-gray-400);
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition);
}

.form-success.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Site Footer --- */
.site-footer {
  background: #1a1a21;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4.5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand-logo img {
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
  margin-top: 1.25rem;
  max-width: 280px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.footer-social-row a {
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.footer-social-row a:hover {
  color: var(--white);
}

.footer-ewor-link img {
  height: 27px;
  opacity: 0.3;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}

.footer-ewor-link:hover img {
  opacity: 0.7;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-link-disabled {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.18);
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: none;
}

/* --- Leakage Visual --- */
.leakage-visual {
  max-width: 640px;
  margin: 3.5rem auto 3rem;
  text-align: center;
}

.leakage-bar {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  height: 56px;
  border: 1px solid var(--warm-gray-100);
}

.leakage-bar-filled {
  flex: 91;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2rem;
}

.leakage-bar-filled span {
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.leakage-bar-lost {
  flex: 9;
  background: linear-gradient(135deg, var(--accent), #b8a5c8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.leakage-bar-lost.animate-in {
  transform: scaleX(1);
}

.leakage-bar-lost span {
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.leakage-arrow {
  margin: 0.75rem 0 0.5rem;
  opacity: 0.5;
}

.leakage-caption {
  font-size: 1.0625rem;
  color: var(--warm-gray-400);
  max-width: none;
}

/* --- Commercial Graph --- */
.commercial-graph-wrap {
  margin-top: 8rem;
  margin-bottom: 0;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.commercial-graph-svg {
  width: 100%;
  height: auto;
  border: none;
  background: transparent;
  overflow: visible;
}

.cg-node rect {
  transition: stroke var(--transition);
}

.cg-node:hover rect {
  stroke: var(--accent);
}

@keyframes cgEdgePulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.cg-edge-auto {
  animation: cgEdgePulse 3.5s ease-in-out infinite;
}

.cg-edge-auto:nth-child(2) {
  animation-delay: 0.6s;
}

.cg-edge-auto:nth-child(3) {
  animation-delay: 1.2s;
}

@media (max-width: 640px) {
  .commercial-graph-wrap {
    margin-top: 3rem;
    padding: 0 0.75rem;
  }

  .commercial-graph-svg {
    border-radius: 12px;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Directional slide-in for images */
.slide-in-right {
  opacity: 0;
  transform: translateX(60px) scale(0.96);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.2s;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* --- Contact Modal --- */

body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 11, 10, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 480px;
  width: calc(100% - 3rem);
  padding: 3rem 2.5rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.18), 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
  color: var(--black);
}

.modal-subtitle {
  color: var(--warm-gray-600);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal .form-group label {
  color: var(--warm-gray-600);
}

.modal .form-group input {
  background: var(--off-white);
  border: 1px solid var(--warm-gray-100);
}

.modal .form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(150, 137, 164, 0.2);
}

.modal-submit {
  width: 100%;
  justify-content: center;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--warm-gray-400);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}

.modal-close:hover {
  background: var(--warm-gray-100);
  color: var(--black);
}

.modal .form-success {
  color: var(--warm-gray-600);
}

/* --- Legal Pages --- */
.legal-page {
  padding: 10rem 0 6rem;
  min-height: 80vh;
}

.legal-page .container {
  max-width: 780px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--warm-gray-400);
  margin-bottom: 3rem;
  transition: color var(--transition);
}

.legal-back:hover {
  color: var(--black);
}

.legal-page h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--warm-gray-400);
  margin-bottom: 4rem;
  max-width: none;
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--warm-gray-100);
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.legal-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-section p {
  max-width: none;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--warm-gray-600);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.legal-section ul li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--warm-gray-600);
  padding-left: 1.25rem;
  position: relative;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.legal-section a:hover {
  color: var(--black);
}

/* Legal tables (Cookie Policy) */
.legal-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 12px;
  border: 1px solid var(--warm-gray-100);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warm-gray-400);
  padding: 0.875rem 1.25rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--warm-gray-100);
}

.legal-table td {
  padding: 0.875rem 1.25rem;
  color: var(--warm-gray-600);
  line-height: 1.5;
  border-bottom: 1px solid var(--warm-gray-100);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table td:first-child {
  font-weight: 500;
  color: var(--warm-gray-800);
  font-family: monospace;
  font-size: 0.875rem;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero {
    padding: 14rem 0 9rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

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

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content .btn {
    margin: 0 auto;
  }

  .section {
    padding: 8.6rem 0;
  }

  .section-dark .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .step-row .step-card {
    width: 100%;
  }

  .step-row + .step-connector + .step-row {
    margin-top: 1.5rem;
  }

  .step-connector {
    display: none;
  }

  .benefit-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .browser-frame {
    transform: none;
  }

  .browser-frame:hover {
    transform: none;
  }

  .hero-image {
    animation: none;
  }

  .slide-in-right {
    transform: translateY(32px) scale(1);
  }

  .slide-in-right.visible {
    transform: translateY(0) scale(1);
  }

  .dot-grid-accent::before {
    width: 60px;
    height: 60px;
  }

  .contact-section {
    padding: 6rem 0 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .contact-form {
    max-width: 100%;
  }

  .legal-page {
    padding: 8rem 0 5rem;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-inner .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 11rem 0 6rem;
  }

  .section {
    padding: 7.2rem 0;
  }

  h1 {
    font-size: clamp(2.75rem, 10vw, 4rem);
  }

  h2 {
    font-size: clamp(2.125rem, 8vw, 3rem);
  }

  .container {
    padding: 0 1.5rem;
  }

  .nav-inner {
    padding: 1.25rem 1.5rem;
  }

  .benefit-number {
    font-size: 2rem;
  }

  .leakage-bar {
    height: 40px;
  }

  .step-icon-wrap {
    width: 44px;
    height: 44px;
  }

  .step-icon-wrap .step-icon-svg {
    width: 22px;
    height: 22px;
  }

  .step-card {
    padding: 2rem 1.5rem;
  }

  .dot-grid-accent::before {
    display: none;
  }

  .browser-frame-bar {
    padding: 8px 12px;
    gap: 5px;
  }

  .browser-dot {
    width: 8px;
    height: 8px;
  }

  .browser-url {
    font-size: 0.6875rem;
    padding: 3px 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand-desc {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .modal {
    padding: 2.5rem 1.75rem;
    width: calc(100% - 2rem);
  }
}
