/* ==========================================================================
   AIUNIVERS - MODERN DARK THEME STYLESHEET
   Darker Purple Mix & Electric Violet Blend + Editorial Serif & Technical Mono
   Pure HTML/CSS Large Typographic Footer + Expansive Fluid Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@800;900&display=swap');

:root {
    --void: #07080b;
    --paper: #0c0e13;
    --paper-2: #12151d;
    --paper-3: #181c27;
    --paper-trans: rgba(12, 14, 19, 0.88);

    --ink: #f2f0ea;
    --ink-bright: #ffffff;
    --grey: #9ca1ad;
    --dim: #5c6270;

    --rule: rgba(242, 240, 234, 0.1);
    --faint: rgba(242, 240, 234, 0.05);

    /* Theme Color: Darker Purple Mix & Deep Royal Violet Blend (Matched to reference image) */
    --purple: #9333ea;
    --purple-light: #c084fc;
    --purple-vibrant: #6f00ff;
    --purple-mid: #5200b8;
    --purple-dark: #340073;
    --purple-deep: #1d0042;
    --purple-night: #0e0021;
    --purple-void: #06000e;

    --acc: #6200ea;
    --acc-hover: #7712fc;
    --acc-soft: rgba(111, 0, 255, 0.15);
    --acc-border: rgba(147, 51, 234, 0.4);
    --acc-gradient: linear-gradient(135deg, #6f00ff 0%, #5200b8 40%, #340073 75%, #180036 100%);
    --acc-gradient-hover: linear-gradient(135deg, #842bf7 0%, #6f00ff 45%, #420094 100%);
    --acc-glow: rgba(111, 0, 255, 0.45);

    /* Privacy emerald highlight */
    --privacy: #34d399;
    --privacy-soft: rgba(52, 211, 153, 0.12);
    --privacy-border: rgba(52, 211, 153, 0.3);

    --serif: "Newsreader", "Iowan Old Style", "Playfair Display", Georgia, serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing & Layout Tokens */
    --pad: clamp(24px, 4.5vw, 72px);
    --col-margin: clamp(10.5rem, 13vw, 15rem);
    --gutter: clamp(32px, 4.5vw, 68px);

    --ease: cubic-bezier(.22, .61, .24, 1);
    --out: cubic-bezier(.16, 1, .3, 1);
    --io: cubic-bezier(.65, 0, .35, 1);

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .95 0 0 0 0 .95 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Base reset & typography */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background-color: var(--void);
    color: var(--ink);
    font-family: var(--serif);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    font-variant-numeric: lining-nums;
    scroll-behavior: smooth;
    font-size: 18px;
    line-height: 1.55;
}

body {
    background-color: var(--void);
    background-image: var(--grain);
    color: var(--ink);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: var(--purple-vibrant);
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--rule);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover,
a:focus-visible {
    color: var(--purple-light);
    text-decoration-color: currentColor;
}

:focus-visible {
    outline: 1px solid var(--purple);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
p,
figure,
dl,
dd,
ol,
ul,
table {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Monospace Micro-typography */
.masthead,
.contents,
.opening-note,
.sub,
.chapter-head .label,
.entry-margin,
.meta-row,
.tags,
.fig-cap,
.fig,
.origin-flow,
.bridge,
.layers,
.side .when,
.side .mark,
.plate-head,
.readout,
.plate-btn,
.hero-cap,
.hero-next,
.privacy-badge,
.pill,
.spec-label,
.pricing-meta,
.status-pill {
    font-family: var(--mono);
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Status Indicator Dot */
.led {
    background: var(--privacy);
    vertical-align: 0.05em;
    border-radius: 50%;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    display: inline-block;
    position: relative;
}

.led::after {
    content: "";
    border: 1px solid var(--privacy);
    opacity: 0;
    border-radius: 50%;
    position: absolute;
    inset: -2px;
    animation: ping 2.6s var(--out) infinite;
}

@keyframes ping {
    0% {
        opacity: 0.85;
        transform: scale(1);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(3.2);
    }
}

/* Top Progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #9333ea 0%, #6f00ff 50%, #420094 100%);
    width: 0%;
    z-index: 1000;
    pointer-events: none;
    transition: width 0.1s linear;
}

/* Top Masthead Navbar (Logo only on left) */
.masthead {
    padding: 24px clamp(24px, 4vw, 64px) 20px;
    color: var(--grey);
    background: rgba(7, 8, 11, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    justify-content: space-between;
    align-items: center;
    display: flex;
    position: sticky;
    top: 0;
    z-index: 100;
}

.masthead::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: clamp(24px, 4vw, 64px);
    right: clamp(24px, 4vw, 64px);
    height: 1px;
    background: var(--rule);
}

.masthead-left {
    display: flex;
    align-items: center;
}

.masthead-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.masthead-logo img {
    height: 28px;
    width: auto;
}

.contents {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.contents a {
    color: var(--grey);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 11.5px;
}

.contents a:hover,
.contents a:focus-visible {
    color: var(--ink-bright);
}

.masthead-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-login {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--paper-2);
    border: 1px solid var(--rule);
    padding: 8px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-login:hover {
    color: var(--ink-bright);
    border-color: var(--purple);
    background: var(--acc-soft);
}

/* ==========================================================================
   FREE-RANGE EXPANSIVE PAGE CONTAINER
   ========================================================================== */
.page {
    max-width: 1640px;
    width: 93%;
    padding: 0 0 60px;
    margin: 0 auto;
    position: relative;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding: clamp(60px, 9vh, 120px) 0 clamp(70px, 10vh, 130px);
    border-bottom: 1px solid var(--rule);
    overflow: visible;
}

.hero-backdrop-glow {
    position: absolute;
    top: -15%;
    right: 5%;
    width: 850px;
    height: 850px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 0, 255, 0.18) 0%, rgba(52, 0, 115, 0.12) 45%, rgba(14, 0, 33, 0.05) 70%, transparent 85%);
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.opening-note {
    color: var(--dim);
    margin-bottom: clamp(16px, 2.5vh, 26px);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.opening-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--privacy-border);
    background: var(--privacy-soft);
    color: var(--privacy);
    border-radius: 2px;
    font-size: 10.5px;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(54px, 6.2vw, 96px);
    font-weight: 330;
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: var(--ink-bright);
    margin-bottom: 24px;
}

.hero-title .title-italic {
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 30%, #9333ea 65%, #6f00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .lede {
    font-family: var(--serif);
    font-size: clamp(21px, 1.8vw, 26px);
    font-weight: 350;
    line-height: 1.45;
    color: var(--grey);
    max-width: 48ch;
    margin-bottom: 30px;
}

.hero-privacy-callout {
    border-left: 2px solid var(--privacy);
    padding: 14px 20px;
    background: rgba(52, 211, 153, 0.05);
    margin-bottom: 34px;
    max-width: 52ch;
}

.hero-privacy-callout p {
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink);
}

.hero-privacy-callout b {
    color: var(--privacy);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
}

/* Darker Purple Mix & Electric Violet Button */
.btn-primary {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--acc-gradient);
    border: 1px solid rgba(168, 85, 247, 0.4);
    padding: 13px 26px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s var(--out);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 24px var(--acc-glow);
}

.btn-primary:hover {
    background: var(--acc-gradient-hover);
    color: #ffffff;
    border-color: #9333ea;
    transform: translateY(-2px);
    box-shadow: 0 8px 34px rgba(111, 0, 255, 0.55);
}

.btn-secondary {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--paper-2);
    border: 1px solid var(--rule);
    padding: 13px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    color: var(--ink-bright);
    border-color: var(--purple);
    background: var(--paper-3);
    transform: translateY(-1px);
}

