: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);
    /* Telegram blue primary, teal secondary */
    --accent: oklch(0.58 0.18 250);
    --accent-secondary: oklch(0.536 0.0398 196.028);
    --hover: oklch(0.65 0.18 250);
    --tg-blue: #2AABEE;
    --tg-dark: #1B1F24;
    --tg-bubble-out: #EFFDDE;
    --tg-bubble-in: #ffffff;
    --tg-bubble-out-dark: #2B5278;
    --tg-bubble-in-dark: #182533;
    --animation-duration: 0.7s;
    --border-dark: #333;
    --border-light: #e0e0e0;
    /* Easing curves */
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    transition: color 0.2s var(--ease-out-quart), border-bottom-color 0.2s var(--ease-out-quart), border-bottom-width 0.4s var(--ease-out-quart);
    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;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 80px;
}

.middot {
    font-style: normal;
    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;
}

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

.shader-hero {
    position: relative;
    isolation: isolate;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -2rem;
    min-height: 100vh;
    margin-bottom: 80px;
}

.shader-hero > :not(.shader-bg) {
    position: relative;
    z-index: 1;
    padding: 2rem 3rem;
}

.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: 2.5rem;
    opacity: 0;
    transform: translateY(-20px);
}

.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: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

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

.hero-demo {
    opacity: 0;
    transform: translateX(30px);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.two-column-about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    margin: 6rem 0;
    opacity: 0;
    transform: translateY(20px);
}

.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: 2rem;
    font-family: var(--font-geist);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--tg-blue);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color 0.2s var(--ease-out-quart), color 0.2s var(--ease-out-quart), transform 0.15s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart);
    border: 2px solid var(--tg-blue);
    cursor: pointer;
    border-radius: 8px;
}

.cta-button:hover {
    background: transparent;
    color: var(--tg-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.25);
}

.cta-button:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.1s;
}

.dark .cta-button:hover {
    color: var(--tg-blue);
    border-color: var(--tg-blue);
}

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

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

