/* ==========================================================================
   Ryddhu AI design system
   Sampled from the brand mark: near-black ground, cyan→teal wordmark gradient,
   amber tagline. Everything below is self-contained — no CDNs, no webfonts,
   so the site works on any host and never leaks a request to a third party.
   ========================================================================== */

:root {
    --bg: #06070a;
    --bg-2: #0b0d12;
    --surface: #10131a;
    --surface-2: #161a23;
    --border: #1e2430;
    --border-lit: #2b3444;

    --text: #eef1f6;
    --text-2: #a8b2c1;
    --text-3: #6b7688;

    --cyan: #22d3ee;
    --teal: #34d399;
    --amber: #fbbf24;
    --rose: #fb7185;

    --grad: linear-gradient(115deg, #22d3ee 0%, #34d399 55%, #fbbf24 100%);
    --grad-soft: linear-gradient(115deg, rgba(34,211,238,.14), rgba(52,211,153,.10) 55%, rgba(251,191,36,.12));

    --shell: 1120px;
    --prose: 760px;
    --r: 18px;

    --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient wash behind the fold. Fixed so it doesn't scroll away awkwardly. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(720px 420px at 12% -8%, rgba(34,211,238,.13), transparent 65%),
        radial-gradient(680px 460px at 92% 4%, rgba(251,191,36,.09), transparent 62%),
        radial-gradient(900px 600px at 50% 108%, rgba(52,211,153,.07), transparent 70%);
}

main, header, footer { position: relative; z-index: 1; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--prose); }

/* ==========================  nav  ========================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(6,7,10,.72);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease);
}

.nav.stuck { border-bottom-color: var(--border); }

.nav-in {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.nav-logo img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.nav-logo span { font-weight: 700; font-size: 1.06rem; letter-spacing: -.02em; color: var(--text); }
.nav-logo span i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: .95rem;
    padding: 8px 13px;
    border-radius: 9px;
    transition: color .2s, background .2s;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }

@media (max-width: 620px) {
    .nav-links a.hide-sm { display: none; }
}

/* ==========================  buttons  ========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: .97rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .25s, background .2s, border-color .2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad);
    color: #050608;
    box-shadow: 0 6px 26px -8px rgba(34,211,238,.55);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(34,211,238,.65); }

.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border-lit); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }

.btn-sm { padding: 9px 17px; font-size: .9rem; border-radius: 10px; }

/* ==========================  type  ========================== */

h1, h2, h3, h4 { letter-spacing: -.032em; line-height: 1.12; margin: 0; font-weight: 700; }

h1 { font-size: clamp(2.4rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.9vw, 2.6rem); line-height: 1.16; }
h3 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0 0 18px; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }

strong { color: #fff; font-weight: 650; }

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .8rem;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 20px;
}

.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    border-radius: 2px;
    background: var(--grad);
}

.lead { font-size: clamp(1.06rem, 2vw, 1.24rem); color: var(--text-2); line-height: 1.62; }

.dim { color: var(--text-2); }
.small { font-size: .92rem; }

/* ==========================  sections  ========================== */

section { padding: 92px 0; }
section.tight { padding: 62px 0; }

.sec-head { max-width: 660px; margin-bottom: 52px; }
.sec-head p { margin-top: 18px; margin-bottom: 0; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

/* ==========================  hero  ========================== */

.hero { padding: 84px 0 76px; }

.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 620px; margin-bottom: 36px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 11px;
    border-radius: 100px;
    border: 1px solid var(--border-lit);
    background: rgba(255,255,255,.03);
    font-size: .85rem;
    color: var(--text-2);
    margin-bottom: 26px;
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(52,211,153,.16); }

/* ==========================  grid + cards  ========================== */

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 940px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 28px;
    transition: transform .28s var(--ease), border-color .28s, box-shadow .28s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--border-lit);
    box-shadow: 0 18px 44px -22px rgba(0,0,0,.9);
}

.card h3 { margin-bottom: 11px; }
.card p { color: var(--text-2); margin-bottom: 0; font-size: .97rem; }
.card p + p { margin-top: 13px; }

.card-flat { background: rgba(255,255,255,.02); }
.card-flat:hover { transform: none; box-shadow: none; }

/* icon chip */
.ico {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    background: var(--grad-soft);
    border: 1px solid var(--border-lit);
}

.ico svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico.amber svg { stroke: var(--amber); }
.ico.teal svg { stroke: var(--teal); }
.ico.rose svg { stroke: var(--rose); }

/* numbered step */
.step-n {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    font-weight: 700; font-size: 1rem;
    background: var(--grad);
    color: #050608;
    margin-bottom: 18px;
}

/* ==========================  stats  ========================== */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--bg-2); padding: 28px 24px; }
.stat b { display: block; font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 9px; font-size: .89rem; color: var(--text-2); }

