:root {
    --font-geist: "Geist", sans-serif;
    --font-geist-mono: "Geist Mono", monospace;
    --font-ebgaramond: "EB Garamond", serif;
    --bg-dark: #1a1a1f;
    --bg-light: #ffffff;
    --text-light: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted-dark: #dedede;
    --text-muted-light: #555566;
    --text-primary: rgba(255, 255, 255, 0.96);
    --text-secondary: rgba(255, 255, 255, 0.76);
    /* Warm orange primary, teal secondary */
    --accent: oklch(0.6716 0.1368 48.513);
    --accent-secondary: oklch(0.536 0.0398 196.028);
    --hover: oklch(0.7214 0.1337 49.9802);
    --animation-duration: 0.7s;
    --border-dark: #333;
    --border-light: #e0e0e0;
}

/* ASCII Hero styling */
.ascii-hero {
    font-family: var(--font-geist-mono);
    font-size: clamp(0.5rem, 2vw, 0.85rem);
    line-height: 1.3;
    color: var(--text);
    text-align: left;
    margin: 2rem auto;
    white-space: pre;
    overflow-x: auto;
    /*border: 1px solid var(--border-light);*/
    /*padding: 60px 12px;*/
}

.ascii-hero .star {
    color: var(--accent);
    display: inline-block;
}

/* Twinkling star animations */
.ascii-hero .twinkle {
    animation: twinkle 3s ease-in-out infinite;
}

.ascii-hero .twinkle-slow {
    animation: twinkle 5s ease-in-out infinite;
}

.ascii-hero .twinkle-fast {
    animation: twinkle 1.5s ease-in-out infinite;
}

.ascii-hero .pulse {
    animation: pulse 2s ease-in-out infinite;
}

.ascii-hero .morph {
    animation: morph-star 4s steps(1) infinite;
}