.tiny-navigation {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* === Theme Toggle === */
.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 {
    position: relative;
    width: 48px;
    height: 24px;
    border-radius: 9999px;
    background-color: var(--border);
    cursor: pointer;
    transition: background-color 0.3s var(--ease-out-quart);
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg);
    transition: transform 0.3s var(--ease-out-quint), background-color 0.3s var(--ease-out-quart);
    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 {
    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 var(--ease-out-quart), color 0.2s var(--ease-out-quart), border-color 0.2s var(--ease-out-quart), transform 0.15s var(--ease-out-quart);
}

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

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

.telegram-button:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

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

@media (max-width: 900px) {
    .theme-toggle-container { gap: 0.35rem; }
    .telegram-button span { display: none; }
    .telegram-button { padding: 0.35rem; }
}

@media (max-width: 640px) {
    .shader-hero { padding-top: 4.25rem; }
    .theme-toggle-container { gap: 0.25rem; top: 0.5rem; right: 0.5rem; }
    .telegram-button { padding: 0.35rem; }
    .telegram-button span { display: none; }
}

/* === Telegram Chat Demo === */
.tg-chat {
    width: 420px;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 40px 65px rgba(5, 8, 17, 0.35);
    font-family: var(--font-geist);
    flex-shrink: 0;
}

.tg-chat__header {
    background: var(--tg-blue);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tg-chat__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C5CE7, #A29BFE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.tg-chat__info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.tg-chat__name {
    font-weight: 700;
    font-size: 0.95rem;
}


.tg-chat__back {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-right: 0.25rem;
}

.tg-chat__body {
    background: #E5DDD5;
    padding: 1rem 0.75rem;
    height: 380px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dark .tg-chat__body {
    background: #0E1621;
}

/* Chat bubbles */
.tg-msg {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
    position: relative;
    opacity: 0;
}

.tg-msg--out {
    align-self: flex-end;
    background: var(--tg-bubble-out);
    color: #1a1a1a;
    border-bottom-right-radius: 2px;
}

.dark .tg-msg--out {
    background: var(--tg-bubble-out-dark);
    color: #e0e0e0;
}

.tg-msg--in {
    align-self: flex-start;
    background: var(--tg-bubble-in);
    color: #1a1a1a;
    border-bottom-left-radius: 2px;
}

.dark .tg-msg--in {
    background: var(--tg-bubble-in-dark);
    color: #e0e0e0;
}

.tg-msg__cmd {
    color: var(--tg-blue);
    font-weight: 700;
    font-family: var(--font-geist-mono);
}

.tg-msg__time {
    font-size: 0.65rem;
    opacity: 0.5;
    float: right;
    margin-left: 0.5rem;
    margin-top: 0.3rem;
}

.tg-msg__bold {
    font-weight: 700;
}

.tg-msg__code {
    font-family: var(--font-geist-mono);
    font-size: 0.82rem;
    background: rgba(0,0,0,0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.dark .tg-msg__code {
    background: rgba(255,255,255,0.08);
}

.tg-msg__file {
    display: inline-block;
    font-family: var(--font-geist-mono);
    font-size: 0.82rem;
    background: rgba(0,0,0,0.06);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin-top: 0.3rem;
}
.tg-msg__file::before {
    content: "\1F4CE ";
}
.dark .tg-msg__file {
    background: rgba(255,255,255,0.08);
}

.tg-msg__tools {
    font-family: var(--font-geist-mono);
    font-size: 0.75rem;
    opacity: 0.6;
    line-height: 1.7;
    margin: 0.3rem 0;
}

.tg-msg__tools span {
    display: block;
}

.tg-msg__tools span::before {
    content: "> ";
    opacity: 0.4;
}

/* Session info & action buttons */
.tg-msg__session {
    font-family: var(--font-geist-mono);
    font-size: 0.72rem;
    opacity: 0.55;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.tg-msg__actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.tg-msg__action {
    font-family: var(--font-geist);
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(0,0,0,0.03);
    color: var(--text);
    cursor: default;
}

.dark .tg-msg__action {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
}

/* Emoji reactions */
.tg-msg__reactions {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.tg-reaction {
    font-size: 0.8rem;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    background: rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.dark .tg-reaction {
    background: rgba(255,255,255,0.08);
}

.tg-reaction__count {
    font-family: var(--font-geist);
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Bottom keyboard */
.tg-keyboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
    padding: 0.4rem 0.5rem;
    background: #E8E8E8;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.dark .tg-keyboard {
    background: #0E1621;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.tg-keyboard__btn {
    font-family: var(--font-geist);
    font-size: 0.75rem;
    padding: 0.45rem 0.3rem;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: default;
    text-align: center;
    font-weight: 500;
}

.dark .tg-keyboard__btn {
    background: #2B3945;
    color: #e0e0e0;
}

.tg-msg__list {
    margin: 0.3rem 0 0.3rem 0.5rem;
    padding: 0;
    list-style: none;
}

.tg-msg__list li::before {
    content: "• ";
    color: var(--tg-blue);
}

.tg-msg__list li {
    margin-bottom: 0.2rem;
}

/* Typing indicator */
.tg-typing {
    display: none;
    align-self: flex-start;
    background: var(--tg-bubble-in);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border-bottom-left-radius: 2px;
    gap: 0.3rem;
    align-items: center;
}

.dark .tg-typing {
    background: var(--tg-bubble-in-dark);
}

.tg-typing.is-active {
    display: inline-flex;
}

.tg-typing__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    animation: typingDot 1.4s ease-in-out infinite;
}

.tg-typing__dot:nth-child(2) { animation-delay: 0.15s; }
.tg-typing__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

/* Message reveal animation — controlled by JS */
.tg-msg--hidden {
    display: none !important;
}
.tg-msg--reveal {
    animation: msgReveal 0.3s var(--ease-out-quart) both;
}
@keyframes msgReveal {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chat footer (input) */
.tg-chat__footer {
    background: #F0F0F0;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.dark .tg-chat__footer {
    background: #17212B;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.tg-chat__input {
    flex: 1;
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-family: var(--font-geist);
    color: #333;
    outline: none;
}

.dark .tg-chat__input {
    background: #242F3D;
    color: #e0e0e0;
}

.tg-chat__send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tg-blue);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    transition: transform 0.15s var(--ease-out-quart);
}

.tg-chat__send:hover {
    transform: scale(1.08);
}

.tg-chat__send:active {
    transform: scale(0.92);
    transition-duration: 0.08s;
}

/* Command tabs for the Telegram demo — vertical, right of chat */
.tg-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
    min-width: 110px;
}

.tg-tabs__title {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.tg-tab {
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.82rem;
    transition: background-color 0.25s var(--ease-out-quart), color 0.2s var(--ease-out-quart), border-color 0.2s var(--ease-out-quart), transform 0.15s var(--ease-out-quart);
    font-family: var(--font-geist-mono);
    text-align: left;
    white-space: nowrap;
}

.tg-tab:hover {
    border-color: var(--tg-blue);
    color: var(--tg-blue);
}

.tg-tab:active {
    transform: scale(0.95);
}

.tg-tab.is-active {
    background: var(--tg-blue);
    color: #fff;
    border-color: var(--tg-blue);
}

.tg-content {
    display: none;
}

.tg-content.is-active {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Interactive suggested reply button */
.tg-suggested-reply {
    align-self: flex-end;
    padding: 0.5rem 0.75rem;
    background: rgba(42, 171, 238, 0.08);
    border: 1px dashed var(--tg-blue);
    border-radius: 8px;
    color: var(--tg-blue);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-geist);
    transition: background-color 0.2s var(--ease-out-quart), border-style 0.2s;
    animation: msgReveal 0.3s var(--ease-out-quart) both;
}

.tg-suggested-reply:hover {
    background: rgba(42, 171, 238, 0.15);
    border-style: solid;
}

.tg-suggested-reply::before {
    content: "Tap to ask: ";
    opacity: 0.5;
    font-size: 0.78rem;
}

/* === Section Styles === */
.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);
    opacity: 0;
    transform: translateY(-10px);
}

.section-header.animated {
    animation: fadeInDown 0.5s var(--ease-out-quart) forwards;
}

.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;
}

/* === Features Grid === */
.features-grid,
.command-grid,
.before-after-grid,
.faq-container {
    contain: layout style;
}

.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;
}

.feature-card {
    position: relative;
    padding: 2.5rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 2rem;
    transition: background-color 0.3s var(--ease-out-quart), border-color 0.3s var(--ease-out-quart);
}

.light .feature-card {
    background: rgba(0, 0, 0, 0.02);
}

.feature-card::after,
.command-card::after {
    content: "";
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.25s var(--ease-out-quart), transform 0.4s var(--ease-out-quart);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232AABEE' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M2 8h12M8 2v12M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") center/contain no-repeat;
}

.feature-card:hover::after,
.command-card:hover::after {
    opacity: 0.5;
    transform: rotate(45deg);
}

.feature-card:hover {
    background: rgba(42, 171, 238, 0.08);
    border-color: var(--tg-blue);
    box-shadow: 0 2px 16px rgba(42, 171, 238, 0.1);
}

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

.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);
}