.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin-top: 10px;
}

.hero-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 450;
    letter-spacing: 0.02em;
    color: #e2e8f0;
}

.hero-meta-row i {
    color: #c084fc;
    font-size: 14px;
    filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.7));
}

/* ==========================================================================
   HERO OVERLAPPING FAN GALLERY
   ========================================================================== */
.hero-gallery-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    position: relative;
}

.hero-gallery {
    display: flex;
    gap: 0;
    justify-content: flex-end;
    align-items: center;
    padding: 2.5rem 0;
    position: relative;
    width: 100%;
}

.hero-card {
    flex: 0 0 clamp(280px, 20vw, 380px);
    width: clamp(280px, 20vw, 380px);
    border-radius: 22px;
    overflow: hidden;
    background: #0f1118;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform-origin: center bottom;
    transition: transform 0.45s cubic-bezier(.2, .9, .3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    position: relative;
}

.hero-card+.hero-card {
    margin-left: clamp(-160px, -11vw, -120px);
}

.hero-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3/4.2;
    object-fit: cover;
    transition: transform 0.45s ease;
    filter: brightness(0.95) contrast(1.03);
}

.hero-card-left {
    z-index: 1;
    transform: rotate(-7deg) translateY(12px);
}

.hero-card-center {
    z-index: 2;
    transform: translateY(0);
}