/* Stagger animations with delays */
.ascii-hero .delay-1 {
    animation-delay: 0.3s;
}
.ascii-hero .delay-2 {
    animation-delay: 0.7s;
}
.ascii-hero .delay-3 {
    animation-delay: 1.1s;
}
.ascii-hero .delay-4 {
    animation-delay: 1.5s;
}
.ascii-hero .delay-5 {
    animation-delay: 2s;
}
.ascii-hero .delay-6 {
    animation-delay: 2.4s;
}
.ascii-hero .delay-7 {
    animation-delay: 2.8s;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes morph-star {
    0% {
        content: "·";
    }
    25% {
        content: "*";
    }
    50% {
        content: "✦";
    }
    75% {
        content: "✳";
    }
    100% {
        content: "·";
    }
}

/* Planet glow effect */
.ascii-hero .planet {
    color: var(--accent-secondary);
    animation: planet-glow 4s ease-in-out infinite;
}

@keyframes planet-glow {
    0%,
    100% {
        opacity: 0.7;
        text-shadow: 0 0 2px var(--accent-secondary);
    }
    50% {
        opacity: 1;
        text-shadow:
            0 0 8px var(--accent-secondary),
            0 0 12px var(--accent-secondary);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ascii-hero .twinkle,
    .ascii-hero .twinkle-slow,
    .ascii-hero .twinkle-fast,
    .ascii-hero .pulse,
    .ascii-hero .morph,
    .ascii-hero .planet {
        animation: none;
        opacity: 1;
    }
}

a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    transition:
        color 0.3s ease,
        border-bottom-color 0.3s ease,
        border-bottom-width 0.8s ease;
    text-decoration: none;
}

a:hover {
    color: var(--hover);
    border-bottom: 1px solid var(--hover);
    border-bottom-width: 4px;
}

em {
    font-family: var(--font-ebgaramond);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-geist);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

ul li {
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Remove scroll margin - sections should scroll to their natural position */
html {
    scroll-behavior: smooth;
}

/* Section headers scroll with comfortable top margin */
.pricing-section,
#why-claude,
#schedule,
#prices {
    scroll-margin-top: 100px;
}

.middot {
    font-style: normal;
    /* font-size: 4rem; */
    /* vertical-align: -0.5rem; */
    animation: fadeInOut 3s ease-in-out infinite alternate;
    color: var(--accent);
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.light {
    --bg: var(--bg-light);
    --text: var(--text-dark);
    --text-muted: var(--text-muted-light);
    --border: var(--border-light);
}

.dark {
    --bg: var(--bg-dark);
    --text: var(--text-light);
    --text-muted: var(--text-muted-dark);
    --border: var(--border-dark);
}

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

/* Enable native smooth scrolling for in-page anchors */
html {
    scroll-behavior: smooth;
}

/* Provide a comfortable top offset when scrolling to elements with IDs */
[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: var(--font-geist);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

/* Shader hero wrapper and background */
.shader-hero {
    position: relative;
    isolation: isolate; /* ensure z-index stacking context */
    /* Full-bleed width while inside a centered .container */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* Cancel the top padding added by the parent .container so it hugs the top edge */
    margin-top: -2rem;
    /* Take full viewport height */
    min-height: 100vh;
    /* Desired spacing after the section */
    margin-bottom: 80px;
}

.shader-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none; /* let content be interactable */
}

/* Ensure the auto-inserted canvas fills the background container */
.shader-bg canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.shader-hero > :not(.shader-bg) {
    position: relative;
    z-index: 1;
    padding: 3rem; /* Increased inner padding to better match sections below */
}

label {
    cursor: help;
    border-bottom-style: dotted;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(-20px);
}

.logo {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.tagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-weight: 400;
    max-width: 30%;
    margin: 0;
}

@media (max-width: 768px) {
    .tagline {
        max-width: 100%;
        margin: 0;
        font-size: clamp(1.08rem, 2.4vw, 1.32rem);
    }
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    margin-bottom: 8rem;
}

.content-section {
    opacity: 0;
    transform: translateX(-30px);
}

.visual-section {
    opacity: 0;
    transform: translateX(30px);
}

.hero-text {
    color: var(--text-muted);
    font-size: clamp(1.6rem, 4.64vw, 8.64rem);
    font-weight: 900;

    line-height: 0.85;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-family: var(--font-geist-mono) !important;
}

.hero-text .highlight {
    color: var(--accent);
}

.hero-text .hero-word.highlight {
    display: inline-flex;
    align-items: flex-end;
    column-gap: 0.15em;
    white-space: nowrap;
    max-width: 100%;
}

.hero-text .highlight-rotator {
    display: inline-block;
    white-space: nowrap;
    font-family: inherit;
    min-width: 0;
}

.highlight-cursor {
    display: inline-block;
    width: 0.65ch;
    color: currentColor;
    animation: highlightCursorBlink 1s steps(2, start) infinite;
    align-self: stretch;
}

.highlight-cursor.is-typing {
    animation: none;
    opacity: 1;
}

@keyframes highlightCursorBlink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .highlight-cursor {
        animation: none;
        opacity: 1;
    }
}

.highlight-bg {
    background-color: var(--accent);
    color: var(--bg);
    display: inline-block;
    padding: 0.2rem 0.5rem;
}

.hero-word {
    display: inline-block;
    /* Visible by default; animation will control inner letters */
    opacity: 1;
    transform: none;
    transform-origin: center bottom;
    font-family: var(--font-geist);
}

/* Moving letters effect (Tobias Ahlin #11) */
.ml11 .text-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 0.1em;
    padding-right: 0.05em;
    padding-bottom: 0.15em;
}

.ml11 .line {
    opacity: 0;
    display: none;
    position: absolute;
    left: 0;
    height: 100%;
    width: 0px;
    background-color: currentColor;
    transform-origin: 0 50%;
}

.ml11 .line1 {
    top: 0;
    left: 0;
}

.ml11 .letter {
    display: inline-block;
    line-height: 1em;
    opacity: 0; /* hidden until animated in */
}

.description {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.4;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    max-width: 500px;
    margin-bottom: 3rem;
    font-family: var(--font-geist);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--text-dark);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: 2px solid var(--text-muted-dark);
    cursor: pointer;
}