.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;
}

@media (max-width: 768px) {
    .main-content { grid-template-columns: 1fr; gap: 2rem; }
    .two-column-about { grid-template-columns: 1fr; gap: 2rem; }
    .container { padding: 1rem; }
    .shader-hero { margin-top: -1rem; }
    .shader-hero > :not(.shader-bg) { padding: 2rem; }
    ul li { margin-left: 1rem; margin-right: 1rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .section-header .highlight { font-size: clamp(2.1rem, 5.6vw, 4.2rem); }
    .section-header .subtitle { display: block; margin-left: 0; font-size: 1.26rem !important; line-height: 1.1 !important; }
    .hero-demo { flex-direction: column; }
    .tg-tabs { flex-direction: row; flex-wrap: wrap; min-width: auto; }
    .tg-tab { text-align: center; }
}

/* === Before/After === */
.comparison-section {
    margin: 6rem 0;
    position: relative;
    padding-top: 120px;
}

.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 var(--ease-out-quart);
    opacity: 0;
    transform: translateY(12px);
}

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

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

.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(42, 171, 238, 0.08);
    color: #6bddff;
}

.light .before-after-item .before { background: rgba(220, 53, 69, 0.1); color: #c92a2a; }
.light .before-after-item .after { background: rgba(42, 171, 238, 0.1); color: #1a7ab5; }

.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); }
}

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

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

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

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

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s var(--ease-out-quart);
}