.hero-card-right {
    z-index: 3;
    transform: rotate(7deg) translateY(12px);
}

.hero-card:hover {
    transform: translateY(-16px) scale(1.05) rotate(0deg);
    z-index: 10 !important;
    border-color: var(--purple-vibrant);
    box-shadow: 0 50px 130px rgba(0, 0, 0, 0.98), 0 0 35px var(--acc-glow);
}

.hero-card:hover img {
    filter: brightness(1.03);
}

/* Continuous Provider Ribbon Marquee */
.providers-ribbon {
    margin: 0;
    overflow: hidden;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    padding: 16px 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.ribbon-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
}

.ribbon-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ribbon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink);
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.ribbon-item img {
    height: 22px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   CHAPTER ARCHITECTURE (GENEROUS SECTION DIVIDERS & SPACING)
   ========================================================================== */
.chapter {
    padding-top: clamp(80px, 12vh, 140px);
    padding-bottom: clamp(70px, 11vh, 130px);
    position: relative;
    border-top: 1px solid var(--rule);
}

.chapter-layout {
    display: grid;
    grid-template-columns: var(--col-margin) minmax(0, 1fr);
    column-gap: var(--gutter);
    align-items: start;
}

.chapter-margin {
    position: sticky;
    top: 96px;
    padding-bottom: 24px;
}

.chapter-head .num {
    font-family: var(--serif);
    letter-spacing: -0.06em;
    background: linear-gradient(180deg, #d8b4fe 0%, #9333ea 45%, #6200ea 75%, #340073 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(74px, 7vw, 120px);
    font-weight: 280;
    line-height: 1.05;
    padding-top: 0.14em;
    display: inline-block;
    margin-bottom: 8px;
}

.chapter-head.privacy-head .num {
    background: linear-gradient(180deg, #6ee7b7 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.chapter-head .label {
    text-transform: uppercase;
    display: block;
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 0.14em;
}

.chapter-margin .sub {
    color: var(--dim);
    margin-top: 8px;
    display: block;
}

.chapter-body {
    position: relative;
    width: 100%;
}

.chapter-body .entry-title {
    font-family: var(--serif);
    letter-spacing: -0.03em;
    font-size: clamp(38px, 4.4vw, 64px);
    font-weight: 350;
    line-height: 1.05;
    color: var(--ink-bright);
    margin-bottom: 22px;
}

.entry-title .small {
    font-family: var(--mono);
    letter-spacing: 0.14em;
    font-size: 11px;
    color: var(--purple-light);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.entry-title .small.privacy {
    color: var(--privacy);
}

.chapter-body .intro {
    font-family: var(--serif);
    font-size: clamp(20px, 1.8vw, 25px);
    line-height: 1.45;
    color: var(--grey);
    max-width: 58ch;
    margin-bottom: 36px;
}

.chapter-body p {
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--grey);
    max-width: 72ch;
}

.chapter-body p+p {
    margin-top: 1.1em;
}

/* ==========================================================================
   CHAPTER 01: PRIVACY FIRST ARCHITECTURE
   ========================================================================== */
.privacy-flow-diagram {
    margin: 40px 0;
    border: 1px solid var(--rule);
    background: var(--paper-2);
    padding: 28px;
    position: relative;
}

.diagram-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 14px;
    margin-bottom: 24px;
}

.privacy-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.privacy-step-box {
    border: 1px solid var(--rule);
    background: var(--paper);
    padding: 20px;
    position: relative;
    transition: border-color 0.25s, transform 0.25s;
}

.privacy-step-box:hover {
    border-color: var(--privacy);
    transform: translateY(-2px);
}

.privacy-step-num {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--privacy);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.privacy-step-title {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--ink-bright);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.privacy-step-desc {
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.55;
    color: var(--grey);
}

.privacy-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 44px;
}

.pillar-card {
    border-top: 1px solid var(--rule);
    padding-top: 24px;
}

.pillar-kicker {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--privacy);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pillar-title {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--ink-bright);
    margin-bottom: 10px;
    font-weight: 400;
}

.pillar-card p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--grey);
}

/* ==========================================================================
   CHAPTER 02: AVAILABLE PROVIDERS
   ========================================================================== */
