/* ============================================================
   OptWebPro — dark / bold / electric
   ============================================================ */

:root {
  --ink: #0a0a0c;
  --ink-2: #101014;
  --ink-3: #16161c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --paper: #f2f2ee;
  --muted: rgba(242, 242, 238, 0.66);
  --muted-2: rgba(242, 242, 238, 0.52);
  --acid: #c8ff2e;
  --acid-dim: rgba(200, 255, 46, 0.14);
  --acid-glow: rgba(200, 255, 46, 0.45);
  --display: "Clash Display", "Arial Black", sans-serif;
  --body: "Satoshi", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 88px);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

::selection { background: var(--acid); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

em { font-style: normal; }
.hl { color: var(--acid); }
.stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--paper);
}

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

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: -5%;
  width: 110%;
  height: 110%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav.scrolled {
  padding: 12px var(--pad);
  background: rgba(10, 10, 12, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}
.logo-word em { color: var(--acid); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links > a:not(.nav-cta) {
  position: relative;
  color: var(--muted);
  transition: color 0.25s ease;
}
.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links > a:not(.nav-cta):hover { color: var(--paper); }
.nav-links > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
  transition: box-shadow 0.3s ease;
}
.nav-cta:hover { box-shadow: 0 0 28px var(--acid-glow); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--paper);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--acid);
  color: var(--ink);
}
.btn-primary:hover { box-shadow: 0 0 40px var(--acid-glow); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.btn-block { width: 100%; }
.btn-arrow { transition: transform 0.3s ease; }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--pad) 80px;
  overflow: hidden;
}
.hero-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-glow {
  position: absolute;
  top: -30%; right: -15%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle at center, rgba(200, 255, 46, 0.09) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1080px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--acid);
  margin-bottom: 28px;
}
.tick {
  width: 9px; height: 9px;
  background: var(--acid);
  border-radius: 2px;
  animation: tick-pulse 2.2s ease-in-out infinite;
}
@keyframes tick-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--acid-glow); }
  50% { opacity: 0.55; box-shadow: 0 0 0 7px transparent; }
}
.hero-title {
  font-size: clamp(2.7rem, 7.4vw, 6rem);
  font-weight: 600;
  text-transform: none;
}
.hero-title .line { display: block; }
.hero-sub {
  max-width: 560px;
  margin-top: 30px;
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  color: var(--muted);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 72px);
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--acid);
}
.hero-stats dd {
  font-size: 0.92rem;
  color: var(--muted-2);
  max-width: 170px;
}
.hero-scrollcue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: grid;
  justify-content: center;
  padding-top: 9px;
}
.hero-scrollcue span {
  width: 3px; height: 9px;
  border-radius: 99px;
  background: var(--acid);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--ink-2);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.marquee-track i {
  font-style: normal;
  color: var(--acid);
  font-size: 0.85rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections shared ---------- */
.section { padding: clamp(90px, 12vw, 160px) var(--pad); }
.section-head { margin-bottom: clamp(44px, 6vw, 80px); }
.section-head h2, .offer-title {
  font-size: clamp(2.1rem, 5vw, 4rem);
}
.section-sub {
  margin-top: 18px;
  max-width: 520px;
  color: var(--muted);
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.svc {
  position: relative;
  padding: 34px 28px 42px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.35s ease;
  overflow: hidden;
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--acid-dim), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.svc:hover::before { opacity: 1; }
.svc:hover { background: var(--ink-2); }
.svc-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted-2);
  letter-spacing: 0.18em;
}
.svc h3 {
  margin: 46px 0 12px;
  font-size: 1.22rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
.svc:hover h3 { color: var(--acid); }
.svc p {
  font-size: 0.93rem;
  color: var(--muted);
}
/* flagship cells: the two core offerings carry more weight */
.svc:nth-child(-n+2) { background: var(--ink-2); }
.svc:nth-child(-n+2) .svc-num { color: var(--acid); }
.svc:nth-child(-n+2) h3 { font-size: 1.5rem; }

/* ---------- offer ---------- */
.offer {
  margin: 0 var(--pad);
  border-radius: calc(var(--radius) * 1.6);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 255, 255, 0.35), transparent 60%),
    var(--acid);
  color: var(--ink);
  overflow: hidden;
}
.offer-inner {
  padding: clamp(70px, 9vw, 130px) clamp(28px, 6vw, 100px);
  max-width: 980px;
}
.offer-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.offer-title em {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.offer-sub {
  margin-top: 24px;
  max-width: 600px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-weight: 500;
  color: rgba(10, 10, 12, 0.78);
}
.offer-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: 36px 0 44px;
  font-size: 0.98rem;
  color: rgba(10, 10, 12, 0.82);
}
.offer-points strong { font-weight: 800; color: var(--ink); }

