/* LoomaOne — brand tokens */
:root {
  --coral: #f25960;
  --coral-deep: #d9444b;
  --ink: #423867;
  --ink-soft: #5a4d7a;
  --lavender: #c8c4de;
  --mist: #f3f1f8;
  --paper: #faf9fc;
  --line: rgba(66, 56, 103, 0.12);
  --text: #2a2438;
  --muted: #6b6478;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(66, 56, 103, 0.12);
  --radius: 14px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(200, 196, 222, 0.55), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(242, 89, 96, 0.12), transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, var(--mist) 48%, var(--paper) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 249, 252, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand img { width: clamp(140px, 18vw, 190px); height: auto; }

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

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a.is-active,
.site-nav a:hover { color: var(--ink); }

.site-nav .nav-cta { color: var(--white) !important; }

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(66, 56, 103, 0.18);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(66, 56, 103, 0.08);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(242, 89, 96, 0.45);
  box-shadow: 0 6px 18px rgba(242, 89, 96, 0.12);
  outline: none;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease), top 0.28s var(--ease), background 0.2s var(--ease);
}

.nav-toggle span:nth-child(1) { top: calc(50% - 6px); }
.nav-toggle span:nth-child(2) { top: 50%; }
.nav-toggle span:nth-child(3) { top: calc(50% + 6px); }

.nav-toggle.is-open span { background: var(--coral); }
.nav-toggle.is-open span:nth-child(1) {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0.4);
}
.nav-toggle.is-open span:nth-child(3) {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-coral {
  background: var(--coral);
  color: var(--white) !important;
  box-shadow: 0 10px 28px rgba(242, 89, 96, 0.28);
}
.btn-coral:hover { background: var(--coral-deep); color: var(--white) !important; }
.btn-ghost {
  background: transparent;
  border-color: rgba(66, 56, 103, 0.22);
  color: var(--ink) !important;
}
.btn-ghost:hover { background: rgba(66, 56, 103, 0.05); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Hero — one composition, brand first, full-bleed plane */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(66, 56, 103, 0.94) 0%, rgba(66, 56, 103, 0.72) 42%, rgba(242, 89, 96, 0.55) 100%),
    radial-gradient(circle at 78% 35%, rgba(200, 196, 222, 0.35), transparent 40%),
    linear-gradient(160deg, #423867, #2f2748);
  z-index: -2;
}

.hero-weave {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 46px,
      rgba(200, 196, 222, 0.18) 46px,
      rgba(200, 196, 222, 0.18) 48px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 46px,
      rgba(242, 89, 96, 0.16) 46px,
      rgba(242, 89, 96, 0.16) 48px
    );
  mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 72%);
  animation: weaveDrift 18s linear infinite;
}

@keyframes weaveDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, -48px, 0); }
}

.hero-inner {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(5rem, 10vh, 7rem) 0 clamp(3rem, 7vh, 4.5rem);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero-brand {
  width: clamp(200px, 36vw, 320px);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.1s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin: 0 0 1rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.22s forwards;
}

.hero-support {
  max-width: 38ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.6rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.34s forwards;
}

.hero .cta-row { opacity: 0; animation: riseIn 0.9s var(--ease) 0.46s forwards; }

/* Hybrid visual: workflow + UI peek */
.hero-visual {
  position: relative;
  min-height: 340px;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.35s forwards;
}

.workflow {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 0.15rem;
}

.workflow-rail {
  position: absolute;
  left: 1.55rem;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  z-index: 0;
}

.workflow-rail-fill {
  display: block;
  width: 100%;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--coral), #ff9aa6);
  box-shadow: 0 0 12px rgba(242, 89, 96, 0.45);
  transition: height 0.55s var(--ease);
}

.workflow-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
}

.workflow-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.45s var(--ease);
}

/* Soft wave shuffle — transform only, never touch opacity */
.workflow.is-waving .workflow-step {
  animation: waveFloat 2.4s ease-in-out infinite;
}

.workflow.is-waving .workflow-steps .workflow-step:nth-child(1) { animation-delay: 0s; }
.workflow.is-waving .workflow-steps .workflow-step:nth-child(2) { animation-delay: 0.2s; }
.workflow.is-waving .workflow-steps .workflow-step:nth-child(3) { animation-delay: 0.4s; }
.workflow.is-waving .workflow-steps .workflow-step:nth-child(4) { animation-delay: 0.6s; }
.workflow.is-waving .workflow-steps .workflow-step:nth-child(5) { animation-delay: 0.8s; }

