/* Elykia product landing — OptimizeSolux */
:root {
  --ink: #0c1f1f;
  --muted: #4a6360;
  --line: rgba(15, 61, 62, 0.12);
  --teal-deep: #0f3d3e;
  --teal: #1a5c5a;
  --teal-mid: #2a7a74;
  --mint: #5ec4b6;
  --mint-soft: #d8f0eb;
  --sand: #f3f7f5;
  --sand-2: #e4eeea;
  --white: #ffffff;
  --accent: #c45c26;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 18px rgba(15, 61, 62, 0.06);
  --shadow-md: 0 16px 48px rgba(15, 61, 62, 0.1);
  --shadow-lg: 0 28px 80px rgba(15, 61, 62, 0.16);
  --header-h: 72px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-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(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 196, 182, 0.16), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  mix-blend-mode: multiply;
}

body.is-desktop .cursor-glow {
  opacity: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-deep);
  color: var(--mint);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--teal-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-desktop + .header-actions {
  margin-left: 0;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--teal-deep);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0 1.25rem;
}

.mobile-nav a {
  padding: 0.75rem 0.25rem;
  font-weight: 600;
  color: var(--ink);
}

.mobile-nav .btn {
  margin-top: 0.65rem;
  text-align: center;
}

@media (min-width: 900px) {
  .mobile-nav,
  .mobile-nav.is-open {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal-deep);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(15, 61, 62, 0.22);
}

.btn-primary:hover {
  background: var(--teal);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--teal-deep);
  backdrop-filter: blur(8px);
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.02rem;
}

.btn-full {
  width: 100%;
}

/* Hero — full-bleed composition */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, #0c2e2f 0%, #145250 42%, #1f6b62 72%, #2d8578 100%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(232, 244, 242, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 244, 242, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  animation: mesh-drift 28s linear infinite;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.hero-orb-a {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  top: -10%;
  right: -8%;
  background: rgba(94, 196, 182, 0.35);
  animation: orb-float 12s var(--ease) infinite alternate;
}

.hero-orb-b {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  bottom: 5%;
  left: -6%;
  background: rgba(196, 92, 38, 0.18);
  animation: orb-float 14s var(--ease) infinite alternate-reverse;
}

.hero-field {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(to top, rgba(12, 31, 31, 0.55), transparent),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(232, 244, 242, 0.04) 18px,
      rgba(232, 244, 242, 0.04) 19px
    );
}

.hero-content {
  position: relative;
  padding: 4.5rem 0 5rem;
  max-width: 820px;
  color: var(--white);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  line-height: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.55rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.hero h1 .accent {
  display: block;
  color: var(--mint);
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(232, 244, 242, 0.88);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(232, 244, 242, 0.65);
}

.hero-note a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes mesh-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 56px 56px;
  }
}

@keyframes orb-float {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-18px, 22px);
  }
}

/* Value strip */
.value-strip {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.value-grid article {
  padding: 0.25rem 0.5rem;
}

.value-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--teal-deep);
  margin-bottom: 0.15rem;
}

.value-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--sand);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin: 0 0 0.75rem;
}

.section-head h2,
.why-copy h2,
.demo-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--teal-deep);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Features */
.features-grid {
  display: grid;
  gap: 1.25rem;
}

.feature {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease);
}

.section:not(.section-alt) .feature {
  background: var(--sand);
  border-color: transparent;
}

.feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  color: var(--teal);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--teal-deep);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mint);
  letter-spacing: -0.03em;
  line-height: 1;
  padding-top: 0.15rem;
}

.step h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  color: var(--teal-deep);
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Roles */
.roles-grid {
  display: grid;
  gap: 1rem;
}

.roles-grid-3 {
  grid-template-columns: 1fr;
}

.role {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--white), var(--sand));
}

.role h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  color: var(--teal-deep);
}

.role p {
  margin: 0;
  color: var(--muted);
}

/* Why */
.section-why {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(94, 196, 182, 0.18), transparent 55%),
    var(--sand);
}

.why-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.why-layout-single {
  max-width: 40rem;
}

.why-cta {
  margin-top: 1.75rem;
}

.why-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.checklist {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--mint) center / 60% no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%230F3D3E' stroke-width='2'%3E%3Cpath d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
}

/* Demo */
.section-demo {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.demo-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.demo-mail {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.demo-mail a {
  color: var(--teal);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-form {
  padding: 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--sand);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1rem;
}

.field-row {
  display: grid;
  gap: 1rem;
}

.demo-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--teal-deep);
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-form input:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(94, 196, 182, 0.35);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

.form-note {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.form-note.is-success {
  color: var(--teal);
  font-weight: 600;
}

.form-note.is-error {
  color: #b42318;
  font-weight: 600;
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  background: var(--teal-deep);
  color: rgba(232, 244, 242, 0.85);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}

.footer-brand span {
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a:hover {
  color: var(--mint);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Reveal */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible,
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.08s;
}
.delay-2 {
  transition-delay: 0.16s;
}
.delay-3 {
  transition-delay: 0.24s;
}
.delay-4 {
  transition-delay: 0.32s;
}

.reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 0.08s;
}
.reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 0.16s;
}
.reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 0.24s;
}

/* Responsive */
@media (min-width: 720px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roles-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .roles-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .roles-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-layout,
  .demo-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }

  .why-layout-single {
    grid-template-columns: 1fr;
    max-width: 40rem;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}
