/* ============================================================
   RedDotneural — styles
   ============================================================ */

:root {
  --bg:        #0a0a0f;
  --bg-alt:    #0e0e16;
  --panel:     #14141f;
  --panel-2:   #191926;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);
  --text:      #edeef2;
  --muted:     #a2a4b3;
  --faint:     #6f7183;
  --red:       #ff3b3b;
  --red-2:     #ff6b5c;
  --red-soft:  rgba(255, 59, 59, 0.14);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand__name { font-family: "Sora", "Inter", sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff; box-shadow: 0 8px 30px -8px rgba(255, 59, 59, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(255, 59, 59, 0.7); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--red); color: #fff; transform: translateY(-2px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--red-soft); }
  50% { box-shadow: 0 0 0 7px rgba(255, 59, 59, 0.05); }
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.brand__mark { flex: none; color: var(--text); filter: drop-shadow(0 0 6px rgba(255, 59, 59, 0.35)); }
.brand__core { transform-origin: 20px 20px; }
.brand:hover .brand__core { animation: breathe 2.6s ease-in-out infinite; }
.brand__name { font-size: 1.12rem; letter-spacing: -0.01em; }
.brand__accent { color: var(--red); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--red); transition: width .25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 22px; background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a { padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--border); }
.nav__mobile a:last-child { border: 0; margin-top: 8px; align-self: flex-start; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 110px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero__glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; max-width: 120vw; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.18), transparent 62%);
  filter: blur(20px);
}
.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 860px; }
.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.03em; margin-bottom: 26px;
}
.grad {
  background: linear-gradient(120deg, var(--red), var(--red-2) 55%, #ffb199);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 0 auto 38px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  list-style: none; display: flex; gap: 44px; justify-content: center; flex-wrap: wrap;
  margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--border);
}
.hero__stats li { display: flex; flex-direction: column; gap: 3px; }
.hero__stats strong { font-family: "Sora", sans-serif; font-size: 1.5rem; color: #fff; }
.hero__stats span { font-size: 0.85rem; color: var(--faint); }

/* ---------- Strip / marquee ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); overflow: hidden; }
.strip__track {
  display: flex; align-items: center; gap: 34px; white-space: nowrap;
  padding: 20px 0; width: max-content; animation: marquee 34s linear infinite;
  color: var(--faint); font-weight: 600; letter-spacing: 0.02em; font-size: 0.95rem;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 680px; margin: 0 auto 58px; text-align: center; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.section__lead { color: var(--muted); margin-top: 18px; font-size: 1.08rem; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.8); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; color: var(--red); background: var(--red-soft);
  border: 1px solid rgba(255, 59, 59, 0.25); margin-bottom: 20px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; position: relative; transition: border-color .3s, transform .3s var(--ease);
}
.step:hover { border-color: rgba(255, 59, 59, 0.4); transform: translateY(-4px); }
.step__num { font-family: "Sora", sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--red); opacity: 0.85; }
.step h3 { margin: 14px 0 8px; font-size: 1.12rem; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.about .section__title { text-align: left; }
.about__text p { color: var(--muted); margin-top: 18px; }
.about__points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 30px; }
.about__points div { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text); }
.tick { color: var(--red); font-weight: 700; }

.about__panel { display: grid; place-items: center; min-height: 300px; }
.orb { position: relative; width: 240px; height: 240px; display: grid; place-items: center; }
.orb__ring {
  position: absolute; border: 1px solid rgba(255, 59, 59, 0.35); border-radius: 50%;
  inset: 0; animation: spin 14s linear infinite;
}
.orb__ring:nth-child(2) { inset: 30px; border-color: rgba(255, 107, 92, 0.3); animation-duration: 10s; animation-direction: reverse; }
.orb__ring:nth-child(3) { inset: 62px; border-color: rgba(255, 59, 59, 0.25); animation-duration: 20s; }
.orb__core {
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--red-2), var(--red));
  box-shadow: 0 0 50px 6px rgba(255, 59, 59, 0.6); animation: breathe 3.4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ---------- CTA / contact ---------- */
.cta { text-align: center; }
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta__title { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; }
.cta__sub { color: var(--muted); margin: 18px auto 40px; max-width: 560px; font-size: 1.08rem; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; margin-bottom: 26px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  color: var(--text); padding: 13px 14px; font: inherit; font-size: 0.95rem; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft);
}
/* Spam trap — kept out of view and out of the tab order, but not
   display:none, which some bots detect and skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form__actions { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-form__actions .btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form-note.is-ok { color: #4ade80; }
.form-note.is-err { color: var(--red-2); }

.cta__alt { color: var(--faint); font-size: 0.95rem; }
.cta__alt a { color: var(--red); font-weight: 600; }
.cta__alt a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 46px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer__tag { color: var(--muted); }
.footer__copy { color: var(--faint); font-size: 0.85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about .section__title { text-align: center; }
  .about__text { text-align: center; }
  .about__points { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .hero { padding: 130px 0 80px; }
  .hero__stats { gap: 30px; }
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .about__points { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