/* ---------- how ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 38px 30px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), transparent);
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.step:hover {
  border-color: var(--acid-glow);
  transform: translateY(-6px);
}
.step-num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--acid-dim);
  border: 1px solid var(--acid-glow);
  color: var(--acid);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
}
.step h3 {
  margin: 26px 0 12px;
  font-size: 1.35rem;
}
.step p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  max-width: 1040px;
}
.price-card {
  position: relative;
  padding: clamp(34px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.4);
  background: linear-gradient(165deg, var(--ink-3), var(--ink-2));
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.price-card:first-child { border-color: var(--acid-glow); }
.price-card:hover { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.price-flag {
  position: absolute;
  top: -13px;
  left: clamp(34px, 4vw, 52px);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}
.price-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.price-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.price-big {
  font-family: var(--display);
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  font-weight: 600;
  color: var(--acid);
  letter-spacing: -0.02em;
}
.price-then {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--muted);
}
.price-card ul {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 38px;
}
.price-card li {
  position: relative;
  padding-left: 28px;
  font-size: 0.96rem;
  color: var(--muted);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--acid);
  border-bottom: 2px solid var(--acid);
  transform: rotate(-45deg);
}

/* ---------- trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
  max-width: 1040px;
}
.trust-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px 22px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color 0.35s ease;
}
/* keep heading AND body text in the wide column — auto-placement would
   drop the <p> into the 56px icon column and wrap it one word per line */
.trust-item h3, .trust-item p { grid-column: 2; }
.trust-item:hover { border-color: var(--acid-glow); }
.trust-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--acid-dim);
  color: var(--acid);
}
.trust-icon svg { width: 28px; height: 28px; }
.trust-item h3 { font-size: 1.18rem; margin-bottom: 8px; }
.trust-item p { font-size: 0.93rem; color: var(--muted); }

/* ---------- faq ---------- */
.faq-list {
  max-width: 780px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  transition: color 0.25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--acid); }
.faq-x {
  position: relative;
  flex: 0 0 auto;
  width: 18px; height: 18px;
}
.faq-x::before, .faq-x::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 2px;
  background: var(--acid);
  transition: transform 0.3s ease;
}
.faq-x::after { transform: rotate(90deg); }
.faq-item[open] .faq-x::after { transform: rotate(0deg); }
.faq-item p {
  padding: 0 40px 28px 4px;
  color: var(--muted);
  max-width: 660px;
}

/* ---------- contact ---------- */
.contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(800px 500px at 8% 20%, rgba(200, 255, 46, 0.06), transparent 60%),
    var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-copy h2 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
.contact-mail {
  display: inline-block;
  margin-top: 34px;
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--acid);
  border-bottom: 1px solid var(--acid-glow);
  padding-bottom: 3px;
  transition: border-color 0.25s ease;
}
.contact-mail:hover { border-color: var(--acid); }
.contact-note {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted-2);
}
.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--ink-2);
}
.field { display: grid; gap: 8px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted-2);
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--muted-2);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--acid);
  box-shadow: 0 0 0 3px var(--acid-dim);
}
.form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  font-family: var(--mono);
}
.form-status.ok { color: var(--acid); }
.form-status.err { color: #ff7d6b; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px var(--pad) 56px;
  background: var(--ink-2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 0.92rem;
}
.footer-links a {
  color: var(--muted);
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--acid); }
.footer-fine {
  width: 100%;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
  transition-delay: var(--rd, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* reveal finished: drop the transition so hover/tilt transforms respond instantly */
.reveal.done { transition: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(78vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    background: rgba(12, 12, 15, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.6, 0.05, 0.2, 1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a:not(.nav-cta) {
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--paper);
  }
  .nav-burger { position: relative; z-index: 1100; }
  .field-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats dd { max-width: none; }
  .offer { margin: 0 12px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee-track, .tick, .hero-scrollcue span { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 4px;
}
