/* ════════════════════════════════════════════
   FLOWTDESIGN SYSTEM — style.css
   ════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────── */
:root {
  --teal-dark: #1A9489;
  --teal-mid: #3FB6AB;
  --teal-light: #5EDAD0;
  --magenta: #B53FAA;
  --magenta-glow: rgba(181, 63, 170, 0.35);
  --teal-glow: rgba(63, 182, 171, 0.25);

  --bg-base: #06090d;
  --bg-surface: #0d1419;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  --text-primary: #f0f4f5;
  --text-secondary: #8fa8ab;
  --text-muted: #4a6366;

  --border: rgba(63, 182, 171, 0.15);
  --border-hover: rgba(63, 182, 171, 0.45);

  --font-head: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Oswald', 'Arial Narrow', sans-serif;

  --ease-flow: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 68px;
}

/* ── Reset & Base ────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--magenta);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

img,
svg {
  display: block;
}

/* ── Scroll bar ──────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--teal-dark);
  border-radius: 3px;
}

/* ── Typography Helpers ──────────────────── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.accent {
  color: var(--teal-light);
}

/* ── Reveal Animations ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-flow), transform 0.8s var(--ease-flow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="100"] {
  transition-delay: 0.1s;
}

.reveal[data-delay="200"] {
  transition-delay: 0.2s;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.35s var(--ease-snap);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-snap);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn--primary {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 0 30px var(--magenta-glow);
}

.btn--primary:hover {
  box-shadow: 0 0 50px var(--magenta-glow), 0 0 80px rgba(181, 63, 170, 0.2);
  transform: translateY(-2px);
}

/* ════════════ NAV ════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(6, 9, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease-flow), backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(6, 9, 13, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s;
}

.nav__logo:hover .nav__logo-img {
  opacity: 0.85;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.25s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--teal-light);
  transition: right 0.3s var(--ease-snap);
}

.nav__link:hover {
  color: var(--teal-light);
}

.nav__link:hover::after {
  right: 0;
}

.nav__cta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  transition: all 0.3s var(--ease-snap);
}

.nav__cta:hover {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 0 20px var(--magenta-glow);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ════════════ HERO ════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  padding-top: var(--nav-h);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero__accent {
  background: linear-gradient(135deg, var(--teal-light), var(--teal-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: fadeInUp 1.2s 1.5s var(--ease-flow) both;
}

.hero__scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--teal-mid), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.15);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ════════════ THE PROBLEM ════════════ */
.problem {
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.problem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-dark), transparent);
}

.problem__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
}

.problem__side {
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  transition: border-color 0.4s, transform 0.4s var(--ease-snap);
}

.problem__side:hover {
  transform: translateY(-6px);
}

.problem__side--order {
  border-color: rgba(63, 182, 171, 0.3);
  background: linear-gradient(135deg, rgba(26, 148, 137, 0.08), rgba(6, 9, 13, 0));
}

.problem__side--chaos:hover {
  border-color: rgba(181, 63, 170, 0.4);
}

.problem__side--order:hover {
  border-color: var(--teal-mid);
}

.problem__tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(181, 63, 170, 0.4);
  border-radius: 2px;
  color: var(--magenta);
  margin-bottom: 1.5rem;
}

.problem__tag--order {
  border-color: var(--teal-dark);
  color: var(--teal-light);
}

.problem__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.problem__title em {
  font-style: italic;
  color: var(--teal-light);
}

.problem__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.problem__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.icon-chaos {
  color: var(--magenta);
  font-style: normal;
  flex-shrink: 0;
}

.icon-order {
  color: var(--teal-mid);
  font-style: normal;
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

.problem__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.problem__divider-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--teal-dark), transparent);
}

.problem__divider-orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--teal-mid);
  background: radial-gradient(circle at center, rgba(63, 182, 171, 0.25), transparent);
  animation: orbPulse 3s ease-in-out infinite;
}

@keyframes orbPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--teal-glow);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 20px 4px var(--teal-glow);
  }
}

