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

:root {
    color-scheme: dark;
    --font-sans: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

    --bg-page: #040812;
    --bg-surface: #0c162c;
    --bg-surface-alt: rgba(10, 20, 38, 0.94);
    --bg-elevated: rgba(15, 28, 52, 0.86);
    --bg-input: rgba(15, 26, 48, 0.92);
    /* Support secondary/tertiary backgrounds used in calculator layouts */
    --bg-secondary: rgba(12, 20, 44, 0.9);
    --bg-tertiary: rgba(7, 14, 32, 0.95);
    --border-color: rgba(80, 123, 195, 0.4);
    --border-strong: rgba(93, 176, 255, 0.55);

    --text-primary: #f8fbff;
    --text-secondary: rgba(224, 235, 255, 0.86);
    --text-muted: rgba(191, 207, 233, 0.6);
    --text-on-accent: #031226;

    --accent-primary: #0ea5e9;
    --accent-secondary: #2563eb;
    --accent-tertiary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #7c3aed 100%);
    --accent-soft: rgba(14, 165, 233, 0.25);
    --accent-glow: 0 0 60px rgba(14, 165, 233, 0.35);
    /* Accent text color used in inline styles */
    --text-accent: #38bdf8;

    --success-color: #46f5c7;
    --warning-color: #f5d946;
    --error-color: #ff6f91;

    --shadow-soft: 0 30px 60px -40px rgba(0, 0, 0, 0.6);
    --shadow-hard: 0 18px 40px -30px rgba(40, 68, 120, 0.6);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --content-max: min(96vw, 1400px);
}

[data-theme="light"] {
    color-scheme: light;
    --bg-page: #f6f8ff;
    --bg-surface: #ffffff;
    --bg-surface-alt: rgba(255, 255, 255, 0.92);
    --bg-elevated: rgba(246, 249, 255, 0.96);
    --bg-input: rgba(236, 242, 255, 0.95);
    --bg-secondary: rgba(228, 235, 255, 0.98);
    --bg-tertiary: rgba(238, 243, 255, 0.98);
    --border-color: rgba(162, 181, 232, 0.5);
    --border-strong: rgba(111, 150, 255, 0.4);

    --text-primary: #172036;
    --text-secondary: rgba(16, 24, 52, 0.75);
    --text-muted: rgba(16, 24, 52, 0.52);
    --text-on-accent: #04162a;

    --accent-primary: #0ea5e9;
    --accent-secondary: #3b82f6;
    --accent-tertiary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 55%, #8b5cf6 100%);
    --accent-soft: rgba(59, 130, 246, 0.18);
    --accent-glow: 0 20px 42px rgba(59, 130, 246, 0.25);
    --text-accent: #2563eb;

    --success-color: #1f8b67;
    --warning-color: #c48124;
    --error-color: #c74b6a;

    --shadow-soft: 0 24px 70px -50px rgba(10, 18, 45, 0.4);
    --shadow-hard: 0 16px 32px -26px rgba(24, 38, 75, 0.25);
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(140% 110% at 50% -10%, rgba(48, 93, 163, 0.4) 0%, rgba(7, 14, 30, 0.92) 45%, var(--bg-page) 90%);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    transition: background 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(32% 32% at 12% 18%, rgba(82, 129, 255, 0.24) 0%, transparent 68%),
        radial-gradient(40% 40% at 88% 12%, rgba(72, 196, 255, 0.2) 0%, transparent 72%),
        radial-gradient(28% 28% at 52% 88%, rgba(52, 116, 255, 0.18) 0%, transparent 78%);
    z-index: -1;
}

[data-theme="light"] body {
    background: linear-gradient(170deg, rgba(255, 255, 255, 1) 0%, rgba(246, 248, 255, 1) 55%, var(--bg-page) 100%);
}

[data-theme="light"] body::before {
    background:
        radial-gradient(30% 30% at 8% 18%, rgba(77, 125, 255, 0.22) 0%, transparent 70%),
        radial-gradient(34% 34% at 82% 10%, rgba(34, 138, 216, 0.18) 0%, transparent 75%);
}

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

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

header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: linear-gradient(120deg, rgba(6, 10, 22, 0.92), rgba(8, 14, 28, 0.72));
    border-bottom: 1px solid rgba(99, 132, 210, 0.25);
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, padding 0.3s ease;
}

[data-theme="light"] header {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 255, 0.9));
    border-bottom: 1px solid rgba(162, 181, 232, 0.5);
}

nav {
    width: var(--content-max);
    margin: 0 auto;
    padding: 1rem clamp(1.5rem, 4vw, 3rem);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.4rem;
}

nav::before {
    content: "";
    display: block;
    height: 1px;
}

.nav-spacer {
    flex: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: translate(-50%, -50%) translateY(-1px) scale(1.01);
}

.logo::after {
    content: none;
}

.logo-img {
    height: auto;
    max-height: 36px;
    width: auto;
    display: inline-block;
    margin-right: 0.4rem;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.logo .logo-img {
    max-height: 30px;
}

.logo-label {
    font-size: 2rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: transform 0.2s ease;
}

[data-theme="light"] .logo-label {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

.footer-logo {
    font-size: 1.4rem;
}

.hero-logo {
    height: 220px;
    width: auto;
    filter: drop-shadow(0 28px 70px rgba(60, 190, 255, 0.78)) brightness(1.2);
    margin-bottom: 0.25rem;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.hero-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 32px 84px rgba(96, 204, 255, 0.82)) brightness(1.24);
}

.logo:hover .logo-img,
.logo:hover .logo-label {
    transform: scale(1.003);
}

.logo .logo-part {
    display: inline-flex;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 18px 35px rgba(96, 196, 255, 0.35));
}

