:root {
    --bg: #05080f;
    --bg-alt: #0a101c;
    --bg-card: #0d1526;
    --bg-card-2: #111b30;
    --text: #e8eef7;
    --text-muted: #92a3b8;
    --accent: #3b82f6;
    --accent2: #22d3ee;
    --accent-hover: #60a5fa;
    --green: #4ade80;
    --amber: #fbbf24;
    --border: #1c2a44;
    --border-hover: #2d4a6e;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;
    --radius: 12px;
    --radius-lg: 16px;
    --header-h: 64px;
    --grad: linear-gradient(135deg, var(--accent), var(--accent2));
    --section-pad: clamp(64px, 12vw, 104px);
    --container-pad: clamp(20px, 5vw, 32px);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

body.nav-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
}

::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -48px; left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 300;
    transition: top 0.2s;
}

.skip-link:focus { top: 12px; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding-left: max(var(--container-pad), env(safe-area-inset-left));
    padding-right: max(var(--container-pad), env(safe-area-inset-right));
}

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(5, 8, 15, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
    gap: 12px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-cta {
    font-size: 0.8rem;
    padding: 9px 16px;
    min-height: 38px;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    transition: border-color 0.2s;
}

.nav-toggle:active { border-color: var(--accent); }

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}

.nav-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: rgba(5, 8, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 18px var(--container-pad) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav a:not(.btn) {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    padding: 16px 4px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

nav.open a:not(.btn) { opacity: 1; transform: translateY(0); }

nav.open a:nth-child(1) { transition-delay: 0.04s; }
nav.open a:nth-child(2) { transition-delay: 0.08s; }
nav.open a:nth-child(3) { transition-delay: 0.12s; }
nav.open a:nth-child(4) { transition-delay: 0.16s; }
nav.open a:nth-child(5) { transition-delay: 0.2s; }
nav.open a:nth-child(6) { transition-delay: 0.24s; }
nav.open a:nth-child(7) { transition-delay: 0.28s; }

nav a:not(.btn)::before {
    content: attr(data-index);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.85;
}

nav a.active:not(.btn) { color: var(--accent2); }

nav a.btn {
    margin-top: 22px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s, box-shadow 0.2s;
}

nav.open a.btn { opacity: 1; transform: translateY(0); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: #fff;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.55);
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
    background: rgba(59, 130, 246, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
    background: rgba(59, 130, 246, 0.08);
}

.btn-ghost:active { transform: scale(0.98); }

main { padding-top: var(--header-h); }
section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-alt); }
.section-header { margin-bottom: clamp(36px, 7vw, 56px); }

.section-header h2 {
    font-size: clamp(1.55rem, 5.5vw, 2.15rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    max-width: 560px;
}

.section-header.center { text-align: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }

.kicker {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.22);
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 100px;
    margin-bottom: 22px;
}

.availability-badge .dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 9vw, 96px) 0 clamp(56px, 10vw, 96px);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-glow-1 {
    position: absolute;
    top: -220px;
    right: -180px;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0.04) 40%, transparent 70%);
    animation: drift1 10s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    bottom: -180px;
    left: -140px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 65%);
    animation: drift2 12s ease-in-out infinite;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 75%);
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.06); }
    66% { transform: translate(25px, -20px) scale(0.96); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(30px, -25px) scale(1.08); }
    70% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero .container { position: relative; z-index: 1; }

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(40px, 8vw, 64px);
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 8.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: -1.5px;
    background: linear-gradient(160deg, #ffffff 0%, #cbd5e1 55%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-muted);
    font-size: clamp(0.98rem, 2.8vw, 1.08rem);
    max-width: 460px;
    margin-bottom: 30px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: clamp(36px, 7vw, 48px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    max-width: 480px;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.code-window {
    background: #060c18;
    border: 1px solid #1e2d45;
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-family: var(--mono);
    font-size: clamp(0.68rem, 2.4vw, 0.8rem);
    line-height: 1.8;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 60px rgba(59, 130, 246, 0.1);
    position: relative;
    max-width: 560px;
}

.code-window::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), rgba(34, 211, 238, 0.4), transparent);
}

.code-header {
    background: #0d1424;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid #1e2d45;
}

.code-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #28c840; }