.workflow-step.is-done {
  border-color: rgba(242, 89, 96, 0.35);
  background: rgba(242, 89, 96, 0.12);
}

.workflow-step.is-active {
  background: rgba(242, 89, 96, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 12px 30px rgba(242, 89, 96, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.workflow.is-waving .workflow-step.is-active {
  animation: waveFloatActive 1.55s ease-in-out infinite;
}

.workflow-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lavender);
  flex-shrink: 0;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.workflow-dot svg {
  width: 15px;
  height: 15px;
  display: block;
}

.workflow-step.is-done .workflow-dot {
  background: rgba(242, 89, 96, 0.9);
  color: var(--white);
}

.workflow-step.is-active .workflow-dot {
  background: #fff;
  color: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
  animation: dotPulse 1.2s ease-in-out infinite;
}

.workflow-step.is-active .workflow-dot svg {
  animation: iconPop 0.55s var(--ease);
}

.workflow-step[data-step="1"].is-active .workflow-dot svg {
  animation: iconTick 0.7s var(--ease);
}

.workflow-step[data-step="4"].is-active .workflow-dot svg {
  animation: iconSpin 0.85s var(--ease);
}

.workflow-step > div strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
}

.workflow-step > div span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(242, 89, 96, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(242, 89, 96, 0.28); }
}

@keyframes iconPop {
  0% { transform: scale(0.7); opacity: 0.5; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes iconTick {
  0% { transform: rotate(-12deg) scale(0.85); }
  55% { transform: rotate(8deg) scale(1.1); }
  100% { transform: rotate(0) scale(1); }
}

@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ui-peek {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 50px rgba(20, 14, 40, 0.35);
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(0);
  animation: peekFloat 5.5s ease-in-out infinite;
}

.ui-peek img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.ui-peek-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(66, 56, 103, 0.92);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@keyframes waveFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

@keyframes waveFloatActive {
  0%, 100% { transform: translate3d(0, -2px, 0) scale(1.03); }
  50% { transform: translate3d(0, -10px, 0) scale(1.04); }
}

@keyframes peekFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white) !important;
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

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

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.55rem;
}

.section-head h2,
.page-hero h1,
.content-block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
.section-head p,
.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 1.5rem;
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: 16ch; }
.page-hero p { max-width: 42ch; color: var(--muted); }

/* Feature grid — not card-heavy; quiet dividers */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.feature-item:nth-child(3n) { border-right: none; padding-right: 0; }
.feature-item:nth-child(3n+1) { padding-left: 0; }

.feature-item img,
.feature-item .feature-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 0.85rem;
}

.feature-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Solutions strips */
.solution-list { display: grid; gap: 1.25rem; }

.solution-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.solution-row h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.solution-row p { margin: 0; color: var(--muted); }

.solution-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.35rem;
}

/* Testimonials — interaction-light, no heavy cards */
.quote-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.quote {
  padding: 0.25rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.quote img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 0.95rem;
  border: 3px solid rgba(200, 196, 222, 0.85);
  box-shadow: 0 8px 20px rgba(66, 56, 103, 0.12);
  background: var(--mist);
  /* Source photos are ~290px; avoid harsh upscale artifacts on retina */
  image-rendering: auto;
}

.quote blockquote {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
}

.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}
.quote cite strong { color: var(--ink); font-weight: 600; display: block; }

.video-band {
  margin-top: 2rem;
  aspect-ratio: 16 / 9;
  max-width: 820px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a1524;
}

.video-band iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Brand story + 10 Years (from product login) */
.story-section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 280px at 0% 0%, rgba(242, 89, 96, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.72);
}

.years-block { text-align: center; }