.logo span {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.55rem 0.85rem;
    position: relative;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    inset: auto 22% -2px 22%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-gradient);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--text-primary);
    transform: translateY(-1px);
}

nav a.active {
    color: var(--text-primary);
}

nav a:hover::after,
nav a:focus-visible::after,
nav a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(123, 97, 255, 0.35);
    background: rgba(9, 14, 30, 0.85);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(85, 240, 255, 0.7);
    box-shadow: 0 12px 30px -16px rgba(85, 240, 255, 0.6);
}

.theme-toggle:active {
    transform: scale(0.96);
}

.theme-icon {
    font-size: 1.1rem;
    line-height: 1;
}

main {
    width: 100%;
    padding: 0.5rem 0 3.5rem;
}

main > section,
main > article,
main > div:not(.hero) {
    width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.section-shell {
    width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.section-shell + .section-shell {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.section-head {
    max-width: 760px;
    margin: 0 auto 2.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.7rem);
    letter-spacing: -0.015em;
}

.section-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero {
    width: var(--content-max);
    max-width: 100%;
    border-radius: var(--radius-xl);
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.hero-grid {
    width: var(--content-max);
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 5vw, 5rem);
    border-radius: var(--radius-xl);
    background: radial-gradient(120% 120% at 85% -15%, rgba(18, 100, 200, 0.3) 0%, transparent 60%),
                radial-gradient(120% 120% at -10% 110%, rgba(114, 58, 255, 0.25) 0%, transparent 65%),
                linear-gradient(140deg, rgba(10, 16, 34, 0.98) 0%, rgba(5, 10, 22, 0.95) 50%, rgba(3, 6, 14, 0.98) 100%);
    border: 1px solid rgba(90, 120, 210, 0.35);
    box-shadow: 0 40px 80px -55px rgba(10, 50, 110, 0.6);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.7;
    pointer-events: none;
}

.hero::before {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(82, 122, 255, 0.32) 0%, transparent 65%);
    top: -200px;
    right: -160px;
}

.hero::after {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(33, 208, 243, 0.28) 0%, transparent 70%);
    bottom: -200px;
    left: -120px;
}

.hero-intro {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto clamp(1.5rem, 3vw, 2rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: clamp(0.75rem, 2vw, 2rem);
    align-items: flex-start;
    position: relative;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    text-align: left;
}

.hero-logo-sigil {
    position: absolute;
    top: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 4vw, 3.5rem);
    width: clamp(70px, 10vw, 110px);
    height: clamp(70px, 10vw, 110px);
    border-radius: 24px;
    background: rgba(6, 12, 28, 0.65);
    border: 1px solid rgba(93, 176, 255, 0.35);
    box-shadow: 0 20px 45px -28px rgba(14, 165, 233, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
}

.hero-logo-sigil img {
    width: 70%;
    height: auto;
}

[data-theme="light"] .hero-logo-sigil {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(162, 181, 232, 0.45);
    box-shadow: 0 16px 32px -24px rgba(26, 35, 70, 0.35);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.6);
    background: linear-gradient(120deg, rgba(14, 165, 233, 0.18), rgba(124, 58, 237, 0.22));
    color: var(--accent-primary);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    width: fit-content;
    position: absolute;
    top: 0;
    right: 0;
}

.hero-panels {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: stretch;
}

.hero-panel {
    background: rgba(6, 12, 28, 0.75);
    border: 1px solid rgba(69, 110, 190, 0.32);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[data-theme="light"] .hero-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 178, 255, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 40px -32px rgba(79, 70, 229, 0.2);
}

.hero-panel--visual {
    align-items: center;
    justify-content: center;
}

.hero-panel--visual img {
    width: clamp(220px, 80%, 360px);
    max-width: 100%;
    opacity: 0.95;
    animation: heroSigilPulse 8s ease-in-out infinite;
}

@keyframes heroSigilPulse {
    0% {
        transform: scale(0.98);
        filter: drop-shadow(0 14px 35px rgba(96, 196, 255, 0.25));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 24px 60px rgba(96, 196, 255, 0.55));
    }
    100% {
        transform: scale(0.98);
        filter: drop-shadow(0 14px 35px rgba(96, 196, 255, 0.25));
    }
}

.hero-panel--stack {
    gap: 1.25rem;
}

.hero-roadmap-card h3 {
    margin-bottom: 0.8rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(85, 240, 255, 0.45);
    background: rgba(12, 19, 40, 0.68);
    color: var(--accent-secondary);
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-update {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(123, 97, 255, 0.25);
    background: rgba(9, 14, 30, 0.62);
    color: var(--text-secondary);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.hero-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    margin: 1.1rem auto 0;
}

.hero-aside {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    align-items: stretch;
    width: min(100%, 480px);
}

.hero-launch-card {
    width: 100%;
}

.hero-aside .floating-card {
    width: 100%;
    text-align: left;
    align-items: flex-start;
}

.hero-mark {
    align-self: center;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 0 0.8rem;
    margin-bottom: 1rem;
}

.hero-mark img {
    height: clamp(220px, 20vw, 280px);
    width: auto;
    filter: drop-shadow(0 18px 45px rgba(60, 190, 255, 0.55)) brightness(1.1);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.hero-mark img:hover {
    transform: translateY(-1px) scale(1.01);
    filter: drop-shadow(0 28px 70px rgba(60, 190, 255, 0.7)) brightness(1.16);
}

.floating-card {
    position: relative;
    padding: clamp(1.75rem, 3vw, 2.1rem);
    border-radius: var(--radius-lg);
    background: rgba(13, 19, 40, 0.78);
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 24px 48px -32px rgba(2, 132, 199, 0.45);
    backdrop-filter: blur(18px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.floating-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 60px -40px rgba(168, 85, 247, 0.45);
}

.hero-panel--stack .floating-card {
    text-align: center;
    align-items: center;
    gap: 0.85rem;
}

.hero-panel--stack h3 {
    position: relative;
    padding-bottom: 0.35rem;
}

.hero-panel--stack h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(14, 165, 233, 0.8));
    opacity: 0.9;
}

.hero-note {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: linear-gradient(120deg, rgba(12, 19, 40, 0.92), rgba(18, 32, 64, 0.82));
    box-shadow: 0 18px 40px -30px rgba(34, 211, 238, 0.45);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #22d3ee;
    width: fit-content;
}

.action-links {
    display: grid;
    gap: 0.85rem;
    padding: 0;
    list-style: none;
}

.hero-intro .action-links {
    justify-items: center;
}

.action-links li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: left;
    width: 100%;
}