.providers-intro-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.provider-card {
    border: 1px solid var(--rule);
    background: var(--paper);
    padding: 22px;
    transition: all 0.25s var(--out);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.provider-card:hover {
    border-color: var(--purple-vibrant);
    background: var(--paper-2);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.provider-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.provider-icon-frame {
    width: 48px;
    height: 48px;
    border: 1px solid var(--rule);
    background: var(--paper-2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    flex-shrink: 0;
}

.provider-icon-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.provider-name-wrap {
    flex: 1;
    min-width: 0;
}

.provider-name {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--ink-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.provider-role {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.provider-desc {
    font-family: var(--sans);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--grey);
    margin-bottom: 18px;
    flex-grow: 1;
}

.provider-footer {
    border-top: 1px solid var(--faint);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--dim);
}

.provider-status {
    display: inline-flex;
    align-items: center;
    color: var(--privacy);
}

.provider-status i {
    width: 5px;
    height: 5px;
    background: var(--privacy);
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

/* ==========================================================================
   CHAPTER 03: IMAGE STUDIO (PRO EDITING - RESIZED & PROPORTIONED)
   ========================================================================== */
.studio-window-frame {
    margin: 36px 0;
    border: 1px solid var(--rule);
    background: var(--paper-2);
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
    max-width: 980px;
    border-radius: 12px;
    overflow: hidden;
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
}

.traffic-dots {
    display: flex;
    gap: 7px;
}

.traffic-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.traffic-dot.red {
    background: #ef4444;
}

.traffic-dot.amber {
    background: #f59e0b;
}

.traffic-dot.green {
    background: #10b981;
}

.window-title {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--dim);
}

.studio-screen {
    max-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    background: #000;
}

.studio-screen img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
    display: block;
}

.studio-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 36px;
    max-width: 980px;
}

.studio-feature-item {
    border-left: 1px solid var(--rule);
    padding-left: 20px;
}

.studio-feature-item h4 {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--ink-bright);
    margin-bottom: 8px;
}

.studio-feature-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--grey);
}

.studio-action-row {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* ==========================================================================
   CHAPTER 04: TOOLKIT & CAPABILITIES
   ========================================================================== */
.tools-ledger {
    border-top: 1px solid var(--rule);
    margin-top: 36px;
}

.tool-row {
    display: grid;
    grid-template-columns: 4rem 15rem minmax(0, 1fr) 11rem;
    gap: 20px;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--faint);
    transition: background-color 0.2s ease;
}

.tool-row:hover {
    background-color: var(--paper-2);
}

.tool-idx {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
}

.tool-name {
    font-family: var(--mono);
    font-size: 13.5px;
    color: var(--ink-bright);
    letter-spacing: 0.08em;
    font-weight: 500;
}

.tool-desc {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--grey);
    line-height: 1.55;
}

.tool-tag {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--purple-light);
    text-align: right;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   CHAPTER 05: DEVELOPER API
   ========================================================================== */
.api-spec-box {
    margin: 36px 0;
    border: 1px solid var(--rule);
    background: var(--paper-2);
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
}

.copy-btn {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    color: var(--grey);
    border: 1px solid var(--rule);
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    color: var(--purple-light);
    border-color: var(--purple);
}

.code-content {
    padding: 24px;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--ink);
    overflow-x: auto;
}

.code-content .hl-cmd {
    color: var(--purple-light);
    font-weight: 600;
}

.code-content .hl-flag {
    color: var(--privacy);
}

.code-content .hl-str {
    color: #fde047;
}

.code-content .hl-url {
    color: var(--purple);
}

.api-telemetry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule);
    background: var(--paper);
}

.telemetry-item {
    padding: 14px 20px;
    border-right: 1px solid var(--rule);
}

.telemetry-item:last-child {
    border-right: none;
}

.telemetry-k {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 4px;
}

.telemetry-v {
    font-family: var(--mono);
    font-size: 14.5px;
    color: var(--ink-bright);
    font-weight: 500;
}

.telemetry-v.green {
    color: var(--privacy);
}