.years-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.years-ten {
  position: relative;
  flex: 0 0 auto;
  line-height: 0.85;
  font-size: clamp(4rem, 8vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: var(--font-body);
}

.years-ten-num {
  background: linear-gradient(
    110deg,
    #d62839 0%,
    #e5394b 14%,
    #ffb7c0 28%,
    #ffffff 36%,
    #ff8a98 44%,
    #f25760 58%,
    #c81e32 72%,
    #ff9aa6 86%,
    #e5394b 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 5px rgba(242, 87, 96, 0.35))
    drop-shadow(0 0 12px rgba(255, 138, 154, 0.22));
  animation: tenGlowFlow 3.2s linear infinite;
}

@keyframes tenGlowFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.years-ten-swoosh {
  position: absolute;
  left: 4%;
  right: 2%;
  bottom: 12%;
  height: 28%;
  pointer-events: none;
  z-index: 1;
}

.years-ten-swoosh svg {
  display: block;
  width: 100%;
  height: 100%;
}

.years-lines {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.05;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
  padding-top: 0.3rem;
  font-family: var(--font-display);
}

.years-lines > span { display: block; }

.years-sparkles {
  position: absolute;
  top: -0.15rem;
  left: 4.5em;
  width: 2.1rem;
  height: 1.7rem;
  color: var(--coral);
  pointer-events: none;
}

.years-sparkles svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.years-sparkles .star {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: starTwinkle ease-in-out infinite;
}

.years-sparkles .star-md { animation-duration: 3.6s; }
.years-sparkles .star-lg { animation-duration: 4.4s; animation-delay: 1.5s; }
.years-sparkles .star-sm { animation-duration: 3.1s; animation-delay: 2.7s; }

@keyframes starTwinkle {
  0%, 12% { opacity: 0; transform: scale(0.55); }
  28%, 48% { opacity: 1; transform: scale(1.08); }
  62%, 100% { opacity: 0; transform: scale(0.55); }
}

.years-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.15rem auto 0.95rem;
  width: min(100%, 22rem);
}

.years-divider::before,
.years-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66, 56, 103, 0.22));
}

.years-divider::after {
  background: linear-gradient(90deg, rgba(66, 56, 103, 0.22), transparent);
}

.years-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.4rem 1.05rem;
  border-radius: 999px;
  background: rgba(200, 196, 222, 0.45);
  color: var(--ink);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 500;
  white-space: nowrap;
}

.years-pill strong {
  color: var(--coral);
  font-weight: 700;
}

.years-sub {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 500;
  line-height: 1.4;
}

.brand-story p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 40ch;
}

.brand-tagline {
  margin: 0 0 0.75rem !important;
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
  line-height: 1.35 !important;
}

.brand-tagline em {
  font-style: italic;
  font-weight: 560;
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; text-align: center; }
  .brand-story p { max-width: none; margin-inline: auto; }
  .years-lines { align-items: flex-start; }
  .years-title { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .years-ten-num { animation: none; background-position: 40% 50%; }
  .years-sparkles .star { animation: none; opacity: 0.85; transform: none; }
}

/* What is LoomaOne — definition / AEO */
.define-section {
  padding-top: 0.5rem;
}

.define-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(242, 89, 96, 0.1), transparent 55%),
    radial-gradient(560px 260px at 100% 100%, rgba(66, 56, 103, 0.1), transparent 50%),
    linear-gradient(165deg, #fff 0%, rgba(243, 241, 248, 0.92) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(66, 56, 103, 0.08);
}

.define-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 18px,
      rgba(66, 56, 103, 0.035) 18px,
      rgba(66, 56, 103, 0.035) 19px
    );
  pointer-events: none;
  opacity: 0.7;
}

.define-copy,
.define-specialties {
  position: relative;
  z-index: 1;
}

.define-copy h2 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.define-lede {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
}

.define-lede strong {
  color: var(--ink);
  font-weight: 600;
}

.define-specialties {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 1rem;
  margin: 1.75rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
}

.define-specialty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  flex: 1 1 0;
  min-width: 7.5rem;
  max-width: 10.5rem;
}

.define-ico {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s var(--ease);
}

.define-ico svg {
  width: 1.6rem;
  height: 1.6rem;
}

.define-specialty span:last-child {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  min-height: 2.4em;
}

.define-panel.reveal.is-in .define-specialty .define-ico {
  animation: defineIcoIn 0.7s var(--ease) both;
}

.define-specialty:nth-child(2) .define-ico { animation-delay: 0.08s; }
.define-specialty:nth-child(3) .define-ico { animation-delay: 0.16s; }
.define-specialty:nth-child(4) .define-ico { animation-delay: 0.24s; }
.define-specialty:nth-child(5) .define-ico { animation-delay: 0.32s; }