.hero-intro .action-links li {
    justify-content: center;
    text-align: center;
}

.action-links li::before {
    content: "✦";
    color: var(--accent-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(85, 240, 255, 0.45);
    background: rgba(12, 19, 40, 0.6);
    color: var(--accent-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

[data-theme="light"] .cta-button {
    box-shadow: 0 24px 60px -32px rgba(59, 130, 246, 0.35);
}

[data-theme="light"] .cta-button.secondary {
    color: #0f172a;
}

[data-theme="light"] .eyebrow {
    background: rgba(232, 238, 255, 0.95);
    border-color: rgba(96, 135, 255, 0.35);
    color: rgba(35, 56, 103, 0.85);
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    margin-top: 0;
    line-height: 1.1;
    transition: letter-spacing 0.35s ease;
}

.hero-lede {
    color: var(--text-secondary);
    font-size: 1.08rem;
    max-width: 560px;
}

.hero-copy h1 .logo-part {
    display: inline-flex;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 18px 35px rgba(96, 196, 255, 0.35));
}

.hero-copy h1 .line-break {
    display: block;
}

.hero-copy h1:hover {
    letter-spacing: -0.018em;
}

.hero-copy p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0;
    max-width: 640px;
    text-align: left;
    animation: fadeUp 0.6s ease both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.hero-intro .hero-actions {
    justify-content: flex-start;
}

.hero-copy .action-links {
    margin-top: 1.5rem;
    max-width: 540px;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.9rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(37, 99, 235, 0.92), rgba(124, 58, 237, 0.9));
    color: var(--text-on-accent);
    border: none;
    cursor: pointer;
    box-shadow: 0 18px 45px -30px rgba(14, 165, 233, 0.55);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::after {
    opacity: 1;
}

.cta-button span {
    font-size: 1.2rem;
    opacity: 0.8;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 28px 60px -35px rgba(37, 99, 235, 0.55);
}

.cta-button:active {
    transform: translateY(-1px) scale(0.99);
}

.cta-button.secondary {
    background: transparent;
    color: var(--accent-secondary);
    border: 1px solid transparent;
    box-shadow: none;
}

.cta-button.secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(14, 165, 233, 0.9));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.cta-button.secondary:hover {
    border-color: transparent;
    box-shadow: 0 16px 35px -25px rgba(85, 240, 255, 0.6);
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(79, 70, 229, 0.18));
}

[data-theme="light"] .cta-button {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.96), rgba(96, 165, 250, 0.92), rgba(14, 165, 233, 0.92));
    color: rgba(7, 16, 38, 0.92);
    box-shadow: 0 24px 60px -32px rgba(59, 130, 246, 0.35);
}

[data-theme="light"] .cta-button.secondary {
    color: rgba(37, 75, 165, 0.9);
    box-shadow: 0 12px 30px -24px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .cta-button.secondary:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(96, 165, 250, 0.16));
    color: rgba(18, 28, 56, 0.95);
}

.stat-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.hero-selector {
    margin-top: clamp(3.4rem, 5vw, 4.6rem);
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-selector label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-selector .surface {
    padding: 1.3rem 1.5rem;
    background: rgba(9, 14, 30, 0.72);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.24);
    box-shadow: 0 20px 45px -35px rgba(168, 85, 247, 0.45);
}

.hero-selector--inline {
    margin: 0;
    margin-top: clamp(1.2rem, 3vw, 2rem);
    max-width: 420px;
    width: 100%;
    justify-self: flex-start;
    align-self: flex-start;
    height: 100%;
    justify-content: center;
    text-align: left;
    align-items: flex-start;
}

.hero-selector--inline label {
    justify-content: flex-start;
}

.hero-selector--inline .surface {
    padding: 1rem 1.2rem;
}

[data-theme="light"] .hero-selector--inline .surface {
    background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 1024px) {
    .hero-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy {
        align-items: center;
        text-align: center;
    }

    .hero-selector--inline {
        margin: 0 auto clamp(1.2rem, 4vw, 2.4rem);
        max-width: 520px;
    }
}

.stat-card {
    position: relative;
    padding: 1.35rem 1.25rem;
    border-radius: var(--radius-md);
    background: linear-gradient(150deg, rgba(12, 18, 36, 0.9), rgba(10, 16, 32, 0.95));
    border: 1px solid rgba(140, 82, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(123, 97, 255, 0.32), rgba(85, 240, 255, 0.18), rgba(47, 236, 168, 0.25));
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.stat-card strong {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
}

.stat-card span {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.glass-panel {
    margin-top: 3.5rem;
    padding: 2.75rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(140deg, rgba(6, 12, 28, 0.92), rgba(3, 7, 18, 0.94));
    border: 1px solid rgba(71, 126, 210, 0.35);
    box-shadow: 0 30px 70px -45px rgba(4, 10, 28, 0.9);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 18% 22%, rgba(96, 196, 255, 0.12), transparent 60%),
                radial-gradient(circle at 78% 65%, rgba(124, 58, 237, 0.15), transparent 65%);
    opacity: 0.85;
    pointer-events: none;
}

.glass-panel h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
}