/* ==========================================================================
   CHAPTER 06: MEMBER BENEFITS
   ========================================================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 36px;
}

.benefit-card {
    border: 1px solid var(--rule);
    background: var(--paper);
    padding: 28px 24px;
    transition: all 0.25s var(--out);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
}

.benefit-card:hover {
    border-color: var(--purple);
    background: var(--paper-2);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.benefit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.benefit-kicker {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--purple-light);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefit-kicker i {
    color: var(--purple);
}

.benefit-title {
    font-family: var(--serif);
    font-size: 23px;
    color: var(--ink-bright);
    margin-bottom: 10px;
    font-weight: 400;
}

.benefit-card p {
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--grey);
    margin: 0;
}

/* ==========================================================================
   CHAPTER 07: PRICING & SUBSCRIPTION PACKAGES
   ========================================================================== */
/* Crucial Notice Card for Pricing area (Matching original site with pulsing border) */
.notice-card {
    margin: 0 0 28px 0;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, rgba(38, 12, 65, 0.7) 0%, rgba(18, 21, 29, 0.98) 100%);
    border-radius: 12px;
    border: 1px solid rgba(192, 132, 252, 0.45);
    box-shadow: 0 4px 24px rgba(111, 0, 255, 0.15);
    position: relative;
}

.gradient-pulse-border {
    animation: noticePulseGlow 2.4s ease-in-out infinite;
}

@keyframes noticePulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.25), 0 4px 20px rgba(0, 0, 0, 0.5);
        border-color: rgba(192, 132, 252, 0.4);
    }

    50% {
        box-shadow: 0 0 18px 4px rgba(168, 85, 247, 0.45), 0 8px 30px rgba(111, 0, 255, 0.3);
        border-color: rgba(216, 180, 254, 0.85);
    }
}

.notice-card .notice-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(147, 51, 234, 0.22);
    border-radius: 50%;
    border: 1px solid rgba(192, 132, 252, 0.4);
    color: #e9d5ff;
    flex: 0 0 44px;
}

.notice-card .notice-icon i {
    font-size: 20px;
}

.notice-card .notice-text {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 550;
    color: #f1f5f9;
    line-height: 1.5;
}

.notice-card .notice-text a {
    color: var(--purple-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pricing-notice {
    border: 1px solid var(--rule);
    background: var(--paper);
    padding: 16px 22px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--grey);
    border-radius: 4px;
}

.pricing-notice i {
    color: var(--purple-light);
    font-size: 18px;
    flex-shrink: 0;
}

.pricing-notice a {
    color: var(--purple-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.pricing-notice a:hover {
    color: #ffffff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.pricing-card {
    border: 1px solid var(--rule);
    background: var(--paper);
    padding: 34px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s var(--out);
    border-radius: 6px;
}

.pricing-card:hover {
    border-color: var(--purple-vibrant);
    background: var(--paper-2);
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.pricing-card.popular {
    border-color: var(--purple-vibrant);
    background: var(--paper-2);
}

.popular-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple-light);
    padding: 3px 9px;
    border: 1px solid var(--purple);
    background: var(--acc-soft);
}

.tier-code {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    display: block;
}

.pricing-header h3 {
    font-family: var(--serif);
    font-size: 30px;
    color: var(--ink-bright);
    margin-bottom: 8px;
    font-weight: 400;
}

.pricing-amount {
    font-family: var(--serif);
    font-size: 46px;
    font-weight: 300;
    color: var(--ink-bright);
    line-height: 1;
    margin: 18px 0 14px;
}

.pricing-amount span {
    font-family: var(--mono);
    font-size: 13.5px;
    color: var(--dim);
    margin-left: 4px;
}

.pricing-desc {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 22px;
    min-height: 42px;
}

.pricing-features {
    list-style: none;
    border-top: 1px solid var(--faint);
    padding-top: 18px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--grey);
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.pricing-features li i {
    color: var(--purple-light);
    font-size: 11px;
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Full Width Tiers */
.full-tier-row {
    border: 1px solid var(--rule);
    background: var(--paper);
    padding: 30px 36px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    transition: border-color 0.25s;
    border-radius: 6px;
}

.full-tier-row:hover {
    border-color: var(--purple-vibrant);
    background: var(--paper-2);
}

.full-tier-info h3 {
    font-family: var(--serif);
    font-size: 26px;
    color: var(--ink-bright);
    margin-bottom: 6px;
}

.full-tier-info p {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--grey);
}

.full-tier-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.full-tier-checklist li {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--grey);
    display: flex;
    align-items: center;
    gap: 10px;
}

.full-tier-checklist li i {
    color: var(--purple-light);
    font-size: 10.5px;
}

.full-tier-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.full-tier-price {
    font-family: var(--serif);
    font-size: 36px;
    color: var(--ink-bright);
    line-height: 1;
}

.full-tier-price span {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--dim);
}

