/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a26;
    --surface: #16161f;
    --border: #1e1e2e;
    --border-light: #2a2a3e;
    --text: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-glow-strong: rgba(99, 102, 241, 0.3);
    --green: #34d399;
    --yellow: #fbbf24;
    --red: #f87171;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    gap: 8px;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow-strong);
}

.btn--primary:hover {
    background: var(--accent-light);
    box-shadow: 0 6px 30px var(--accent-glow-strong);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-glow);
}

.btn--full {
    width: 100%;
}

/* ===== Section Headers ===== */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 48px;
    color: var(--text);
}

.section-header {
    margin-bottom: 16px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

.nav--scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav__logo-text {
    color: var(--text);
}

.nav__logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    margin-bottom: -8px;
}

.nav__links {
    display: flex;
    gap: 36px;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--text);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__burger--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__burger--active span:nth-child(2) {
    opacity: 0;
}

.nav__burger--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero__accent {
    background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__canvas {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

/* ===== Ambient Background Glows ===== */
.about,
.services,
.projects,
.contact {
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.projects::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.projects::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== About ===== */
.about {
    padding: 120px 0;
}

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

.about__card {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.about__card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.about__card-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
}

.about__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* ===== Services ===== */
.services {
    padding: 120px 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.services__item {
    padding: 40px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.services__item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.services__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    color: var(--accent-light);
    margin-bottom: 24px;
}

.services__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* ===== Projects ===== */
.projects {
    padding: 120px 0;
}

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: visible;
}

.project:last-child {
    border-bottom: none;
}

.project--reverse {
    direction: rtl;
}

.project--reverse > * {
    direction: ltr;
}

/* Watermark behind each project */
.project__watermark {
    position: absolute;
    width: 140px;
    height: 140px;
    color: rgba(99, 102, 241, 0.12);
    pointer-events: none;
    z-index: 0;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    filter: blur(0.5px);
}

@keyframes wmFloat {
    0%, 100% { transform: translateY(-50%) translateX(0) rotate(0deg); }
    33% { transform: translateY(calc(-50% + 8px)) translateX(4px) rotate(0.5deg); }
    66% { transform: translateY(calc(-50% - 6px)) translateX(-3px) rotate(-0.5deg); }
}

/* Legalix */
.project:nth-child(2) .project__watermark {
    left: 410px;
    top: 68%;
}

/* Craftly — левее */
.project--reverse .project__watermark {
    left: auto;
    right: 80px;
    top: 75%;
}

/* Realytix — правее */
.project:nth-child(4) .project__watermark {
    left: 360px;
    top: 75%;
}

.project__info,
.project__preview {
    position: relative;
    z-index: 1;
}

/* Tag with icon */
.project__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--accent-glow);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project__tag-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.8;
}

.project__name {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.project__desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.project__features {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project__features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.project__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

/* Project Mockups */
.project__preview {
    display: flex;
    justify-content: center;
}

.project__mockup {
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mockup__bar {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.mockup__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
}

.mockup__content {
    padding: 28px 24px;
}

/* Legalix Mockup */
.mockup__header-line {
    width: 60%;
    height: 14px;
    background: var(--border-light);
    border-radius: 4px;
    margin-bottom: 20px;
}

.mockup__text-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.mockup__line {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

.mockup__line--w90 { width: 90%; }
.mockup__line--w80 { width: 80%; }
.mockup__line--w70 { width: 70%; }
.mockup__line--w60 { width: 60%; }
.mockup__line--w50 { width: 50%; }
.mockup__line--w40 { width: 40%; }

.mockup__risk-meter {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.mockup__risk-fill {
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--yellow));
    border-radius: 4px;
    animation: riskPulse 3s ease-in-out infinite;
}

@keyframes riskPulse {
    0%, 100% { width: 35%; }
    50% { width: 55%; }
}

.mockup__tags {
    display: flex;
    gap: 8px;
}

.mockup__tag {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

.mockup__tag--green {
    background: rgba(52, 211, 153, 0.15);
    color: var(--green);
}

.mockup__tag--yellow {
    background: rgba(251, 191, 36, 0.15);
    color: var(--yellow);
}

.mockup__tag--red {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
}

/* Craftly Mockup */
.mockup__prompt {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.mockup__prompt-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 16px 4px rgba(99, 102, 241, 0.2); }
}

.mockup__prompt-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding-top: 4px;
}

.mockup__line--shimmer {
    width: 80%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--border) 25%, var(--border-light) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

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

.mockup__progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.mockup__progress-bar {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.mockup__progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), #a78bfa);
    animation: progressFill 3s ease-in-out infinite;
}

@keyframes progressFill {
    0% { width: 0%; opacity: 1; }
    60% { width: 100%; opacity: 1; }
    70% { width: 100%; opacity: 0; }
    100% { width: 0%; opacity: 0; }
}

.mockup__progress-text {
    font-size: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-light);
    opacity: 0.7;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.2; }
}