.code-tab {
    margin-left: 6px;
    color: #4a6080;
    font-size: 0.74rem;
}

.code-body {
    padding: 18px 20px;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.code-body code { font-family: inherit; }

.ct { color: #7dd3fc; }
.ca { color: #67e8f9; }
.cv { color: #a5f3fc; }
.cs { color: #fde68a; }
.cm { color: #41597d; }
.ck { color: #c4b5fd; }
.cf { color: #86efac; }
.cn { color: #fda4af; }

.code-line {
    display: block;
    opacity: 0;
    transform: translateX(10px);
    animation: line-in 0.4s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.13s + 0.3s);
    white-space: pre;
}

@keyframes line-in {
    to { opacity: 1; transform: translateX(0); }
}

.code-cursor {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    background: var(--accent2);
    vertical-align: text-bottom;
    animation: blink 1s steps(1) infinite;
    border-radius: 1px;
}

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

.page-hero {
    padding: clamp(48px, 9vw, 84px) 0 clamp(44px, 8vw, 64px);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -150px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.09) 0%, transparent 65%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.85rem);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -1px;
    background: linear-gradient(160deg, #ffffff 0%, #cbd5e1 60%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.page-hero .lead {
    color: var(--text-muted);
    font-size: clamp(0.98rem, 2.8vw, 1.08rem);
    max-width: 560px;
    line-height: 1.75;
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(20px, 5vw, 26px);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.skill-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1), 0 12px 40px rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.skill-icon {
    font-size: 1.5rem;
    margin-bottom: 13px;
    line-height: 1;
}

.skill-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.89rem;
    line-height: 1.68;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.28s, transform 0.28s, box-shadow 0.28s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.15),
        0 24px 60px rgba(59, 130, 246, 0.12);
}

.project-browser {
    background: #0d1424;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.browser-dots { display: flex; gap: 5px; flex-shrink: 0; }

.browser-dots span { width: 10px; height: 10px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-bar {
    flex: 1;
    background: #060c18;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.74rem;
    color: #4a6080;
    font-family: var(--mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #1e2d45;
}

.project-body {
    padding: clamp(20px, 5vw, 26px);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-body .tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

.project-body h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-body > p {
    color: var(--text-muted);
    font-size: 0.89rem;
    line-height: 1.68;
    margin-bottom: 16px;
    flex: 1;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.tag-list span {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 4px 10px;
    border-radius: 5px;
}

.visit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.2s, color 0.2s;
    margin-top: auto;
}

.visit-link:hover { gap: 10px; color: var(--accent2); }

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 8px 14px;
    border-radius: 7px;
    margin-top: auto;
    align-self: flex-start;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(26px, 6vw, 34px);
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.pricing-card.featured {
    border-color: transparent;
    background: linear-gradient(160deg, #0d1835 0%, #0f172a 100%);
    background-clip: padding-box;
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.12);
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-lg) + 1px);
    background: linear-gradient(135deg, #3b82f6, #22d3ee, #8b5cf6, #3b82f6);
    background-size: 300% 300%;
    animation: grad-border 4s ease infinite;
    z-index: -1;
}

@keyframes grad-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.featured-label {
    position: absolute;
    top: -1px; right: 22px;
    background: var(--grad);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 0 0 7px 7px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.pricing-card .price-desc-top {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-bottom: 4px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 7vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
    margin: 20px 0 6px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-amount .period,
.price-amount .plus {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    -webkit-text-fill-color: var(--text-muted);
    color: var(--text-muted);
}

.price-amount .secondary { font-size: 1.5rem; }

.price-type {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 22px;
}

.feature-list { list-style: none; margin-bottom: 26px; }

.feature-list li {
    font-size: 0.89rem;
    color: var(--text-muted);
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.55;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
    content: '✓';
    color: var(--accent2);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card .btn { width: 100%; }

.pricing-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(36px, 8vw, 64px);
    align-items: center;
}

.price-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 6vw, 36px);
    margin: 26px 0 30px;
}

.price-highlight { display: flex; flex-direction: column; gap: 6px; }

.price-big {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 6.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-big .per {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    -webkit-text-fill-color: var(--text-muted);
    color: var(--text-muted);
}

.price-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.faq-list {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

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

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px clamp(18px, 5vw, 26px);
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-family: var(--mono);
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.25s;
    line-height: 1;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--accent2); }
.faq-item summary:hover { background: rgba(59, 130, 246, 0.04); }

.faq-item .faq-body {
    padding: 0 clamp(18px, 5vw, 26px) 20px;
    font-size: 0.89rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.timeline {
    list-style: none;
    border-left: 2px solid var(--border);
    padding-left: 28px;
}

.timeline li { position: relative; padding-bottom: 36px; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
    content: '';
    position: absolute;
    left: -34px; top: 6px;
    width: 10px; height: 10px;
    background: var(--grad);
    border-radius: 50%;
    border: 2px solid var(--bg);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.55);
}

.tl-meta {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.timeline li h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline li p {
    color: var(--text-muted);
    font-size: 0.89rem;
    line-height: 1.68;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 5.5vw, 30px);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    display: block;
}

.contact-card:hover,
a.contact-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1), 0 12px 40px rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.contact-icon { font-size: 1.6rem; margin-bottom: 13px; }

.contact-card .label {
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.contact-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--accent);
    word-break: break-word;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 5.5vw, 36px);
}

.contact-form { display: grid; gap: 18px; }

.form-row { display: grid; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.field label .req { color: var(--accent2); }

.field input,
.field select,
.field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    min-height: 50px;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: #5a6b82; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2392a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-form .btn { justify-self: start; }

.form-status {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    display: none;
}

.form-status.show { display: block; }

.form-status.ok {
    color: var(--green);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 10px;
    padding: 12px 16px;
}

.form-status.err {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
}

.form-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.form-note a { color: var(--accent); font-weight: 600; }

@media (min-width: 640px) {
    .form-row.two { grid-template-columns: 1fr 1fr; }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 5vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.testimonial:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 12px 40px rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.testimonial-quote {
    position: relative;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.7;
    flex: 1;
}

.testimonial-quote::before {
    content: '\201C';
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 0.6;
    color: var(--accent);
    opacity: 0.45;
    margin-bottom: 10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.testimonial-name { font-weight: 700; font-size: 0.92rem; }
.testimonial-role { color: var(--text-muted); font-size: 0.8rem; }

@media (min-width: 880px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.cta-section {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(40px, 9vw, 64px) clamp(24px, 6vw, 56px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 500px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), rgba(34, 211, 238, 0.4), transparent);
    background-size: 200% 100%;
    animation: cta-sweep 3.5s linear infinite;
}

@keyframes cta-sweep {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.cta-section h2 {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    position: relative;
}

.cta-section > p {
    color: var(--text-muted);
    font-size: clamp(0.93rem, 2.6vw, 1rem);
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.75;
    position: relative;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    position: relative;
    max-width: 360px;
    margin: 0 auto;
}

footer {
    border-top: 1px solid var(--border);
    padding: clamp(44px, 9vw, 56px) 0 calc(28px + env(safe-area-inset-bottom));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 36px;
    align-items: start;
}

.footer-brand .logo { margin-bottom: 12px; }

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.footer-col { display: flex; flex-direction: column; gap: 4px; }

.footer-col h4 {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.tech-badge {
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.14);
    padding: 6px 13px;
    border-radius: 7px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}

.tech-badge:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(44px, 9vw, 64px);
    align-items: start;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    counter-reset: step;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(20px, 5vw, 26px);
    counter-increment: step;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.process-step:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 10px 32px rgba(59, 130, 246, 0.08);
    transform: translateY(-3px);
}

.process-step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.68;
}

.layer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.layer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(20px, 5vw, 26px);
    border-top: 3px solid var(--accent);
}

.layer-card.css-layer { border-top-color: var(--accent2); }
.layer-card.js-layer { border-top-color: var(--amber); }

.layer-card .layer-tag {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.layer-card.css-layer .layer-tag { color: var(--accent2); }
.layer-card.js-layer .layer-tag { color: var(--amber); }

.layer-card h3 { font-size: 1.05rem; margin-bottom: 8px; }

.layer-card p {
    color: var(--text-muted);
    font-size: 0.89rem;
    line-height: 1.68;
}

.demo-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.demo-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 10px 20px;
    min-height: 44px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.tab-btn:hover { border-color: var(--accent); color: var(--text); }

.tab-btn.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--accent);
    color: var(--accent-hover);
}

.demo-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.demo-pane-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-pane-label::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--grad);
}

.demo-code { display: none; }
.demo-code.active { display: block; }

.demo-viewport {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.demo-viewport-bar {
    background: #e9edf2;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #d6dce4;
}

.demo-viewport-bar span { width: 9px; height: 9px; border-radius: 50%; }
.demo-viewport-bar span:nth-child(1) { background: #ff5f57; }
.demo-viewport-bar span:nth-child(2) { background: #ffbd2e; }
.demo-viewport-bar span:nth-child(3) { background: #28c840; }

.demo-stage {
    padding: 24px 20px;
    min-height: 230px;
    color: #111;
}

.demo-stage.stage-html { font-family: 'Times New Roman', Times, serif; }
.demo-stage.stage-html h1 { font-family: inherit; font-size: 1.7rem; font-weight: 700; margin-bottom: 12px; color: #000; letter-spacing: 0; }
.demo-stage.stage-html p { margin-bottom: 12px; line-height: 1.4; color: #000; }
.demo-stage.stage-html button {
    font-family: inherit;
    font-size: 0.85rem;
    padding: 2px 8px;
    background: #efefef;
    border: 1px solid #767676;
    border-radius: 2px;
    color: #000;
    cursor: pointer;
}

.demo-stage.stage-css,
.demo-stage.stage-js {
    font-family: var(--font-body);
    background: linear-gradient(160deg, #f6f9ff 0%, #eef3fb 100%);
}

.demo-stage.stage-css h1,
.demo-stage.stage-js h1 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-stage.stage-css p,
.demo-stage.stage-js p {
    color: #475569;
    font-size: 0.92rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

.demo-stage.stage-css button,
.demo-stage.stage-js button {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 9px;
    padding: 12px 24px;
    min-height: 46px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s, box-shadow 0.2s;
}

.demo-stage.stage-js button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45); }
.demo-stage.stage-js button:active { transform: scale(0.96); }

.demo-msg {
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 12px;
    display: none;
}

.demo-msg.show { display: inline-block; animation: msg-pop 0.3s ease; }
.demo-msg.success { color: #15803d; background: #dcfce7; border-color: #bbf7d0; }

@keyframes msg-pop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.editor-pane, .preview-pane { display: flex; flex-direction: column; }

.editor-textarea {
    width: 100%;
    min-height: 260px;
    background: #060c18;
    border: 1px solid #1e2d45;
    border-radius: var(--radius);
    color: #c9e3ff;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.7;
    padding: 16px;
    resize: vertical;
    -webkit-overflow-scrolling: touch;
}

.editor-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.preview-frame {
    width: 100%;
    min-height: 260px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    flex: 1;
}

.editor-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.editor-actions .btn { min-height: 42px; padding: 8px 18px; font-size: 0.82rem; }

.rwd-demo { margin-top: 8px; }

.rwd-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.rwd-range {
    flex: 1;
    min-width: 180px;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}

.rwd-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--grad);
    cursor: pointer;
    border: 3px solid var(--bg);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.6);
}

.rwd-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid var(--bg);
}

.rwd-label {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent2);
    min-width: 130px;
}

.rwd-stage {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    overflow: hidden;
}

.rwd-clip { overflow: hidden; }

.rwd-frame {
    container-type: inline-size;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0,0,0,0.45);
}

.rwd-nav {
    background: #1e293b;
    color: #fff;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.rwd-nav .rwd-links { display: flex; gap: 10px; font-weight: 400; color: #94a3b8; }
.rwd-nav .rwd-burger { display: none; color: #94a3b8; }

.rwd-hero {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #fff;
    padding: 20px 14px;
    text-align: center;
}

.rwd-hero b { font-size: 0.85rem; display: block; margin-bottom: 3px; }
.rwd-hero small { font-size: 0.65rem; opacity: 0.85; }

.rwd-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
}

.rwd-card {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    font-size: 0.62rem;
    color: #334155;
    font-weight: 600;
}

.rwd-card::before {
    content: '';
    display: block;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    margin: 0 auto 8px;
}

@container (max-width: 620px) {
    .rwd-cards { grid-template-columns: repeat(2, 1fr); }
    .rwd-nav .rwd-links span:nth-child(3) { display: none; }
}

@container (max-width: 430px) {
    .rwd-cards { grid-template-columns: 1fr; }
    .rwd-nav .rwd-links { display: none; }
    .rwd-nav .rwd-burger { display: block; }
}

.gloss-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.gloss {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.gloss[open] { border-color: rgba(59, 130, 246, 0.4); }

.gloss summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    -webkit-tap-highlight-color: transparent;
}

.gloss summary::-webkit-details-marker { display: none; }

.gloss summary::after {
    content: '+';
    font-family: var(--mono);
    font-size: 1.15rem;
    color: var(--accent);
    transition: transform 0.25s;
    line-height: 1;
    flex-shrink: 0;
}

.gloss[open] summary::after { transform: rotate(45deg); }
.gloss[open] summary { color: var(--accent2); }

.gloss .gloss-body {
    padding: 0 20px 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.icode {
    font-family: var(--mono);
    font-size: 0.82em;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-radius: 5px;
    padding: 1px 6px;
    white-space: nowrap;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.in { opacity: 1; transform: translateY(0); }

.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .code-line { opacity: 1; transform: none; }
}

@media (min-width: 640px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .gloss-list { grid-template-columns: repeat(2, 1fr); align-items: start; }
    .layer-grid { grid-template-columns: repeat(3, 1fr); }
    .cta-actions { flex-direction: row; justify-content: center; max-width: none; }
    .cta-actions .btn { min-width: 180px; }
    .footer-inner { grid-template-columns: 1fr auto; gap: 48px; }
    .footer-links { display: flex; gap: 56px; }
}

@media (min-width: 880px) {
    :root { --header-h: 72px; }

    .nav-toggle { display: none; }

    nav {
        position: static;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: row;
        align-items: center;
        gap: 26px;
        padding: 0;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    nav a:not(.btn) {
        display: inline-flex;
        color: var(--text-muted);
        font-family: var(--font-body);
        font-size: 0.875rem;
        font-weight: 500;
        padding: 6px 0;
        border-bottom: none;
        opacity: 1;
        transform: none;
        transition: color 0.2s;
        position: relative;
        gap: 0;
    }

    nav a:not(.btn)::before { display: none; }

    nav a:not(.btn)::after {
        content: '';
        position: absolute;
        bottom: -2px; left: 0;
        width: 0; height: 1.5px;
        background: linear-gradient(90deg, var(--accent), var(--accent2));
        transition: width 0.25s ease;
    }

    nav a:not(.btn):hover { color: var(--text); }
    nav a:not(.btn):hover::after,
    nav a:not(.btn).active::after { width: 100%; }
    nav a.active:not(.btn) { color: var(--text); }

    nav a.btn {
        margin-top: 0;
        opacity: 1;
        transform: none;
        transition: all 0.2s;
        min-height: 42px;
        padding: 9px 20px;
        font-size: 0.84rem;
    }

    .header-actions { display: none; }

    .hero {
        min-height: calc(100vh - var(--header-h));
        display: flex;
        align-items: center;
    }

    .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
    .hero-stats { grid-template-columns: repeat(3, auto); gap: 40px; max-width: none; justify-content: start; }

    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-preview { grid-template-columns: 1fr 1fr; }
    .two-col-grid { grid-template-columns: 1fr 1fr; }
    .process-grid { grid-template-columns: repeat(4, 1fr); }
    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
    .contact-grid { grid-template-columns: repeat(3, 1fr); }
    .demo-split { grid-template-columns: 1fr 1fr; gap: 24px; }
    .editor-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (min-width: 1100px) {
    .projects-grid.three-up { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid.four-up { grid-template-columns: repeat(4, 1fr); }
}

@media (hover: hover) {
    .btn-primary { overflow: hidden; position: relative; }

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0; left: -80%;
        width: 55%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
        transform: skewX(-15deg);
        animation: btn-shimmer 1.2s 0.6s forwards;
    }

    @keyframes btn-shimmer {
        0% { left: -80%; }
        100% { left: 150%; }
    }
}