/* Creator Club Section */
.creator-club-box {
    border: 1px solid var(--rule);
    background: var(--paper-2);
    padding: 36px;
    margin-top: 32px;
    border-radius: 8px;
}

.creator-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 32px;
    align-items: center;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 28px;
    margin-bottom: 28px;
}

.creator-posts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.creator-post-item {
    border: 1px solid var(--rule);
    background: var(--paper);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    border-radius: 6px;
}

.creator-post-item:hover {
    border-color: var(--purple-vibrant);
    transform: translateY(-3px);
}

.creator-post-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.creator-post-caption {
    padding: 16px 18px;
}

.creator-post-tag {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--purple-light);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    display: block;
}

.creator-post-caption h5 {
    font-family: var(--serif);
    font-size: 16.5px;
    color: var(--ink);
    line-height: 1.35;
    font-weight: 400;
}

/* ==========================================================================
   CHAPTER 07: FREQUENTLY ASKED QUESTIONS
   ========================================================================== */
.faq-accordion {
    border-top: 1px solid var(--rule);
    margin-top: 36px;
}

.faq-item {
    border-bottom: 1px solid var(--rule);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--ink-bright);
    transition: color 0.2s ease;
}

.faq-trigger:hover {
    color: var(--purple-light);
}

.faq-question {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
}

.faq-icon {
    font-family: var(--mono);
    font-size: 18px;
    color: var(--dim);
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    color: var(--purple-light);
}

.faq-answer {
    padding-bottom: 24px;
    display: none;
}

.faq-item.is-open .faq-answer {
    display: block;
}

.faq-answer p {
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--grey);
}

/* Final CTA Section */
.cta-banner-box {
    margin-top: 100px;
    margin-bottom: 40px;
    padding: clamp(40px, 5vw, 68px);
    border: 1px solid rgba(147, 51, 234, 0.25);
    background: linear-gradient(135deg, rgba(29, 0, 66, 0.35) 0%, rgba(18, 21, 29, 0.95) 55%, var(--paper-2) 100%);
    border-radius: 8px;
    position: relative;
}

/* ==========================================================================
   BEAUTIFUL EXPANSIVE FOOTER WITH PURE HTML/CSS LARGE TYPOGRAPHY WATERMARK
   ========================================================================== */
footer.site-foot-v2,
footer.colophon {
    border-top: 1px solid var(--rule);
    padding: 6rem 0 0 0;
    margin-top: 10rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, transparent 0%, rgba(14, 0, 33, 0.5) 40%, rgba(52, 0, 115, 0.28) 72%, rgba(111, 0, 255, 0.22) 100%);
}

.footer-top,
.colophon-inner {
    display: grid;
    grid-template-columns: 1.2fr 3fr;
    gap: 4rem;
    position: relative;
    z-index: 3;
    max-width: 1640px;
    width: 93%;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.brand-mark img {
    height: 42px;
    width: auto;
}

.footer-brand iframe {
    border: none;
}

.copyright {
    color: var(--dim);
    font-family: var(--sans);
    font-size: 13.5px;
    line-height: 1.6;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 2.5rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section h4 {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ink-bright);
    letter-spacing: 0.12em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.footer-section a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1.85;
    display: inline-block;
}

.footer-section a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transform: translateX(2px);
}

/* Pure HTML & CSS Large Typographic Watermark (Discord-Style Subtle Clean Watermark) */
.footer-bottom {
    position: relative;
    width: 100%;
    margin-top: 5rem;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--faint);
    padding: 0 16px;
    box-sizing: border-box;
}

.footer-wordmark-vector {
    width: 100%;
    max-width: 100%;
    text-align: center;
    line-height: 1.1;
    overflow: visible;
    padding-top: 32px;
    padding-bottom: 0;
    margin-bottom: -10px;
    box-sizing: border-box;
}

.footer-wordmark-vector span {
    display: inline-block;
    font-family: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 900;
    font-size: clamp(48px, 13vw, 230px);
    letter-spacing: -0.035em;
    color: rgba(237, 233, 254, 0.7);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(221, 214, 254, 0.55) 60%, rgba(196, 181, 253, 0.35) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: none;
    transform: translateY(12%);
    padding-right: 0.08em;
    padding-left: 0.02em;
    box-sizing: border-box;
    filter: none;
    user-select: none;
    pointer-events: none;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.demo-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.demo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 8, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.demo-modal__dialog {
    position: relative;
    z-index: 2;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    max-width: 520px;
    width: 100%;
    padding: 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
    border-radius: 8px;
}

.demo-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--grey);
    font-family: var(--mono);
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-modal__close:hover {
    color: var(--purple-light);
    border-color: var(--purple);
}