.cta-button:hover {
    background: transparent;
    color: var(--text-dark);
    transform: translateY(-2px) scale(1.02);
}

.cta-button:active {
    transform: translateY(1px) scale(0.98);
    background: var(--text-dark);
    color: var(--text-light);
}

/* Dark mode: ensure hover text uses accent color */
.dark .cta-button:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Medium screens: keep the top-right controls compact */
@media (max-width: 900px) {
    .theme-toggle-container {
        gap: 0.35rem;
    }
    /* Hide the Telegram label to avoid overlay; keep icon visible */
    .telegram-button span {
        display: none;
    }
    .telegram-button {
        padding: 0.35rem; /* tighter around icon */
    }
}

.visual-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.font-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.font-sample {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    transform: scale(0.95);
}

.font-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 120px;
    letter-spacing: 0.05em;
}

.font-display {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.01em;
}

.geist-sans {
    font-family: var(--font-geist);
}

.geist-mono {
    font-family: var(--font-geist-mono);
}

/* Opt-in serif utility using EB Garamond */
.serif {
    font-family: var(--font-ebgaramond);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 1rem;
    margin-bottom: 6rem;
    position: relative;
    padding-top: 120px; /* Space for the sticky header */
}

.section-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg);
    padding: 1.5rem 0;
    margin-bottom: 0.2rem;
    margin-top: 0.2rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.highlight {
    font-weight: 900;
    color: var(--accent);
}

.section-header .highlight {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;

    text-transform: uppercase;
}

.section-header .subtitle {
    font-size: 1.8rem !important;
    font-weight: normal;
    letter-spacing: 0.1em;
    color: #999;
    margin-left: 1rem;
    text-transform: lowercase;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.feature-card {
    padding: 2.5rem;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 2rem;
    transition:
        background-color 0.75s ease-in,
        border-color 0.75s ease-in,
        color 0.75s ease-in;
}

.feature-card:hover {
    background: rgba(255, 107, 53, 0.08); /* subtle accent wash */
    border-color: var(--accent);
}

.feature-card:hover .feature-title {
    color: var(--accent);
}

.feature-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.stats-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6rem;
    padding: 3rem 0;
    border-top: 1px solid #333;
}

.stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Pricing Section Styles */
.pricing-section {
    margin-top: 8rem;
    padding-top: 6rem;
    border-top: 1px solid #333;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
}

.pricing-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.pricing-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

.pricing-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.currency-switch {
    display: none; /* Hidden for now - EUR only */
    justify-content: center;
    gap: 0.5rem;
}

.currency-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: var(--font-geist-mono);
    letter-spacing: 0.02em;
}

.currency-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.currency-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.discount-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    right: 0;
}

.discount-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-geist-mono);
    cursor: pointer;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.discount-link:hover {
    opacity: 0.8;
}

.discount-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.discount-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: var(--text);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    font-family: var(--font-geist-mono);
    outline: none;
    transition: border-color 0.3s ease;
    min-width: 150px;
}

.discount-input:focus {
    border-color: var(--accent);
}

.discount-apply-btn {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #000;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: var(--font-geist-mono);
    white-space: nowrap;
}

.discount-apply-btn:hover {
    opacity: 0.9;
}

.discount-message {
    font-size: 0.85rem;
    font-family: var(--font-geist-mono);
    white-space: nowrap;
}

.discount-message.success {
    color: var(--accent);
}

.discount-message.error {
    color: #ff4444;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.pricing-card.featured {
    border-color: var(--accent);
    background: rgba(255, 107, 53, 0.05);
}