/* ════════════ SERVICES ════════════ */
.services {
  padding: 8rem 2rem;
  background: var(--bg-surface);
  position: relative;
}

.services::before,
.services::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-dark), transparent);
}

.services::before {
  top: 0;
}

.services::after {
  bottom: 0;
}

.services__header {
  text-align: center;
  margin-bottom: 4rem;
}

.services__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  overflow: hidden;
  cursor: default;
  transition: border-color 0.4s var(--ease-snap), transform 0.4s var(--ease-snap), background 0.4s;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  background: var(--bg-card-hover);
}

.service-card--featured {
  border-color: rgba(63, 182, 171, 0.3);
  background: linear-gradient(160deg, rgba(26, 148, 137, 0.12), var(--bg-card));
}

.service-card--featured:hover {
  border-color: var(--teal-mid);
  box-shadow: 0 0 40px rgba(63, 182, 171, 0.1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  color: var(--teal-mid);
  margin-bottom: 1.75rem;
  transition: color 0.3s, transform 0.4s var(--ease-snap);
}

.service-card:hover .service-card__icon {
  color: var(--teal-light);
  transform: scale(1.08);
}

.service-card__title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card__tag {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.service-card__glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--teal-glow);
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.service-card:hover .service-card__glow {
  opacity: 1;
}

.service-card--featured .service-card__glow {
  opacity: 0.5;
}

/* ════════════ MANIFESTO ════════════ */
.manifesto {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.manifesto__label {
  text-align: center;
  padding: 0 2rem;
  margin-bottom: 3rem;
}

.manifesto__track-wrapper {
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.manifesto__track-wrapper:active {
  cursor: grabbing;
}

.manifesto__track {
  display: flex;
  gap: 0;
  transition: transform 0.6s var(--ease-flow);
  will-change: transform;
}

.manifesto__slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 10vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manifesto__quote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  text-align: center;
  max-width: 900px;
  font-style: normal;
  border: none;
}

.manifesto__quote em {
  font-style: italic;
  background: linear-gradient(135deg, var(--teal-light), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.manifesto__progress {
  max-width: 320px;
  margin: 3rem auto 0;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.manifesto__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-mid), var(--magenta));
  border-radius: 1px;
  width: 25%;
  transition: width 0.4s var(--ease-snap);
}

.manifesto__hint {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2rem;
  animation: hintFade 3s ease-in-out infinite;
}

@keyframes hintFade {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }
}

/* ════════════ CONTACT ════════════ */
.contact {
  position: relative;
  padding: 8rem 2rem;
  overflow: hidden;
}

.contact__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.contact__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 300;
}

.contact__form {
  width: 100%;
}

.contact__input-wrap {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s;
  background: var(--bg-card);
}

.contact__input-wrap:focus-within {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(63, 182, 171, 0.12);
}

.contact__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.contact__input::placeholder {
  color: var(--text-muted);
}

.contact__submit {
  border-radius: 0;
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 0 1.5rem;
}

.contact__privacy {
  margin-top: 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact__success {
  display: none;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--teal-light);
  animation: fadeInUp2 0.5s var(--ease-snap);
}

.contact__success.show {
  display: block;
}

@keyframes fadeInUp2 {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact__bg-orb {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(181, 63, 170, 0.08), transparent 70%);
  pointer-events: none;
}

/* ════════════ FOOTER ════════════ */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer__logo:hover {
  opacity: 1;
}

.footer__tagline {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer__social svg {
  flex-shrink: 0;
}

.footer__social:hover {
  color: var(--teal-light);
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .problem__inner {
    grid-template-columns: 1fr;
  }

  .problem__divider {
    flex-direction: row;
    padding: 0;
  }

  .problem__divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal-dark), transparent);
  }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .contact__input-wrap {
    flex-direction: column;
    border-radius: 4px;
  }

  .contact__submit {
    border-radius: 0 0 4px 4px;
    padding: 1rem;
  }

  .hero__headline {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}