.demo-modal__title {
    font-family: var(--serif);
    font-size: 26px;
    color: var(--ink-bright);
    margin-bottom: 10px;
}

.demo-modal__subtitle {
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--grey);
    margin-bottom: 20px;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.demo-form__label {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.demo-form__input,
.demo-form__textarea {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.demo-form__input:focus,
.demo-form__textarea:focus {
    outline: none;
    border-color: var(--purple);
}

.demo-form__fineprint {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--dim);
    margin-top: 6px;
}

.subscription-ack {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subscription-ack__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--grey);
    cursor: pointer;
}

.subscription-ack__check input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--purple);
}

.btn.is-disabled,
.btn-primary.is-disabled,
.btn-primary[aria-disabled="true"],
.btn-secondary.is-disabled,
.btn-secondary[aria-disabled="true"],
.is-disabled {
    opacity: 0.28 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #14161f !important;
    color: #64748b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    transform: none !important;
    filter: grayscale(100%) !important;
}

body.modal-open {
    overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-gallery-wrap {
        justify-content: center;
        margin-top: 30px;
    }

    .hero-gallery {
        justify-content: center;
    }

    .hero-card {
        flex: 0 0 clamp(240px, 30vw, 320px);
        width: clamp(240px, 30vw, 320px);
    }

    .hero-card+.hero-card {
        margin-left: -100px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .chapter-layout {
        grid-template-columns: 9rem minmax(0, 1fr);
        column-gap: 32px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .full-tier-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .full-tier-action {
        align-items: flex-start;
    }

    .creator-top-grid {
        grid-template-columns: 1fr;
    }

    .creator-posts-row {
        grid-template-columns: 1fr;
    }

    .privacy-steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .privacy-pillars-grid {
        grid-template-columns: 1fr;
    }

    .studio-features-grid {
        grid-template-columns: 1fr;
    }

    .api-telemetry {
        grid-template-columns: 1fr 1fr;
    }

    .tool-row {
        grid-template-columns: 3rem 11rem minmax(0, 1fr);
    }

    .tool-tag {
        display: none;
    }
}

@media (max-width: 768px) {
    .masthead {
        padding: 16px 20px;
    }

    .contents {
        display: none;
    }

    .chapter {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .chapter-layout {
        grid-template-columns: 1fr;
    }

    .chapter-margin {
        position: static;
        margin-bottom: 24px;
    }

    .hero-gallery {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-card {
        width: 88%;
        flex: 0 0 auto;
    }

    .hero-card+.hero-card {
        margin-left: 0;
    }

    .hero-card-left,
    .hero-card-center,
    .hero-card-right {
        transform: none;
    }

    .privacy-steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .tool-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* ==========================================================================
   API PAGE STYLES
   ========================================================================== */
.api-hero-section {
    position: relative;
    padding: 100px 48px 80px;
    text-align: center;
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
}

.api-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.api-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple-light);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.3);
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 24px;
}

.api-title {
    font-family: var(--serif);
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 350;
    line-height: 1.1;
    color: var(--ink-bright);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.api-title em {
    font-style: italic;
    background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 60%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.api-subtitle {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 auto 36px;
    max-width: 720px;
}

.api-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.api-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.api-stat-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 22px 18px;
    border-radius: 6px;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.api-stat-card:hover {
    border-color: rgba(192, 132, 252, 0.4);
    transform: translateY(-2px);
}

.api-stat-val {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--ink-bright);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 4px;
}

.api-stat-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* API Content Section */
.api-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 90px 48px;
    border-bottom: 1px solid var(--rule);
}

.api-section-kicker {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-section-title {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    color: var(--ink-bright);
    margin-bottom: 14px;
    line-height: 1.2;
}

.api-section-subtitle {
    font-family: var(--sans);
    font-size: 16px;
    color: var(--grey);
    margin-bottom: 44px;
    max-width: 650px;
}

/* API Feature Cards */
.api-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.api-feature-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 32px 28px;
    transition: all 0.25s var(--out);
    position: relative;
}

.api-feature-card:hover {
    border-color: rgba(192, 132, 252, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.api-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.25);
    color: var(--purple-light);
    border-radius: 6px;
    font-size: 18px;
    margin-bottom: 20px;
}

.api-feature-card h3 {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 400;
    color: var(--ink-bright);
    margin-bottom: 12px;
}

.api-feature-card p {
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.65;
    color: var(--grey);
    margin: 0;
}

/* API Capabilities Grid */
.api-caps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.api-cap-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 30px 24px;
    transition: all 0.25s var(--out);
    position: relative;
}

.api-cap-card:hover {
    border-color: rgba(192, 132, 252, 0.4);
    transform: translateY(-2px);
}

.api-cap-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--purple-light);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.api-cap-card h3 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--ink-bright);
    margin-bottom: 10px;
}