@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ==========================  callouts  ========================== */

.note {
    border-radius: var(--r);
    padding: 28px;
    border: 1px solid var(--border-lit);
    background: linear-gradient(140deg, rgba(251,191,36,.07), rgba(251,113,133,.04));
}

.note.good { background: linear-gradient(140deg, rgba(52,211,153,.08), rgba(34,211,238,.04)); }
.note h3 { margin-bottom: 12px; }
.note p:last-child { margin-bottom: 0; }
.note p { color: var(--text-2); }

/* ==========================  lists  ========================== */

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { position: relative; padding-left: 30px; margin-bottom: 13px; color: var(--text-2); }
ul.plain li::before {
    content: "";
    position: absolute; left: 3px; top: .62em;
    width: 13px; height: 7px;
    border-left: 2px solid var(--teal);
    border-bottom: 2px solid var(--teal);
    transform: rotate(-45deg);
}
ul.plain.no li::before {
    border: 0;
    left: 4px; top: .55em;
    width: 11px; height: 11px;
    background:
        linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,
        linear-gradient(currentColor,currentColor) center/2px 100% no-repeat;
    color: var(--rose);
    transform: rotate(45deg);
}

.taglist { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    font-size: .88rem;
    color: var(--text-2);
    transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--border-lit); color: var(--text); }

/* ==========================  table  ========================== */

.scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }

table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }

th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: rgba(255,255,255,.025); color: var(--text-3); font-weight: 650; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td.dim, th.dim { color: var(--text-2); }
.yes { color: var(--teal); font-weight: 650; }
.no { color: var(--text-3); }

/* ==========================  faq  ========================== */

details {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0;
    margin-bottom: 11px;
    background: rgba(255,255,255,.02);
    transition: border-color .2s;
}
details[open] { border-color: var(--border-lit); }
summary {
    cursor: pointer;
    padding: 19px 24px;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "";
    margin-left: auto;
    width: 9px; height: 9px;
    border-right: 2px solid var(--text-3);
    border-bottom: 2px solid var(--text-3);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s var(--ease);
    flex: none;
}
details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
details .body { padding: 0 24px 21px; color: var(--text-2); font-size: .97rem; }
details .body p:last-child { margin-bottom: 0; }

/* ==========================  cta band  ========================== */

.band {
    border: 1px solid var(--border-lit);
    border-radius: 26px;
    padding: 62px 40px;
    text-align: center;
    background:
        radial-gradient(620px 260px at 50% 0%, rgba(34,211,238,.13), transparent 70%),
        linear-gradient(180deg, var(--surface), var(--bg-2));
}
.band h2 { margin-bottom: 18px; }
.band p { max-width: 520px; margin: 0 auto 30px; color: var(--text-2); }
.band .hero-cta { justify-content: center; }

/* ==========================  footer  ========================== */

footer { border-top: 1px solid var(--border); padding: 56px 0 44px; margin-top: 40px; }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 760px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
.f-brand p { color: var(--text-2); font-size: .93rem; max-width: 320px; margin: 16px 0 0; }
footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); margin-bottom: 15px; font-weight: 650; }
footer nav { display: flex; flex-direction: column; gap: 11px; }
footer nav a { color: var(--text-2); text-decoration: none; font-size: .93rem; }
footer nav a:hover { color: var(--cyan); }
.f-legal { border-top: 1px solid var(--border); padding-top: 28px; color: var(--text-3); font-size: .85rem; }
.f-legal p { margin-bottom: 10px; }
.f-legal a { color: var(--text-2); }

/* ==========================  scroll reveal  ========================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .card:hover, .btn:hover { transform: none; }
}

/* ==========================  light theme  ========================== */

@media (prefers-color-scheme: light) {
    :root {
        --bg: #fbfcfd;
        --bg-2: #ffffff;
        --surface: #ffffff;
        --surface-2: #f4f6f9;
        --border: #e4e8ee;
        --border-lit: #cfd6e0;
        --text: #0c0f14;
        --text-2: #4d5766;
        --text-3: #7b8698;
        --cyan: #0891b2;
        --teal: #059669;
        --amber: #b45309;
        --rose: #e11d48;
        --grad: linear-gradient(115deg, #0891b2 0%, #059669 55%, #b45309 100%);
    }
    body::before {
        background:
            radial-gradient(720px 420px at 12% -8%, rgba(8,145,178,.09), transparent 65%),
            radial-gradient(680px 460px at 92% 4%, rgba(180,83,9,.06), transparent 62%);
    }
    .nav { background: rgba(251,252,253,.8); }
    .btn-primary { color: #fff; }
    .nav-logo img { background: #06070a; }
    .card:hover { box-shadow: 0 18px 40px -26px rgba(12,15,20,.28); }
    strong { color: #000; }
}
