/* ============================================================
   FORITY MARKETING — Design System
   Bold & loud · black canvas · logo gradient (pink→purple)
   ============================================================ */

:root {
  /* Color */
  --ink:        #000000;   /* page canvas */
  --surface:    #0c0a0f;   /* subtle raised panels */
  --line:       #221f29;   /* hairlines */
  --text:       #f5f3f7;   /* primary text */
  --muted:      #8c8794;   /* secondary text */

  --pink:       #f65ac1;   /* logo arrow — pink end  */
  --purple:     #4f61f9;   /* logo arrow — purple end */
  --grad:       linear-gradient(105deg, var(--pink) 0%, #b95fd6 48%, var(--purple) 100%);

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 160px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--pink); color: #000; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px;
  background: var(--grad); border-radius: 2px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700;
  font-size: 16px; letter-spacing: -0.01em;
  padding: 16px 28px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn--primary {
  background: var(--grad); color: #07060a;
  box-shadow: 0 8px 30px -8px rgba(246,90,193,.55);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -10px rgba(246,90,193,.7); }

.btn--ghost { color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--pink); transform: translateY(-3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-weight: 500; font-size: 15px; color: var(--muted);
  position: relative; transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: 6px; }

.nav__toggle {
  display: none; background: none; border: 0; color: var(--text);
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: currentColor; position: relative;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease);
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(40px, 7vw, 90px); padding-bottom: var(--section-y); }
.hero__grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero__eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.9rem, 8.2vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero__sub {
  margin-top: 30px; max-width: 30ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55;
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Hero signature: growth chart */
.hero__art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.chart-art { width: min(100%, 420px); height: auto; display: block; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 22px; overflow: hidden;
  display: flex; user-select: none;
}
.marquee__track {
  display: flex; gap: 0; flex-shrink: 0;
  animation: scroll-x 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.3rem); letter-spacing: -0.02em;
  white-space: nowrap; padding-inline: 30px; color: var(--text);
  display: inline-flex; align-items: center; gap: 30px;
}
.marquee__track span::after { content: "✦"; color: var(--pink); font-size: 0.7em; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   USP — editorial rows (not a card grid)
   ============================================================ */
.usp__head { max-width: 60ch; margin-bottom: clamp(40px, 6vw, 72px); }
.usp__head h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em;
  margin-top: 22px;
}

.usp-row {
  display: grid; grid-template-columns: 56px 1fr 1.1fr; gap: clamp(16px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--line);
}
.usp-row:last-child { border-bottom: 1px solid var(--line); }
.usp-row__mark {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.usp-row__mark svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.usp-row__mark svg path { stroke: url(#fg); }
.usp-row:hover .usp-row__mark { border-color: var(--pink); background: rgba(246,90,193,.06); }
.usp-row:hover .usp-row__mark svg { transform: translate(2px, -2px); }
.usp-row h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.05; letter-spacing: -0.02em;
}
.usp-row p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }

/* ============================================================
   LEISTUNGEN / PROCESS
   ============================================================ */
.alt { background: var(--surface); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.lead-grid h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em;
}
.lead-grid p.big { font-size: 1.2rem; color: var(--muted); margin-top: 24px; max-width: 42ch; }

.svc-list { display: flex; flex-direction: column; }
.svc {
  display: flex; align-items: baseline; gap: 18px;
  padding-block: 22px; border-top: 1px solid var(--line);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__no { font-family: var(--display); font-weight: 700; color: var(--pink); font-size: .95rem; min-width: 2.4ch; }
.svc__body strong { font-family: var(--display); font-weight: 700; font-size: 1.25rem; display: block; }
.svc__body span { color: var(--muted); font-size: .98rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
  border-radius: 28px; padding: clamp(40px, 7vw, 88px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(246,90,193,.22), transparent 55%),
    radial-gradient(120% 140% at 0% 100%, rgba(79,97,249,.22), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta-band h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.0; letter-spacing: -0.03em;
}
.cta-band p { color: var(--muted); margin-top: 18px; max-width: 40ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: clamp(50px, 7vw, 80px) 40px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 50px; width: auto; margin-bottom: 20px; }
.footer__brand p { color: var(--muted); max-width: 34ch; }
.footer__col h4 {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px; font-weight: 600;
}
.footer__col a { display: block; color: var(--text); padding-block: 7px; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--pink); }
.footer__bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  color: var(--muted); font-size: 14px;
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-head { padding-top: clamp(50px, 8vw, 110px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: -0.03em; margin-top: 24px;
}
.page-head p { color: var(--muted); font-size: clamp(1.05rem,1.6vw,1.3rem); max-width: 52ch; margin-top: 26px; }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,6vw,80px); align-items: start; }
.about-split h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem,4vw,3rem); line-height:1.04; letter-spacing:-0.025em; }
.about-split p { color: var(--muted); margin-top: 20px; font-size: 1.1rem; }
.about-split p + p { margin-top: 16px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,3vw,40px); }
.stat { border-top: 1px solid var(--line); padding-top: 24px; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem,5vw,3.6rem); line-height:1; letter-spacing:-0.02em; }
.stat__num.grad-text { display: inline-block; }
.stat__label { color: var(--muted); margin-top: 10px; font-size: .98rem; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px,3vw,32px); }
.value {
  padding: clamp(24px,3vw,36px); border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.value:hover { border-color: var(--pink); transform: translateY(-4px); }
.value h3 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin-bottom: 12px; }
.value h3 b { color: var(--pink); margin-right: 10px; font-weight: 800; }
.value p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,6vw,80px); align-items: start; }

.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 16px; font: inherit; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5b5763; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(246,90,193,.18);
}
.form__submit { width: 100%; justify-content: center; }
.form__note { color: var(--muted); font-size: 13px; margin-top: 14px; text-align: center; }

.form__success {
  display: none; text-align: center; padding: clamp(30px,5vw,56px);
  border: 1px solid var(--pink); border-radius: 18px; background: rgba(246,90,193,.06);
}
.form__success.show { display: block; }
.form__success h3 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin-bottom: 12px; }
.form__success p { color: var(--muted); }

.contact-card { border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px,3vw,40px); background: var(--surface); }
.contact-card h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem,3vw,2.4rem); letter-spacing:-0.02em; margin-bottom: 8px; }
.contact-card > p { color: var(--muted); margin-bottom: 30px; }
.contact-item { display: flex; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); align-items: flex-start; }
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item .ci-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line);
}
.contact-item .ci-icon svg { width: 19px; height: 19px; }
.contact-item .ci-icon svg path, .contact-item .ci-icon svg circle, .contact-item .ci-icon svg rect { stroke: url(#fg); }
.contact-item .ci-label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.contact-item .ci-value { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.contact-item a.ci-value:hover { color: var(--pink); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 240px; }
  .chart-art { width: min(72%, 300px); }
  .lead-grid, .cta-band__inner, .about-split, .contact-grid { grid-template-columns: 1fr; }
  .cta-band__inner { text-align: left; }
  .usp-row { grid-template-columns: 44px 1fr; }
  .usp-row p { grid-column: 2; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 84px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 6px;
    background: rgba(6,5,9,.96); backdrop-filter: blur(16px);
    padding: 24px var(--gutter) 36px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .45s var(--ease);
    height: auto;
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__link { font-size: 1.4rem; font-family: var(--display); font-weight: 700; padding-block: 8px; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 12px; }
  .nav__toggle { display: inline-flex; }
  .values, .stats { grid-template-columns: 1fr; }
  .stats { gap: 8px; }

  .hero__art { order: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