.api-cap-card p {
    font-family: var(--sans);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--grey);
    margin: 0;
}

/* API Vendors Grid */
.api-vendors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.api-vendor-tile {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    transition: all 0.2s ease;
}

.api-vendor-tile:hover {
    border-color: rgba(192, 132, 252, 0.4);
    transform: translateY(-2px);
    background: var(--paper-elevated);
}

.api-vendor-tile img {
    max-height: 38px;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0.92);
    transition: filter 0.2s ease;
}

.api-vendor-tile:hover img {
    filter: brightness(1.2);
}

/* LLM Showcase Banner */
.api-llm-banner {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.2) 0%, rgba(18, 20, 28, 0.95) 100%);
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 8px;
    padding: 36px 40px;
    text-align: center;
}

.api-llm-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(192, 132, 252, 0.35);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.api-llm-banner h3 {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--ink-bright);
    margin-bottom: 6px;
    font-weight: 400;
}

.api-llm-banner p {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 24px;
}

.api-llm-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.api-llm-logos img {
    height: 30px;
    width: auto;
    filter: brightness(0.85);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.api-llm-logos img:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* ==========================================================================
   LEGAL / POLICY PAGE STYLES
   ========================================================================== */
.policy-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 48px 120px;
}

.policy-hero {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--rule);
}

.policy-kicker {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-hero h1 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 350;
    color: var(--ink-bright);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.policy-meta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--grey);
    flex-wrap: wrap;
}

.policy-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.policy-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    align-items: start;
}

.policy-sidebar {
    position: sticky;
    top: 100px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 20px;
}

.policy-sidebar-title {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}

.policy-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.policy-nav-link {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grey);
    padding: 10px 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.policy-nav-link:hover {
    color: var(--ink-bright);
    background: rgba(255, 255, 255, 0.04);
}

.policy-nav-link.is-active {
    color: var(--purple-light);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.25);
    font-weight: 500;
}

.policy-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 48px 56px;
}

.policy-card h2 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--ink-bright);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--faint);
    line-height: 1.3;
}

.policy-card h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.policy-card h3 {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink-bright);
    margin-top: 24px;
    margin-bottom: 10px;
}

.policy-card p {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.policy-card ul,
.policy-card ol {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 20px;
    padding-left: 24px;
}

.policy-card li {
    margin-bottom: 8px;
}

.policy-card strong {
    color: var(--ink-bright);
    font-weight: 600;
}

.policy-card a {
    color: var(--purple-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.policy-card a:hover {
    color: #ffffff;
}

.policy-highlight {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 6px;
    padding: 20px 24px;
    margin: 28px 0;
}

.policy-highlight.warning {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.policy-highlight p {
    margin-bottom: 0;
    color: #e2e8f0;
}

.policy-highlight p+p {
    margin-top: 10px;
}

.policy-highlight i {
    margin-right: 8px;
    color: var(--purple-light);
}

.policy-highlight.warning i {
    color: #f87171;
}

/* Responsive Rules for API & Policy pages */
@media (max-width: 1024px) {
    .api-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .api-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .api-caps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .api-vendors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .policy-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .policy-sidebar {
        position: static;
    }

    .policy-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .api-hero-section {
        padding: 60px 20px 50px;
    }

    .api-container {
        padding: 60px 20px;
    }

    .api-stats-row {
        grid-template-columns: 1fr;
    }

    .api-features-grid {
        grid-template-columns: 1fr;
    }

    .api-caps-grid {
        grid-template-columns: 1fr;
    }

    .api-vendors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .policy-page {
        padding: 50px 20px 80px;
    }

    .policy-card {
        padding: 28px 22px;
    }
}