.glass-panel p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 760px;
}

.quick-panel {
    display: grid;
    gap: 2rem;
}

.quick-panel,
.quick-panel label,
.quick-panel p,
.quick-panel .helper-text {
    color: var(--text-secondary);
}

.quick-panel-header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quick-panel-header h3 {
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}

.quick-panel-header p {
    max-width: 520px;
}

.form-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
}

.helper-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-summary {
    display: grid;
    gap: 1.5rem;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: rgba(8, 13, 28, 0.85);
    border: 1px solid rgba(123, 97, 255, 0.24);
}

.quick-summary.is-profit {
    border-color: rgba(47, 236, 168, 0.45);
    box-shadow: 0 24px 48px -32px rgba(47, 236, 168, 0.55);
}

.quick-summary.is-loss {
    border-color: rgba(255, 111, 145, 0.45);
    box-shadow: 0 24px 48px -32px rgba(255, 111, 145, 0.55);
}

.quick-summary__metric {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.quick-summary__label {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quick-summary__value {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.quick-summary__value strong {
    font-size: 2.1rem;
    display: block;
}

.quick-summary__percent {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.quick-summary.is-profit .quick-summary__percent {
    color: var(--accent-tertiary);
}

.quick-summary.is-loss .quick-summary__percent {
    color: var(--error-color);
}

.detail-stack {
    display: grid;
    gap: 0.6rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.95rem 1.1rem;
    border-radius: var(--radius-sm);
    background: rgba(14, 21, 44, 0.65);
    border: 1px solid rgba(123, 97, 255, 0.18);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.quick-example {
    padding: 1.25rem 1.4rem;
    border-radius: var(--radius-md);
    background: rgba(12, 20, 44, 0.6);
    border: 1px dashed rgba(123, 97, 255, 0.3);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.quick-example strong {
    color: var(--accent-secondary);
}

[data-theme="light"] .quick-example {
    background: rgba(241, 244, 255, 0.95);
    border-color: rgba(148, 178, 255, 0.35);
    color: rgba(36, 48, 84, 0.9);
}

.quick-result {
    margin-top: 2rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2.5rem 0 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: rgba(123, 97, 255, 0.14);
    border: 1px solid rgba(123, 97, 255, 0.24);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: transform 0.3s ease, border 0.3s ease, background 0.3s ease;
}

.pill:hover {
    transform: translateY(-2px);
    border-color: rgba(85, 240, 255, 0.55);
    background: rgba(85, 240, 255, 0.18);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.25rem;
    gap: 1rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    letter-spacing: -0.01em;
}

.section-heading p {
    max-width: 420px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.section-subheading {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 3rem 0 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.gradient-section .feature-grid {
    margin-top: 1.5rem;
}

.gradient-section .cta-row {
    justify-content: center;
    margin-top: 2rem;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.accent-panel {
    border-left: 3px solid var(--accent-primary);
    padding: 1.25rem 1.25rem 1.25rem 1.75rem;
    border-radius: var(--radius-md);
    background: rgba(12, 18, 40, 0.6);
    border: 1px solid rgba(123, 97, 255, 0.12);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.4rem;
}

.metric-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, rgba(10, 16, 34, 0.85), rgba(7, 12, 32, 0.85));
    border: 1px solid rgba(123, 97, 255, 0.18);
    box-shadow: var(--shadow-soft);
}

.metric-card strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--accent-secondary);
}

.metric-card span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    gap: 0.6rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-copy {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.notice {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(123, 97, 255, 0.2);
    background: rgba(12, 20, 44, 0.55);
    color: var(--text-secondary);
    line-height: 1.7;
}

.notice strong {
    color: var(--text-primary);
}

.notice.alert {
    border-color: rgba(255, 111, 145, 0.45);
    background: rgba(255, 111, 145, 0.12);
    color: var(--text-primary);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-row .cta-button.secondary {
    border: 1px solid rgba(123, 97, 255, 0.45);
    background: transparent;
}

.cta-row .cta-button.secondary:hover {
    border-color: rgba(85, 240, 255, 0.6);
}

.card a.cta-button {
    justify-content: center;
    width: 100%;
}

.feature-card {
    position: relative;
    padding: 2.1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, rgba(16, 22, 45, 0.95), rgba(7, 10, 28, 0.92));
    border: 1px solid rgba(123, 97, 255, 0.2);
    box-shadow: var(--shadow-hard);
    transition: transform 0.35s ease, border 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 65%;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(85, 240, 255, 0.42);
    box-shadow: 0 28px 60px -35px rgba(85, 240, 255, 0.55);
}

.feature-card:hover::before {
    opacity: 1;
    transform: translateY(-8%);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.feature-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

.feature-card a::after {
    content: "↗";
    font-size: 0.9rem;
}

.info-section,
.faq-section,
.page-content,
.calculator-container,
.gradient-section {
    position: relative;
    margin-top: 3.5rem;
    padding: clamp(2rem, 3.2vw, 2.75rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, rgba(13, 19, 40, 0.92), rgba(6, 10, 28, 0.92));
    border: 1px solid rgba(123, 97, 255, 0.18);
    box-shadow: var(--shadow-hard);
    overflow: hidden;
}

.info-section::before,
.faq-section::before,
.page-content::before,
.calculator-container::before,
.gradient-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(36% 46% at 72% 18%, rgba(123, 97, 255, 0.22) 0%, transparent 65%);
    opacity: 0.5;
    pointer-events: none;
}

.info-section h2,
.faq-section h2,
.page-content h1,
.page-content h2 {
    font-size: clamp(1.85rem, 2.8vw, 2.4rem);
    margin-bottom: 1.2rem;
    letter-spacing: -0.015em;
}

.info-section h3,
.faq-section h3,
.page-content h3 {
    margin-top: 2.25rem;
    margin-bottom: 0.9rem;
    font-size: 1.2rem;
}

.info-section p,
.faq-section p,
.page-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.15rem;
}

.info-section ul,
.page-content ul,
.page-content ol {
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.info-section li,
.page-content li {
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.faq-section .faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(123, 97, 255, 0.15);
}

.faq-section .faq-item:last-child {
    border-bottom: none;
}

.calculator-select {
    width: 100%;
    padding: 1rem 1.4rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(188, 228, 255, 0.38);
    background-color: rgba(40, 70, 128, 0.65);
    background-image:
        linear-gradient(136deg, rgba(124, 196, 255, 0.32), rgba(98, 206, 255, 0.22)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2390c7ff' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center center, right 1.1rem center;
    background-size: cover, 1rem;
    color: var(--text-primary);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    padding-right: 3rem;
    box-shadow: 0 18px 50px -34px rgba(120, 210, 255, 0.65);
}

[data-theme="light"] .calculator-select {
    border: 1px solid rgba(148, 178, 255, 0.32);
    background-color: rgba(247, 249, 255, 0.92);
    background-image:
        linear-gradient(136deg, rgba(184, 212, 255, 0.3), rgba(142, 206, 255, 0.24)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%235873d6' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center center, right 1.1rem center;
    background-size: cover, 1rem;
    color: rgba(33, 48, 78, 0.88);
}

.calculator-select:hover,
.calculator-select:focus {
    border-color: rgba(85, 240, 255, 0.6);
    box-shadow: 0 18px 45px -30px rgba(85, 240, 255, 0.7);
    outline: none;
}

.calculator-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem;
}

[data-theme="light"] .calculator-select option {
    background: #fff;
    color: rgba(33, 48, 78, 0.88);
}

.calculator-select::-ms-expand {
    display: none;
}

.faq-toggle {
    margin-top: 2.5rem;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 0.55rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 178, 220, 0.35);
    background: rgba(15, 21, 36, 0.85);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(85, 240, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(85, 240, 255, 0.2);
    outline: none;
    transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
    color: rgba(230, 240, 255, 0.7);
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    border: 1px solid rgba(148, 178, 255, 0.3);
    background: linear-gradient(136deg, rgba(190, 214, 255, 0.28), rgba(156, 210, 255, 0.22)), rgba(247, 249, 255, 0.92);
    color: rgba(30, 48, 82, 0.88);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: rgba(60, 86, 128, 0.55);
}

button {
    font-family: var(--font-sans);
}

.result {
    margin-top: 1.5rem;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(13, 18, 40, 0.92), rgba(7, 12, 32, 0.92));
    border: 1px solid rgba(123, 97, 255, 0.2);
    box-shadow: var(--shadow-hard);
}

.result h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.result-value {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, rgba(14, 20, 42, 0.92), rgba(9, 13, 30, 0.92));
    border: 1px solid rgba(123, 97, 255, 0.2);
    box-shadow: var(--shadow-hard);
    transition: transform 0.35s ease, border 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(85, 240, 255, 0.45);
    box-shadow: 0 30px 60px -32px rgba(85, 240, 255, 0.55);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(85, 240, 255, 0.12);
    border: 1px solid rgba(85, 240, 255, 0.32);
    color: var(--accent-secondary);
}

.gradient-section {
    position: relative;
    margin-top: 3.5rem;
    padding: clamp(2rem, 3.2vw, 2.75rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, rgba(13, 19, 40, 0.92), rgba(6, 10, 28, 0.92));
    border: 1px solid rgba(123, 97, 255, 0.18);
    box-shadow: var(--shadow-hard);
    overflow: hidden;
}

.gradient-section h2,
.gradient-section h3 {
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.gradient-section p,
.gradient-section li {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.gradient-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(2, 132, 199, 0.08), rgba(124, 58, 237, 0.08));
    opacity: 0.7;
    pointer-events: none;
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.75rem;
}

.page-header .lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.25rem 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.75rem 2.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4rem;
    justify-content: space-between;
}

footer {
    margin-top: 4.5rem;
    border-top: 1px solid rgba(123, 97, 255, 0.16);
    background: linear-gradient(135deg, rgba(10, 14, 32, 0.96), rgba(7, 10, 26, 0.92));
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(35% 40% at 80% 20%, rgba(123, 97, 255, 0.2), transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.footer-section h4 {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-section ul {
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-secondary);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(123, 97, 255, 0.16);
    padding: 1.75rem 2.25rem 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom strong {
    color: var(--accent-secondary);
}

.blurred-accent {
    position: absolute;
    filter: blur(35px);
    opacity: 0.8;
    z-index: 0;
}

.surface {
    backdrop-filter: blur(24px);
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(13, 25, 52, 0.6);
    border: 1px solid rgba(123, 97, 255, 0.24);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.grid {
    display: grid;
    gap: 1.75rem;
}

.row {
    display: flex;
    gap: 1.5rem;
}

.text-center {
    text-align: center;
}

.contact-form {
    max-width: 640px;
    margin: 2.5rem auto 0;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, rgba(13, 19, 40, 0.9), rgba(7, 12, 30, 0.9));
    border: 1px solid rgba(123, 97, 255, 0.18);
    box-shadow: var(--shadow-hard);
}

.contact-form small {
    margin-top: 0.5rem;
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-status {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-status.success {
    background: rgba(70, 245, 199, 0.12);
    border: 1px solid rgba(70, 245, 199, 0.35);
    color: var(--success-color);
}

.form-status.error {
    background: rgba(255, 111, 145, 0.12);
    border: 1px solid rgba(255, 111, 145, 0.35);
    color: var(--error-color);
}

.error-page {
    text-align: center;
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(13, 19, 40, 0.9), rgba(7, 12, 30, 0.9));
    border: 1px solid rgba(123, 97, 255, 0.2);
    box-shadow: var(--shadow-hard);
}

.error-code {
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.error-links {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.error-links .cta-button {
    width: 100%;
    max-width: 260px;
    justify-content: center;
}

.hero-actions--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.currency-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(123, 97, 255, 0.25);
    background: rgba(9, 14, 28, 0.65);
}

.currency-picker label {
    display: inline-block;
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.currency-picker .calculator-select {
    min-width: 140px;
    padding: 0.75rem 1.2rem;
}

.selector-shell {
    max-width: 640px;
    margin: 0 auto 2rem;
}

.monetize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}

.monetize-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, rgba(12, 18, 36, 0.92), rgba(7, 12, 30, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.monetize-card header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-secondary);
}

.monetize-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.monetize-card ul {
    padding-left: 1.1rem;
    color: var(--text-muted);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.insight-item {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(13, 19, 40, 0.75);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.timeline {
    position: relative;
    padding-left: 1.75rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.6rem;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.35), rgba(14, 165, 233, 0.4));
}

.timeline-step {
    position: relative;
    margin-bottom: 1.75rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.12);
}

.timeline-step h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.timeline-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        align-items: center;
        gap: 1.75rem;
    }

    .hero-aside {
        max-width: 560px;
        margin: 0 auto;
        align-items: center;
    }

    .hero-copy {
        align-items: center;
        text-align: center;
        max-width: 640px;
        margin: 0 auto;
    }

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

    .hero-copy .action-links {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-logo-block {
        align-items: center;
        text-align: center;
    }

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

@media (max-width: 860px) {
    nav {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1.1rem;
    }

    .nav-spacer {
        display: none;
    }

    .nav-actions {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 0.65rem;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .logo {
        position: static;
        transform: none;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-board {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-copy {
        align-items: center;
        text-align: center;
        gap: 1.2rem;
    }

    .hero-actions {
        justify-content: center;
        gap: 0.9rem;
    }

    .hero-aside {
        width: 100%;
        gap: 1.25rem;
    }

    .floating-card {
        width: min(100%, 420px);
        padding: 1.5rem;
    }

    .hero-selector {
        width: 100%;
        max-width: 420px;
    }

    .hero-selector .surface {
        padding: 1rem 1.2rem;
    }

    .announcement-banner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        width: calc(100% - 1.2rem);
        padding: 0.55rem 0.95rem 0.7rem;
    }

    .announcement-banner .banner-content {
        width: 100%;
    }

    .announcement-banner .banner-content p {
        white-space: normal;
    }

    .banner-actions {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    /* Tighter global layout + prevent horizontal scrolling */
    :root {
        --content-max: 100%;
    }

    html,
    body {
        overflow-x: hidden;
    }

    main {
        padding: 2rem 1.1rem 3.2rem;
    }

    header {
        padding: 0.15rem 0;
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
        padding: 0.6rem 1rem;
        width: 100%;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
        gap: 0.6rem;
    }

    nav ul {
        justify-content: center;
        gap: 0.55rem;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 0.84rem;
        padding: 0.4rem 0.55rem;
    }

    .theme-toggle {
        padding: 0.25rem 0.55rem;
        font-size: 0.7rem;
        order: -1;
        border-radius: 999px;
    }

    .theme-toggle .theme-label {
        display: none;
    }

    .theme-toggle .theme-icon {
        font-size: 0.95rem;
    }

    .hero {
        padding: 2.1rem 1rem;
        gap: 1.6rem;
        width: 100%;
        max-width: 100%;
    }

    /* Prevent hero pill from overlapping heading on narrow screens */
    .hero-pill {
        position: static;
        margin-bottom: 1rem;
        align-self: center;
        justify-content: center;
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .hero-copy h1 {
        font-size: clamp(2.05rem, 6.5vw, 2.9rem);
    }

    .hero-copy p {
        font-size: 0.96rem;
        max-width: 100%;
    }

    .action-links {
        gap: 0.8rem;
        width: min(100%, 420px);
    }

    .action-links li {
        font-size: 0.9rem;
        padding: 0.3rem 0;
        text-align: center;
    }

    .floating-card {
        width: 100%;
        padding: 1.35rem;
    }

    .quick-panel {
        gap: 1.15rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .hero-selector label {
        justify-content: center;
        font-size: 0.68rem;
        letter-spacing: 0.2em;
    }

    .hero-selector .surface {
        padding: 0.9rem 1rem;
    }

    .section-shell,
    .section-shell .glass-panel,
    .section-shell .gradient-section,
    .revenue-widgets,
    .page-shell,
    .footer-content {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.55rem 0.85rem;
    }

    nav a {
        padding: 0.35rem 0.48rem;
        font-size: 0.8rem;
    }

    .theme-toggle {
        margin-bottom: 0.25rem;
    }

    .hero {
        padding: 2.15rem 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .hero-selector .surface {
        padding: 0.85rem 0.9rem;
    }

    .floating-card {
        padding: 1.25rem;
    }

.hero-aside .action-links li {
    justify-content: center;
    text-align: center;
}
}

@media (max-width: 640px) {
    .hero-copy p {
        text-align: center;
    }

    .action-links li {
        text-align: center;
    }

    .floating-card {
        width: 100%;
    }

    .quick-panel {
        gap: 1.5rem;
    }

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

    .hero-selector label {
        justify-content: center;
    }
}

.insight-grid .insight-item,
.monetize-card,
.faq-item {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.insight-grid .insight-item:hover,
.monetize-card:hover,
.faq-item:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.4);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy > *:nth-child(1) { animation: fadeUp 0.4s ease 0s both; }
.hero-copy > *:nth-child(2) { animation: fadeUp 0.4s ease 0.1s both; }
.hero-copy > *:nth-child(3) { animation: fadeUp 0.4s ease 0.2s both; }
.hero-copy > *:nth-child(4) { animation: fadeUp 0.4s ease 0.3s both; }
.hero-copy > *:nth-child(5) { animation: fadeUp 0.4s ease 0.4s both; }

[data-theme="light"] body {
    background: radial-gradient(160% 120% at 50% 0%, rgba(124, 58, 237, 0.08) 0%, rgba(240, 244, 255, 0.9) 42%, #f4f6fb 100%);
}

[data-theme="light"] header {
    background: linear-gradient(120deg, rgba(248, 249, 255, 0.92), rgba(241, 244, 255, 0.88));
    border-bottom: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 18px 40px -35px rgba(30, 64, 175, 0.22);
}

[data-theme="light"] nav {
    justify-content: space-between;
}

[data-theme="light"] .logo {
    background: transparent;
    border: none;
    box-shadow: none;
}

[data-theme="light"] .hero {
    background: radial-gradient(120% 120% at 85% -10%, rgba(2, 132, 199, 0.18) 0%, transparent 55%),
                radial-gradient(120% 120% at -5% 110%, rgba(124, 58, 237, 0.16) 0%, transparent 60%),
                linear-gradient(140deg, rgba(250, 251, 255, 0.95) 0%, rgba(244, 247, 255, 0.98) 50%, rgba(236, 240, 255, 0.98) 100%);
    border: 1px solid rgba(30, 64, 175, 0.2);
    box-shadow: 0 35px 70px -50px rgba(14, 116, 144, 0.35);
}

[data-theme="light"] .hero::before,
[data-theme="light"] .hero::after {
    filter: saturate(1.1);
}

[data-theme="light"] .hero-note {
    background: rgba(232, 240, 255, 0.88);
    border: 1px solid rgba(14, 165, 233, 0.28);
    color: rgba(14, 165, 233, 0.9);
}

[data-theme="light"] .floating-card {
    background: rgba(250, 251, 255, 0.92);
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 24px 48px -36px rgba(79, 70, 229, 0.2);
}

[data-theme="light"] .floating-card::after {
    border: 1px dashed rgba(124, 58, 237, 0.18);
}

[data-theme="light"] .hero-selector .surface {
    background: rgba(248, 249, 255, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.22);
    box-shadow: 0 22px 50px -40px rgba(79, 70, 229, 0.25);
}

[data-theme="light"] .glass-panel,
[data-theme="light"] .info-section,
[data-theme="light"] .faq-section,
[data-theme="light"] .page-content,
[data-theme="light"] .calculator-container,
[data-theme="light"] .gradient-section {
    background: linear-gradient(150deg, rgba(251, 252, 255, 0.96), rgba(244, 247, 255, 0.98));
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 32px 60px -48px rgba(14, 116, 144, 0.25);
}

[data-theme="light"] .glass-panel::before,
[data-theme="light"] .info-section::before,
[data-theme="light"] .faq-section::before,
[data-theme="light"] .page-content::before,
[data-theme="light"] .calculator-container::before,
[data-theme="light"] .gradient-section::before {
    opacity: 0.35;
}

[data-theme="light"] .monetize-card,
[data-theme="light"] .insight-grid .insight-item,
[data-theme="light"] .faq-item,
[data-theme="light"] .card,
[data-theme="light"] .quick-summary,
[data-theme="light"] .notice,
[data-theme="light"] .error-page {
    background: rgba(252, 253, 255, 0.95);
    border-color: rgba(30, 64, 175, 0.18);
    box-shadow: 0 24px 50px -40px rgba(79, 70, 229, 0.24);
}

[data-theme="light"] .cta-button.secondary {
    background: rgba(237, 242, 255, 0.9);
    border: 1px solid rgba(79, 70, 229, 0.28);
    color: rgba(30, 64, 175, 0.95);
}

[data-theme="light"] footer {
    background: linear-gradient(135deg, rgba(245, 247, 255, 0.96), rgba(238, 244, 255, 0.94));
    border-top: 1px solid rgba(79, 70, 229, 0.18);
}

[data-theme="light"] .theme-toggle {
    background: rgba(237, 242, 255, 0.92);
    border: 1px solid rgba(79, 70, 229, 0.32);
    color: rgba(30, 64, 175, 0.9);
}

.announcement-banner {
    position: relative;
    background: linear-gradient(130deg, rgba(6, 10, 24, 0.9), rgba(10, 20, 38, 0.88));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.35rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 14px 32px -24px rgba(49, 130, 246, 0.35);
    margin: 0.5rem auto 0;
    width: var(--content-max);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    color: rgba(230, 238, 255, 0.95);
    text-align: left;
    font-size: 0.86rem;
}

.announcement-banner::before {
    content: "";
    position: absolute;
    inset: -50% -30% auto auto;
    background: radial-gradient(circle, rgba(144, 206, 255, 0.28), transparent 55%);
    opacity: 0.85;
    pointer-events: none;
}

.announcement-banner strong {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(128, 196, 255, 0.92);
    display: inline-flex;
}

.announcement-banner .banner-content {
    flex: 1;
    text-align: left;
}

.announcement-banner .banner-content p {
    margin: 0;
    color: rgba(226, 238, 255, 0.88);
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announcement-banner .banner-highlight {
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.banner-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    padding-right: 1.5rem;
}

.banner-pill {
    background: rgba(59, 130, 246, 0.28);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: rgba(235, 243, 255, 0.9);
    padding: 0.18rem 0.55rem;
    border-radius: 8px;
    font-size: 0.68rem;
}

.banner-actions .cta-button {
    padding: 0.24rem 0.75rem;
    font-size: 0.74rem;
}

[data-theme="light"] .announcement-banner {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
    border: 1px solid rgba(148, 181, 232, 0.5);
    color: var(--text-secondary);
    box-shadow: 0 18px 42px -30px rgba(84, 136, 255, 0.24);
}

[data-theme="light"] .announcement-banner strong {
    color: rgba(58, 99, 190, 0.88);
}

[data-theme="light"] .announcement-banner .banner-content p {
    color: rgba(36, 54, 92, 0.78);
}

[data-theme="light"] .announcement-banner .banner-highlight {
    color: var(--accent-primary);
}

[data-theme="light"] .announcement-banner .banner-pill {
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: rgba(28, 46, 82, 0.86);
}

[data-theme="light"] .announcement-banner .banner-close {
    color: rgba(36, 54, 92, 0.9);
}

[data-theme="light"] .announcement-banner .banner-close:hover {
    color: rgba(20, 30, 60, 1);
}

 .announcement-banner .banner-close {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    border: none;
    background: transparent;
    color: rgba(236, 243, 255, 0.92);
    width: auto;
    height: auto;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
    transform: translateY(-50%);
}

.announcement-banner .banner-close:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.05) translateY(-50%);
}

.announcement-banner.is-hidden {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    max-height: 0;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
}

.revenue-widgets {
    margin: 3rem auto;
    display: grid;
    gap: 1.5rem;
    width: var(--content-max);
}

.partner-highlight,
.traffic-card {
    background: linear-gradient(125deg, rgba(10, 22, 52, 0.92), rgba(14, 37, 78, 0.88));
    border: 1px solid rgba(80, 120, 255, 0.22);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 20px 60px -35px rgba(17, 94, 200, 0.45);
    text-align: center;
}

[data-theme="light"] .partner-highlight,
[data-theme="light"] .traffic-card {
    background: linear-gradient(125deg, rgba(248, 249, 255, 0.96), rgba(235, 241, 255, 0.94));
    border-color: rgba(148, 178, 255, 0.35);
    box-shadow: 0 20px 60px -40px rgba(79, 70, 229, 0.25);
    color: rgba(30, 38, 74, 0.9);
}

[data-theme="light"] .partner-offers .offer-tile,
[data-theme="light"] .traffic-tip {
    background: rgba(248, 250, 255, 0.95);
    border-color: rgba(148, 178, 255, 0.32);
    color: rgba(36, 48, 84, 0.9);
}

.partner-highlight h2,
.traffic-card h2 {
    font-size: clamp(1.35rem, 1.6vw, 1.65rem);
    margin-bottom: 0.75rem;
}

.partner-offers {
    display: grid;
    gap: 1.1rem;
    margin-top: 1.2rem;
    text-align: left;
}

.offer-tile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: rgba(9, 22, 50, 0.72);
    border: 1px solid rgba(45, 161, 255, 0.22);
}

.offer-tile span {
    font-weight: 600;
    color: #9cc9ff;
}

.offer-tile small {
    color: rgba(199, 212, 255, 0.75);
}

[data-theme="light"] .offer-tile {
    background: rgba(248, 250, 255, 0.95);
    border-color: rgba(148, 178, 255, 0.32);
}

[data-theme="light"] .offer-tile span {
    color: rgba(35, 56, 103, 0.9);
}

[data-theme="light"] .offer-tile small {
    color: rgba(55, 76, 122, 0.75);
}

.traffic-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 1.5rem;
}

.traffic-tip {
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius-lg);
    background: rgba(8, 20, 46, 0.72);
    border: 1px dashed rgba(56, 189, 248, 0.25);
    color: rgba(203, 212, 255, 0.82);
    line-height: 1.6;
}

[data-theme="light"] .traffic-tip {
    background: rgba(248, 250, 255, 0.95);
    border-color: rgba(148, 178, 255, 0.35);
    color: rgba(35, 56, 103, 0.9);
}

/* AdSense Ad Container Styles */
.adsense-top-banner,
.adsense-inline,
.adsense-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    min-height: 100px;
}

.adsense-top-banner {
    padding: 0.75rem 1rem;
    max-width: var(--content-max);
    margin-inline: auto;
    min-height: 50px;
}

.adsense-inline {
    padding: 2rem 1rem;
    margin: 2rem auto;
    max-width: 100%;
}

.adsense-footer {
    padding-top: 2rem;
    padding-bottom: 1rem;
    max-width: 100%;
}

/* Ensure ad units are responsive */
.adsbygoogle {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Hide ads on very small screens if needed (optional) */
@media (max-width: 320px) {
    .adsense-top-banner,
    .adsense-inline,
    .adsense-footer {
        min-height: 40px;
        padding: 0.5rem 0.5rem;
    }
    
    .adsense-top-banner {
        padding: 0.5rem 0.75rem;
    }
}

/* Theme-aware ad container styling */
.adsense-top-banner,
.adsense-inline,
.adsense-footer {
    background: transparent;
}

[data-theme="light"] .adsense-top-banner,
[data-theme="light"] .adsense-inline,
[data-theme="light"] .adsense-footer {
    background: transparent;
}