.pricing-card.featured::before {
    content: "recommended";
    position: absolute;
    top: 1.5rem;
    right: -4rem;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 4rem;
    transform: rotate(45deg);
    letter-spacing: 0.05em;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.plan-price {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin: 1.5rem 0;
    letter-spacing: -0.02em;
    line-height: 1;
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: super;
    margin-right: 0.2rem;
}

.plan-price .period {
    font-size: 1rem;

    .plan-description {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    .plan-features {
        list-style: none;
        margin-bottom: 2rem;
        flex-grow: 1;
    }
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.plan-features li::before {
    content: "→";
    color: var(--accent);
    margin-right: 0.75rem;
    font-weight: 700;
}

.plan-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid;
}

.plan-button.primary {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.plan-button.primary:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px) scale(1.02);
}

.plan-button.secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--text-light);
}

.plan-button.secondary:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-2px) scale(1.02);
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        /* text-align: center; */
    }

    .container {
        padding: 1rem;
    }

    /* Adjust the shader hero top offset to match smaller container padding */
    .shader-hero {
        margin-top: -1rem;
    }

    /* Slightly reduce inner padding on small screens for better fit */
    .shader-hero > :not(.shader-bg) {
        padding: 2rem;
    }

    .font-sample {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stats-section {
        flex-direction: column;
        gap: 2rem;
    }

    .three-column-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    /* Increase horizontal spacing for list items on mobile */
    ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .pricing-controls {
        flex-direction: column;
        gap: 1.5rem;
    }

    .discount-section {
        position: static;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    /* Prevent overlap with fixed theme/telegram bar on very small screens */
    .shader-hero {
        padding-top: 4.25rem; /* leaves space under the fixed controls */
    }

    /* Compact the Telegram button to icon-only to reduce width */
    .theme-toggle-container {
        gap: 0.25rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    .telegram-button {
        padding: 0.35rem; /* tighter padding */
    }
    .telegram-button span {
        display: none; /* hide text label on very small screens */
    }
}

/* FAQ Section Styles */
.faq-section {
    margin-top: 8rem;
    padding-top: 6rem;
    border-top: 1px solid #333;
    opacity: 0;
    transform: translateY(20px);
}

.faq-container {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--accent);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent);
}

/* Footer Section Styles */
.footer-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 8rem;
    padding-top: 4rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(20px);
}

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

.footer-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

/* Three Column Section Styles */
.three-column-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin: 8rem 0;
    opacity: 0;
    transform: translateY(20px);
}

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

.column-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    margin-top: 0;
    letter-spacing: -0.02em;
}

.column-text {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.5;
}

.description-author {
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    line-height: 1.5;
    color: var(--text-muted);
}

/* Grid utility: start at column 2 and span 2 columns (offset 1, width 2) */
.three-column-section .col-span-2-offset-1 {
    grid-column: 2 / span 2;
}