.mockup__mini-site {
    background: var(--surface);
    border-radius: 8px;
    padding: 16px;
}

.mockup__line--built {
    height: 10px;
    border-radius: 4px;
    background: var(--border-light);
    animation: lineAppear 3s ease-in-out infinite;
}

@keyframes lineAppear {
    0%, 25% { width: 0; opacity: 0; }
    45%, 70% { width: 50%; opacity: 1; }
    85%, 100% { width: 50%; opacity: 0; }
}

.mockup__blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.mockup__block {
    aspect-ratio: 1;
    background: var(--border);
    border-radius: 6px;
}

.mockup__block--pop {
    opacity: 0;
    transform: scale(0.5);
    animation: blockPop 3s ease-in-out infinite;
}

@keyframes blockPop {
    0%, 20% { opacity: 0; transform: scale(0.5); }
    35%, 65% { opacity: 1; transform: scale(1); }
    80%, 100% { opacity: 0; transform: scale(0.9); }
}

.mockup__block--wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.mockup__deploy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    animation: deployAppear 3s ease-in-out infinite;
}

@keyframes deployAppear {
    0%, 55% { opacity: 0; transform: translateY(6px); }
    70%, 85% { opacity: 1; transform: translateY(0); }
    95%, 100% { opacity: 0; transform: translateY(0); }
}

.mockup__deploy-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.mockup__deploy-text {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--green);
    opacity: 0.8;
}

/* Realytix Mockup */
.mockup__chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    position: relative;
}

.mockup__chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transform-origin: bottom;
    position: relative;
    overflow: hidden;
}

.mockup__chart-bar--live {
    background: linear-gradient(0deg, var(--accent), var(--accent-light));
    animation: barLive 6s ease-in-out infinite;
}

.mockup__chart-bar--live:nth-child(2) { animation-delay: 0.3s; }
.mockup__chart-bar--live:nth-child(3) { animation-delay: 0.6s; }
.mockup__chart-bar--live:nth-child(4) { animation-delay: 0.9s; }
.mockup__chart-bar--live:nth-child(5) { animation-delay: 1.2s; }
.mockup__chart-bar--live:nth-child(6) { animation-delay: 1.5s; }
.mockup__chart-bar--live:nth-child(7) { animation-delay: 1.8s; }

@keyframes barLive {
    0%, 100% { height: var(--h1); }
    33% { height: var(--h2); }
    66% { height: var(--h3); }
}

.mockup__chart-bar--live::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
    border-radius: 4px 4px 0 0;
}

.mockup__scan-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    margin-bottom: 14px;
    opacity: 0.6;
    animation: scanMove 3s ease-in-out infinite;
}

@keyframes scanMove {
    0% { opacity: 0; transform: scaleX(0.2); }
    50% { opacity: 0.7; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0.2); }
}

.mockup__stats {
    display: flex;
    gap: 16px;
}

.mockup__stat {
    flex: 1;
    text-align: center;
}

.mockup__stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
}

