/* ===== Retide LLC (retide.us) ===== */
:root {
  --bg: #0b1120;
  --bg-alt: #0f172a;
  --surface: #131c31;
  --surface-2: #182441;
  --border: #1e293b;
  --text: #e8edf7;
  --muted: #94a3b8;
  --brand: #38bdf8;
  --brand-2: #818cf8;
  --max: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(56,189,248,.14), transparent 60%),
    radial-gradient(700px 380px at 0% 0%, rgba(129,140,248,.10), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

/* Overflow safety */
html, body { overflow-x: hidden; max-width: 100%; }
.about-grid > *, .contact-grid > *, .footer-grid > *, .cards > * { min-width: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 11px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap; font-size: .98rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #06121f; box-shadow: 0 10px 28px rgba(56,189,248,.28); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(56,189,248,.42); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--brand); }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,17,32,.74); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 18px rgba(56,189,248,.5); }
.brand-name { font-size: 1.15rem; letter-spacing: .2px; }
.brand-suffix { color: var(--muted); font-weight: 600; }
.nav-links { list-style: none; display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ===== Section primitives ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker { color: var(--brand); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; margin-bottom: 14px; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -.6px; line-height: 1.15; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 44px; max-width: 640px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 100px 0 84px; }
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: .85rem; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; margin-bottom: 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -1.4px; margin-bottom: 22px; font-weight: 800; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: .92rem; }
.hero-glow { position: absolute; top: -180px; right: -140px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.26), transparent 65%); z-index: 1; }

/* ===== Stats band ===== */
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 16px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -1px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted); font-size: .88rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.about-grid p { color: var(--muted); margin-bottom: 16px; }

/* ===== Facts ===== */
.facts { list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.facts li:last-child { border-bottom: none; }
.facts span { color: var(--muted); }
.facts strong { text-align: right; }
.facts-wide li { padding: 18px 24px; }
.facts a { color: var(--brand); text-decoration: none; }
.facts a:hover { text-decoration: underline; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card-feature { border-color: var(--brand); }
.card-domain { color: var(--brand); font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
.card-link { display: inline-block; margin-top: 14px; color: var(--brand); text-decoration: none; font-weight: 600; }
.card-link:hover { text-decoration: underline; }

/* ===== CTA band ===== */
.cta-band { padding: 80px 0; background: linear-gradient(135deg, rgba(56,189,248,.14), rgba(129,140,248,.10)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -.6px; margin-bottom: 28px; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.footer-tag { color: var(--muted); font-size: .92rem; max-width: 320px; }
.footer-contact { margin-top: 10px; font-size: .92rem; font-weight: 600; }
.footer-contact a { color: var(--brand); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-head { color: var(--text); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--brand); }
.footer-base { padding-top: 24px; }
.footer-base p { color: var(--muted); font-size: .82rem; }

/* ============================================================
   PREMIUM MOTION LAYER
   ============================================================ */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.aurora .b1 { width: 460px; height: 460px; top: -120px; left: -60px; background: radial-gradient(circle, #38bdf8, transparent 70%); animation: drift1 18s ease-in-out infinite; }
.aurora .b2 { width: 420px; height: 420px; top: -80px; right: -80px; background: radial-gradient(circle, #818cf8, transparent 70%); animation: drift2 22s ease-in-out infinite; }
.aurora .b3 { width: 380px; height: 380px; bottom: -160px; left: 30%; background: radial-gradient(circle, #6366f1, transparent 70%); animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(60px,40px) scale(1.15)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-50px,50px) scale(1.1)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(40px,-40px) scale(1.2)} }

.grid-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%); }

.grad-animate { background: linear-gradient(90deg, #38bdf8, #818cf8, #22d3ee, #38bdf8); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradslide 6s linear infinite; }
@keyframes gradslide { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .grad-animate { animation: none; } .aurora .blob { animation: none; } }

.eyebrow .dot { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(56,189,248,.6)} 50%{box-shadow:0 0 0 6px rgba(56,189,248,0)} }

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content:""; position:absolute; top:0; left:-120%; width:60%; height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn-primary:hover::after { left: 140%; }

.card { position: relative; }
.card::before { content:""; position:absolute; inset:0; border-radius:inherit; opacity:0; transition:opacity .3s;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,50%), rgba(56,189,248,.13), transparent 60%); pointer-events:none; }
.card:hover::before { opacity:1; }

.svg-ic { width: 30px; height: 30px; display: block; margin-bottom: 16px; stroke: url(#icgrad); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.marquee-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); padding: 22px 0; overflow: hidden; }
.marquee-label { text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.marquee { display: flex; gap: 56px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee span { color: var(--muted); font-weight: 600; font-size: 1.05rem; white-space: nowrap; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Honest social-proof band --- */
.proof-band { padding: 56px 0 10px; text-align: center; }
.proof-head { color: var(--muted); font-size: 1.05rem; font-weight: 500; max-width: 660px; margin: 0 auto 26px; }
.proof-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.proof-tag { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 9px 18px; color: var(--text); font-weight: 600; font-size: .92rem; opacity: .85; transition: border-color .2s, transform .2s; }
.proof-tag:hover { border-color: var(--brand); transform: translateY(-2px); }

/* ===== Logo image ===== */
.logo-img { width: 26px; height: 26px; border-radius: 7px; display: block; box-shadow: 0 0 16px rgba(56,189,248,.4); }

/* ===== Scroll progress bar ===== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--brand), var(--brand-2)); box-shadow: 0 0 12px rgba(56,189,248,.6); transition: width .08s linear; }

/* ===== Header scrolled state ===== */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.3); background: rgba(11,17,32,.92); }

/* ===== Mobile nav toggle ===== */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.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); }

/* ===== Reveal on scroll ===== */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===== Sub-page hero ===== */
.page-hero { position: relative; overflow: hidden; padding: 84px 0 56px; border-bottom: 1px solid var(--border); }
.page-hero .lede { margin-bottom: 0; }
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: .94rem; margin-bottom: 8px; }
.contact-card a { color: var(--brand); text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .88rem; color: var(--muted); }
.field input, .field textarea { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--text); font-family: inherit; font-size: .96rem; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { color: var(--muted); font-size: .82rem; }

/* ===== Legal prose ===== */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 12px; letter-spacing: -.4px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose ul { color: var(--muted); margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }
.legal-meta { color: var(--muted); font-size: .9rem; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 4px;
    background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 12px 24px 18px;
    margin-left: 0; max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s ease, opacity .2s ease, padding .3s ease;
  }
  .nav-links.open { max-height: 360px; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 0; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