.faq-question:hover {
    background: rgba(42, 171, 238, 0.04);
}

.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 var(--ease-out-quart), color 0.3s var(--ease-out-quart);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s var(--ease-out-quart);
}

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

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

/* === Footer === */
.footer-section {
    margin-top: 6rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.footer-section p {
    margin: 0;
}

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

/* === Command cards === */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0 6rem;
}

.command-card {
    position: relative;
    padding: 2rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    transition: background-color 0.3s var(--ease-out-quart), border-color 0.3s var(--ease-out-quart);
    opacity: 0;
    transform: translateY(20px);
}

.light .command-card { background: rgba(0, 0, 0, 0.02); }

.command-card:hover {
    border-color: var(--tg-blue);
    background: rgba(42, 171, 238, 0.05);
    box-shadow: 0 2px 16px rgba(42, 171, 238, 0.1);
}

.command-card__name {
    font-family: var(--font-geist-mono);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--tg-blue);
    margin-bottom: 0.75rem;
}

.command-card__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* === Install Section === */
.install-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0 6rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
}

.install-code-wrapper {
    position: relative;
}

.install-code {
    font-family: var(--font-geist-mono);
    font-size: 1rem;
    line-height: 1.8;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow-x: auto;
    white-space: pre;
    margin: 0;
}

.dark .install-code {
    background: #0D1117;
    color: #e6edf3;
}

.light .install-code {
    background: #f6f8fa;
    color: #1f2328;
}

.install-code code {
    font-family: inherit;
    font-size: inherit;
}

.install-copy {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-family: var(--font-geist);
    font-size: 0.78rem;
    cursor: pointer;
    transition: color 0.2s var(--ease-out-quart), border-color 0.2s var(--ease-out-quart);
}

.light .install-copy {
    background: rgba(0, 0, 0, 0.04);
}

.install-copy:hover {
    border-color: var(--tg-blue);
    color: var(--tg-blue);
}

.install-code--cta {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .install-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .install-code {
        font-size: 0.85rem;
    }
}

/* === CTA Section === */
.cta-section {
    text-align: center;
    margin: 6rem 0;
    padding: 4rem 2rem;
    border: 2px solid var(--tg-blue);
    border-radius: 16px;
    background: rgba(42, 171, 238, 0.03);
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-section .cta-button {
    font-size: 1.1rem;
    padding: 1.4rem 3rem;
}

/* === Pricing === */
.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;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .tg-msg,
    .header,
    .content-section,
    .hero-demo,
    .two-column-about,
    .install-section,
    .feature-card,
    .command-card,
    .faq-item,
    .faq-section,
    .footer-section,
    .before-after-item,
    .section-header {
        opacity: 1 !important;
        transform: none !important;
    }
    .tg-msg--hidden {
        display: block !important;
        opacity: 1 !important;
    }
}