/* Reset on narrow screens where the grid collapses to single column */
@media (max-width: 768px) {
    .three-column-section .col-span-2-offset-1 {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .three-column-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Typography emphasis classes */
.text-massive {
    font-size: clamp(6rem, 15vw, 18rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.03em;
}

.text-huge {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.text-bold-spaced {
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Animation classes */
.animate {
    animation-duration: var(--animation-duration);
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Framer Motion-like animations for section headers */
.section-header {
    opacity: 0;
    transform: translateY(-10px);
}

.section-header.animated {
    animation: fadeInDown 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.section-header.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile adjustments for section headers */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    /* 30% smaller than desktop clamp(3rem, 8vw, 6rem) -> clamp(2.1rem, 5.6vw, 4.2rem) */
    .section-header .highlight {
        font-size: clamp(2.1rem, 5.6vw, 4.2rem);
    }

    /* Force subtitle to the next line and reduce size by ~30% */
    .section-header .subtitle {
        display: block;
        margin-left: 0;
        font-size: 1.26rem !important; /* 1.8rem * 0.7 */
        line-height: 1.1 !important;
    }
}

/* Comparison Grid Styles */
.comparison-section {
    margin: 6rem 0;
    position: relative;
    padding-top: 120px; /* Space for the sticky header */
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-header {
    text-align: center;
    margin-bottom: 3rem;
}

.comparison-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.comparison-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.comparison-item {
    padding: 1.5rem;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.comparison-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.comparison-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* Before/After Grid Styles */
.before-after-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.before-after-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.light .before-after-item {
    background: rgba(0, 0, 0, 0.02);
}

.before-after-item:hover {
    border-color: var(--accent);
}

.before-after-item .before,
.before-after-item .after {
    padding: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.before-after-item .before {
    background: rgba(255, 68, 68, 0.08);
    color: #ff6b6b;
    border-right: 1px solid var(--border);
}

.before-after-item .after {
    background: rgba(68, 255, 68, 0.08);
    color: #6bff6b;
}

/* Light mode: darker, readable colors */
.light .before-after-item .before {
    background: rgba(220, 53, 69, 0.1);
    color: #c92a2a;
}

.light .before-after-item .after {
    background: rgba(40, 167, 69, 0.1);
    color: #2f9e44;
}

.before-after-item .before::before {
    content: "x ";
    opacity: 0.5;
}

.before-after-item .after::before {
    content: "+ ";
    opacity: 0.5;
}

@media (max-width: 768px) {
    .before-after-grid {
        grid-template-columns: 1fr;
    }

    .before-after-item {
        grid-template-columns: 1fr;
    }

    .before-after-item .before {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

/* Double Diamond Section Styles */
.double-diamond-section {
    margin: 6rem 0;
    position: relative;
    padding-top: 120px; /* Space for the sticky header */
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

.double-diamond-content {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
}

.double-diamond-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 1rem 2rem;
    margin-top: 1.5rem;
    list-style: none;
}

.double-diamond-list li::before {
    content: "→";
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: 700;
}

.double-diamond-figure img {
    width: 100%;
    height: auto;
    display: block;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.double-diamond-caption {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .double-diamond-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .double-diamond-list {
        grid-template-columns: 1fr;
    }
}

/* Theme Toggle Styles */
.theme-toggle-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.light .theme-toggle-container {
    background-color: rgba(0, 0, 0, 0.05);
}

.theme-toggle-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
}

.theme-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    border-radius: 9999px;
    background-color: var(--border);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg);
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 12px;
}

.dark .theme-toggle-thumb {
    transform: translateX(24px);
}

.theme-toggle-icon {
    font-size: 12px;
    line-height: 1;
}

/* Telegram button next to theme toggle */
.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.light .telegram-button {
    background-color: rgba(0, 0, 0, 0.04);
}

.telegram-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.telegram-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.telegram-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/*
 * Table styles extracted from inline HTML
 */

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}
/* ... */

.schedule-table th,
.schedule-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
}

.schedule-table th {
    text-align: left;
}

/* Payment note (moved from inline in index.html) */
.pricing-section > p.description {
    text-align: center;
    margin: 2rem auto;
    max-width: 50%;
    line-height: 1.5;
    font-size: 120%;
}

@media (max-width: 768px) {
    .pricing-section > p.description {
        max-width: 100% !important; /* override inline max-width on mobile */
    }
}

.terminal-demo {
    margin: clamp(4rem, 8vw, 6rem) 0;
    display: grid;
    gap: clamp(2.5rem, 6vw, 4rem);
}

.terminal-demo__columns {
    display: grid;
    gap: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 900px) {
    .terminal-demo__columns {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        align-items: start;
    }
}

.welcome-terminal {
    background: linear-gradient(
        140deg,
        rgba(20, 24, 35, 0.95),
        rgba(10, 13, 21, 0.88)
    );
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    border-radius: 18px;
    padding: clamp(1.75rem, 5vw, 2.5rem);
    box-shadow: 0 30px 60px rgba(8, 11, 19, 0.25);
    font-family: "Geist Mono", monospace;
    color: var(--accent);
    overflow: hidden;
}

.welcome-terminal__title {
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    line-height: 1.6;
    white-space: pre;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.welcome-terminal__intro {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.welcome-terminal__code {
    color: var(--text-muted);
    font-size: clamp(0.8rem, 2.2vw, 0.95rem);
    line-height: 1.8;
}

.terminal-shell {
    background: linear-gradient(
        150deg,
        rgba(7, 10, 19, 0.95),
        rgba(20, 24, 35, 0.92)
    );
    border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    font-family: "Geist Mono", monospace;
    color: var(--text-primary);
    overflow: hidden;
    box-shadow: 0 40px 65px rgba(5, 8, 17, 0.35);
    width: 600px;
    max-width: 600px;
    min-width: 600px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .terminal-shell {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

.terminal-shell__header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-shell__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 35% 30%,
        rgba(255, 255, 255, 0.65),
        rgba(255, 95, 88, 0.85)
    );
    opacity: 0.9;
    box-shadow: 0 0 8px rgba(255, 95, 88, 0.35);
}

.terminal-shell__dot:nth-child(2) {
    background: radial-gradient(
        circle at 35% 30%,
        rgba(255, 255, 255, 0.65),
        rgba(255, 189, 46, 0.85)
    );
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.35);
}

.terminal-shell__dot:nth-child(3) {
    background: radial-gradient(
        circle at 35% 30%,
        rgba(255, 255, 255, 0.65),
        rgba(40, 201, 64, 0.85)
    );
    box-shadow: 0 0 8px rgba(40, 201, 64, 0.35);
}

.terminal-shell__body {
    padding: clamp(1.5rem, 4.5vw, 2.25rem);
    position: relative;
    min-height: clamp(16rem, 38vw, 21rem);
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
}

.terminal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
    padding-bottom: 0.5rem;
}

.terminal-tab-title {
    display: flex;
    margin-left: 17px;
    align-items: center;
    font-weight: 600;
}

.terminal-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 6px;
    color: var(--fg);
    cursor: pointer;
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    transition: all 0.2s ease;
    font-family: inherit;
}

.terminal-tab:hover {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.4);
}

.terminal-tab.is-active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.terminal-content {
    display: none;
}

.terminal-content.is-active {
    display: block;
}

.terminal-thinking {
    display: none;
    align-items: center;
    gap: 0.65rem;
    color: var(--accent);
    font-size: clamp(0.9rem, 2.4vw, 1rem);
}

.terminal-thinking__icon {
    font-size: 1.4em;
}

.terminal-thinking.is-active {
    display: inline-flex;
}

.terminal-log[hidden] {
    display: none !important;
}

.terminal-entry + .terminal-entry {
    margin-top: clamp(1.4rem, 3vw, 1.8rem);
}

.terminal-command {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    color: var(--accent);
    font-size: clamp(0.9rem, 2.4vw, 1.05rem);
}

.terminal-output {
    margin-left: 1.65rem;
    margin-top: 0.75rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-size: clamp(0.86rem, 2.2vw, 0.98rem);
}

.terminal-output > * {
    opacity: 0;
    animation: fadeInLine 0.3s ease-out forwards;
}

@keyframes fadeInLine {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-command {
    opacity: 0;
    animation: fadeInLine 0.2s ease-out forwards;
}

.terminal-output > *:nth-child(1) {
    animation-delay: 0.1s;
}
.terminal-output > *:nth-child(2) {
    animation-delay: 0.25s;
}
.terminal-output > *:nth-child(3) {
    animation-delay: 0.4s;
}
.terminal-output > *:nth-child(4) {
    animation-delay: 0.55s;
}
.terminal-output > *:nth-child(5) {
    animation-delay: 0.7s;
}
.terminal-output > *:nth-child(6) {
    animation-delay: 0.85s;
}
.terminal-output > *:nth-child(7) {
    animation-delay: 1s;
}
.terminal-output > *:nth-child(8) {
    animation-delay: 1.15s;
}

.terminal-output p + p {
    margin-top: 0.8rem;
}

.terminal-output ul {
    margin: 0.6rem 0 0;
    padding-left: 1.1rem;
}

.terminal-output li {
    margin-bottom: 0.35rem;
}

.terminal-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.66rem;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: clamp(0.78rem, 2vw, 0.9rem);
}

.terminal-tagline::before {
    content: "*";
    color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    .terminal-shell,
    .welcome-terminal {
        animation: none !important;
        transition: none !important;
    }
}