.mockup__stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== Contact ===== */
.contact {
    padding: 120px 0;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px;
}

.contact__text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    margin-top: -24px;
}

.contact__email {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-light);
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.contact__email:hover {
    border-bottom-color: var(--accent-light);
}

.form__group {
    margin-bottom: 16px;
}

.form__input {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form__input::placeholder {
    color: var(--text-muted);
}

.form__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 0;
    border-top: 1px solid var(--border);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.footer__about {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer__heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 16px;
}

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

.footer__link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    margin-bottom: 10px;
}

.footer__link:hover {
    color: var(--accent-light);
}

.footer__address {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 4px;
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.footer__copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Cookie Terminal ===== */
.cookie-term {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 200;
    width: 420px;
    max-width: calc(100vw - 48px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: rgba(12, 12, 18, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.08);
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-term--visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-term--closing {
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.84, 0), opacity 0.3s ease;
}

.cookie-term__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(22, 22, 31, 0.8);
    border-bottom: 1px solid var(--border);
}

.cookie-term__dots {
    display: flex;
    gap: 6px;
}

.cookie-term__dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.cookie-term__dots i:nth-child(1) { background: #f87171; }
.cookie-term__dots i:nth-child(2) { background: #fbbf24; }
.cookie-term__dots i:nth-child(3) { background: #34d399; }

.cookie-term__title {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.cookie-term__body {
    padding: 16px;
}

.cookie-term__log {
    min-height: 20px;
    margin-bottom: 12px;
}

.cookie-term__line {
    display: block;
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow: hidden;
}

.cookie-term__line--cmd {
    color: var(--green);
}

.cookie-term__line--info {
    color: var(--text-muted);
}

.cookie-term__line--accent {
    color: var(--accent-light);
}

.cookie-term__line--result {
    color: var(--green);
    font-weight: 600;
}

.cookie-term__cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: var(--accent-light);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.8s step-end infinite;
}

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

.cookie-term__prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-term__prompt--visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-term__caret {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.cookie-term__btn {
    font-family: inherit;
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
}

.cookie-term__btn--accept {
    color: var(--green);
    border-color: rgba(52, 211, 153, 0.3);
}

.cookie-term__btn--accept:hover {
    background: rgba(52, 211, 153, 0.12);
    border-color: var(--green);
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.15);
}

.cookie-term__btn--decline {
    color: var(--text-muted);
    border-color: var(--border);
}

.cookie-term__btn--decline:hover {
    color: var(--text-secondary);
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.03);
}

/* ===== Animations ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__canvas {
        max-width: 300px;
    }

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

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

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

    .project {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project--reverse {
        direction: ltr;
    }

    .project__preview {
        order: -1;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 40px;
    }

    /* Legalix — ниже и правее */
    .project:nth-child(2) .project__watermark {
        left: 480px;
        top: 80%;
    }

    /* Craftly — ниже */
    .project--reverse .project__watermark {
        top: 85%;
    }

    /* Realytix — правее и чуть ниже */
    .project:nth-child(4) .project__watermark {
        left: 430px;
        top: 80%;
    }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav__links--open {
        opacity: 1;
        pointer-events: all;
    }

    .nav__links--open .nav__link {
        font-size: 1.3rem;
        color: var(--text);
    }

    .nav__burger {
        display: flex;
        z-index: 101;
    }

    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero__title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .about,
    .services,
    .projects,
    .contact {
        padding: 80px 0;
    }

    .project {
        padding: 40px 0;
    }

    .contact__inner {
        padding: 28px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Legalix */
    .project:nth-child(2) .project__watermark {
        left: 300px;
        top: 90%;
    }

    /* Craftly */
    .project--reverse .project__watermark {
        right: 20px;
        top: 88%;
    }

    /* Realytix — левее */
    .project:nth-child(4) .project__watermark {
        left: 325px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__canvas {
        max-width: 250px;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .about__card,
    .services__item {
        padding: 28px 24px;
    }

    .mockup__content {
        padding: 20px 16px;
    }
}