@keyframes defineIcoIn {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.define-specialty:hover .define-ico {
  border-color: rgba(242, 89, 96, 0.35);
  box-shadow: 0 10px 24px rgba(66, 56, 103, 0.12);
  transform: translateY(-3px);
}

@media (max-width: 700px) {
  .define-specialties {
    justify-content: center;
  }
  .define-specialty {
    flex: 0 1 calc(50% - 0.75rem);
    max-width: none;
  }
}

/* Shared AEO definition strip (About / Solutions) */
.aeo-block {
  background: linear-gradient(135deg, rgba(66, 56, 103, 0.96), rgba(66, 56, 103, 0.88));
  color: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.aeo-block p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  max-width: 52ch;
}

.aeo-block .former {
  margin-top: 0.85rem;
  opacity: 0.8;
  font-size: 0.92rem;
}

/* FAQ */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.faq-item p { margin: 0; color: var(--muted); }

/* Form */
.form-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.form-fields {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-fields-compact .field input,
.form-fields-compact .field select,
.form-fields-compact .field textarea {
  padding: 0.55rem 0.7rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(66, 56, 103, 0.18);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(242, 89, 96, 0.35);
  border-color: var(--coral);
}

.field textarea { min-height: 72px; resize: vertical; }

.field.is-required {
  padding-left: 0.65rem;
  border-left: 3px solid var(--coral);
}

.captcha-field input { max-width: 8rem; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.form-note { font-size: 0.8rem; color: var(--muted); margin: 0; }

.page-hero-compact {
  padding: clamp(1.5rem, 4vw, 2.4rem) 0 0.75rem;
}

.page-hero-compact h1 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }

.section-compact {
  padding: 0.75rem 0 2.5rem;
}

.msg {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}
.msg-ok { background: rgba(66, 56, 103, 0.08); color: var(--ink); }
.msg-err { background: rgba(242, 89, 96, 0.12); color: var(--coral-deep); }

.aside-help h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.aside-help p { color: var(--muted); margin: 0 0 1rem; }

.aside-whatsapp {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.28);
}

.aside-whatsapp h3 { color: #128c7e; }

/* WhatsApp theme */
.btn-whatsapp {
  background: #25d366;
  color: #fff !important;
  border-color: #25d366;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  color: #fff !important;
}

.wa-link { color: #128c7e !important; font-weight: 600; }
.wa-link:hover { color: #075e54 !important; }

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 0;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease), background 0.2s var(--ease);
}

.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-2px) scale(1.04);
  background: #1ebe57;
  color: #fff !important;
  outline: none;
}

.wa-float svg {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
  flex-shrink: 0;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: #2a2340;
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img { margin-bottom: 0.85rem; }
.footer-tag {
  font-family: var(--font-display);
  color: var(--lavender);
  margin: 0 0 0.55rem;
}
.footer-def { margin: 0; font-size: 0.92rem; max-width: 36ch; }
.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lavender);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-links a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-note { margin: 1rem 0 0; font-size: 0.85rem; opacity: 0.7; }
.footer-bottom {
  padding-top: 1.15rem;
  font-size: 0.85rem;
  opacity: 0.8;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.footer-bottom p { margin: 0; opacity: 0.8; }

.powered-by {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.powered-by a {
  color: var(--lavender);
  text-decoration: none;
}

.powered-by a:hover {
  color: var(--white);
  text-decoration: underline;
}

.powered-by strong {
  color: inherit;
  font-weight: 600;
}

.former-line {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; max-width: 520px; }
  .hero h1 { max-width: 16ch; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-item:nth-child(3n) { border-right: 1px solid var(--line); padding-right: 1.25rem; }
  .feature-item:nth-child(2n) { border-right: none; padding-right: 0; }
  .solution-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .form-panel { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote-rail { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-toggle.is-open {
    border-color: rgba(242, 89, 96, 0.4);
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-nav {
    position: fixed;
    inset: 4.25rem 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }
  .site-nav .nav-cta { margin: 0.35rem 0.5rem 0.65rem; text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item,
  .feature-item:nth-child(3n),
  .feature-item:nth-child(2n) {
    border-right: none;
    padding: 1.25rem 0;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .workflow-step,
  .workflow-step.is-active,
  .workflow.is-waving .workflow-step,
  .workflow.is-waving .workflow-step.is-active {
    opacity: 1;
    transform: none !important;
    animation: none !important;
  }
  .workflow-rail-fill { height: 100% !important; }
}
