:root {
    --z-0: #050507;
    --z-1: #0a0a0f;
    --z-2: #101018;
    --z-3: #16161f;
    --surface: rgba(18, 18, 26, 0.65);
    --surface-solid: #12121a;
    --text: #f4f4f8;
    --text-2: #c4c2d0;
    --muted: #8b8798;
    --line: rgba(255, 255, 255, 0.065);
    --line-strong: rgba(255, 255, 255, 0.1);
    --accent-1: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #ec4899;
    --grad-text: linear-gradient(120deg, #a78bfa 0%, #e879f9 45%, #fb7185 100%);
    --grad-btn: linear-gradient(135deg, #6366f1 0%, #9333ea 50%, #db2777 100%);
    --grad-glow: rgba(99, 102, 241, 0.12);
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --space-section: clamp(4.5rem, 10vw, 7.5rem);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.65);
    --shadow-card: 0 0 0 1px var(--line), var(--shadow-sm);
    --shadow-hover: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 32px 64px -28px rgba(0, 0, 0, 0.75);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

#hero,
section[id] {
    scroll-margin-top: max(5.5rem, env(safe-area-inset-top, 0px) + 4.5rem);
}

@media (max-width: 767.98px) {
    #hero,
    section[id] {
        scroll-margin-top: max(5.25rem, env(safe-area-inset-top, 0px) + 4rem);
    }
}

html.app-body,
body.app-body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100% !important;
    overflow-x: clip !important;
    background: var(--z-0) !important;
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -30%, rgba(99, 102, 241, 0.14), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(236, 72, 153, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(168, 85, 247, 0.07), transparent) !important;
    color: var(--text) !important;
    font-family: var(--font) !important;
    font-size: 16px;
    line-height: 1.6 !important;
    font-weight: 400;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.app-body {
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-tap-highlight-color: rgba(129, 140, 248, 0.15);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

main#site-main.layout-protected {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
}

header#site-nav.navbar.layout-protected {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease), opacity 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}

.gradient-orb--a {
    width: min(480px, 75vw);
    height: min(480px, 75vw);
    background: #4f46e5;
    top: -140px;
    right: -100px;
}

.gradient-orb--b {
    width: min(380px, 60vw);
    height: min(380px, 60vw);
    background: #be185d;
    bottom: 5%;
    left: -120px;
}

.navbar {
    transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
    background: transparent;
    border-bottom: 1px solid transparent;
    padding-top: env(safe-area-inset-top, 0px);
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.88) !important;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom-color: var(--line) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
    position: relative;
}

.wordmark {
    font-family: var(--font);
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    color: var(--text);
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.wordmark-mark {
    color: var(--accent-3);
    font-weight: 800;
}

.wordmark-domain {
    font-size: 0.55em;
    font-weight: 700;
    color: var(--muted);
    margin-left: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 28px);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    padding: 8px 4px;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 10px 18px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-strong);
    color: var(--text) !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    border-color: rgba(167, 139, 250, 0.45);
    background: rgba(99, 102, 241, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--r-sm);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    margin-inline: auto;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: min(100vh, 920px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(88px + 2rem) 0 5rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.38;
    z-index: 0;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.hero-glow--1 {
    width: 360px;
    height: 360px;
    background: #6366f1;
    top: -60px;
    left: -80px;
}

.hero-glow--2 {
    width: 420px;
    height: 420px;
    background: rgba(236, 72, 153, 0.45);
    right: -80px;
    top: 12%;
}

.hero-glow--3 {
    width: 260px;
    height: 260px;
    background: #9333ea;
    bottom: 15%;
    left: 28%;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.88fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-copy {
    text-align: left;
    max-width: 38rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.35rem;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--grad-btn);
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.5);
}

.hero-title {
    font-family: var(--font);
    font-size: clamp(2.25rem, 4.8vw, 3.65rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.hero-lead {
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 36rem;
}

.typewriter-wrap {
    display: block;
    margin-top: 0.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2.25rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 28rem;
    list-style: none;
}

.hero-stat {
    padding: 14px 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow-sm);
}

.hero-stat dt {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 4px;
}

.hero-stat dd {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero-visual {
    justify-self: end;
    width: 100%;
    max-width: 400px;
}

.hero-card {
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    backdrop-filter: blur(16px);
    max-width: 400px;
    margin-inline: auto;
}

.hero-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.hero-card-header-left {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-card-tabs {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line);
    gap: 2px;
}

.hero-card-tab {
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 12px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
    transition: color 0.2s, background 0.2s;
}

.hero-card-tab:hover {
    color: var(--text);
}

.hero-card-tab.is-active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.35);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.35);
}

.hero-card-panel--game {
    padding-top: 0;
}

.hero-game-lead {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 10px;
    line-height: 1.4;
}

.hero-embed-wrap {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid rgba(129, 140, 248, 0.18);
    background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(99, 102, 241, 0.12), transparent 55%), #050508;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-embed-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 400 / 176;
}

.hero-embed-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(5, 5, 10, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2;
    padding: 10px;
    text-align: center;
}

.hero-embed-cta {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e9d5ff;
}

.hero-embed-layer--go .hero-embed-go-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fda4af;
}

.hero-embed-layer--go .hero-embed-go-pts {
    font-size: 0.8rem;
    color: var(--text-2);
}

.hero-embed-retry {
    margin-top: 4px;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.45);
    background: rgba(99, 102, 241, 0.25);
    color: #e0e7ff;
    cursor: pointer;
}

.hero-embed-retry:hover {
    background: rgba(99, 102, 241, 0.4);
}

.hero-embed-layer.is-hidden {
    display: none !important;
}

.hero-embed-meta {
    margin: 10px 0 0;
    font-size: 0.72rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.hero-card-pill {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.hero-card-pill--muted {
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border-color: var(--line);
}

.hero-card-body {
    padding: 22px 20px 26px;
}

.hero-card-panel--code {
    padding-top: 0;
}

.hero-code-intro {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 12px;
}

.hero-code-filename {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.88em;
    color: #a5b4fc;
    font-weight: 600;
}

.hero-code-editor {
    margin: 0 0 14px;
    border-radius: var(--r-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(12, 12, 18, 0.98) 0%, rgba(6, 6, 10, 0.99) 100%);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.hero-code-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.35);
}

.hero-code-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hero-code-dots i {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3d3d45;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-code-dots i:nth-child(1) { background: #ff5f57; }
.hero-code-dots i:nth-child(2) { background: #febc2e; }
.hero-code-dots i:nth-child(3) { background: #28c840; }

.hero-code-title {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: #a1a1aa;
    letter-spacing: 0.02em;
    user-select: none;
}

.hero-code-scroll {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    max-height: min(46vh, 360px);
    overflow: auto;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    outline: none;
    -webkit-overflow-scrolling: touch;
}

.hero-code-scroll:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(129, 140, 248, 0.45);
}

.hero-code-gutter {
    padding: 14px 0 14px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    line-height: 1.65;
    font-variant-numeric: tabular-nums;
    color: #52525b;
    text-align: right;
    user-select: none;
    min-width: 2.25rem;
}

.hero-code-gutter span { display: block; }

.hero-code-pre {
    margin: 0;
    padding: 14px 14px 14px 12px;
    border: none;
    background: transparent;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    line-height: 1.65;
    letter-spacing: 0;
    font-variant-ligatures: none;
    tab-size: 4;
    color: #e4e4e7;
    min-width: 0;
}

.hero-code-scroll::-webkit-scrollbar { width: 9px; height: 9px; }
.hero-code-scroll::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.25); }
.hero-code-scroll::-webkit-scrollbar-thumb { background: rgba(129, 140, 248, 0.35); border-radius: 5px; }
.hero-code-scroll::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, 0.5); }

.hero-code-raw {
    display: block;
    margin: 0;
    white-space: pre;
    word-break: normal;
}

.hero-code-editor .token.comment,
.hero-code-editor .token.prolog,
.hero-code-editor .token.doctype { color: #6b7280; font-style: italic; }
.hero-code-editor .token.keyword,
.hero-code-editor .token.boolean { color: #c4b5fd; font-weight: 600; }
.hero-code-editor .token.string,
.hero-code-editor .token.char,
.hero-code-editor .token.attr-value,
.hero-code-editor .token.template-string { color: #86efac; }
.hero-code-editor .token.number { color: #fdba74; }
.hero-code-editor .token.function,
.hero-code-editor .token.class-name { color: #93c5fd; }
.hero-code-editor .token.operator,
.hero-code-editor .token.entity,
.hero-code-editor .token.url { color: #f0abfc; }
.hero-code-editor .token.punctuation { color: #a1a1aa; }
.hero-code-editor .token.regex,
.hero-code-editor .token.important,
.hero-code-editor .token.variable { color: #fcd34d; }
.hero-code-editor .token.constant,
.hero-code-editor .token.builtin { color: #67e8f9; }

.hero-code-copy {
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(129, 140, 248, 0.4);
    background: rgba(99, 102, 241, 0.2);
    color: #e0e7ff;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.hero-code-copy:hover {
    background: rgba(99, 102, 241, 0.35);
}

.hero-code-copy:active {
    transform: scale(0.98);
}

.hero-copy-feedback {
    font-size: 0.72rem;
    min-height: 1.2em;
    margin-top: 8px;
    color: #86efac;
}

.hero-card-footer {
    padding: 12px 18px;
    font-size: 0.75rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.25);
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    transform: rotate(45deg);
    animation: float-arrow 2.2s ease-in-out infinite;
}

@keyframes float-arrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(5px); }
}

.hero-giant-text {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font);
    font-size: clamp(4.5rem, 16vw, 12rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.018);
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
}

.marquee-strip {
    position: relative;
    z-index: 1;
    border-block: 1px solid var(--line);
    background: var(--z-1);
    padding: 14px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 32px;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    animation: marquee 40s linear infinite;
}

.marquee-dot {
    opacity: 0.25;
    font-size: 0.45rem;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.section {
    position: relative;
    padding: var(--space-section) 0;
    z-index: 1;
}

.section--accent {
    background: linear-gradient(180deg, rgba(10, 10, 16, 0.92) 0%, rgba(5, 5, 8, 0.4) 100%);
    border-block: 1px solid var(--line);
}

.section--tilt {
    padding-top: calc(var(--space-section) + 0.5rem);
}

.section-head {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    max-width: 42rem;
}

.section-head.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font);
    font-size: clamp(1.75rem, 3.2vw, 2.65rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.038em;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.0625rem;
    line-height: 1.55;
    max-width: 32rem;
}

.section-text {
    color: var(--text-2);
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.section-text.lead {
    font-size: 1.08rem;
    color: var(--text);
}

.section-text:last-child {
    margin-bottom: 0;
}

/* ========================================================= */
/* BENTO CARDS BASE (MOBILE FIRST CORRIGIDO)                 */
/* ========================================================= */
.about-bento {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

.about-panel {
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    backdrop-filter: blur(12px);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.about-panel:hover {
    border-color: rgba(167, 139, 250, 0.2);
    box-shadow: var(--shadow-hover);
}

.about-panel--hero {
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.about-panel--card h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.about-panel--card p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--muted);
}

.about-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    color: #c4b5fd;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

@media (min-width: 640px) and (max-width: 1023.98px) {
    .about-bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-panel--lead {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .about-bento {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .about-panel--lead.about-panel--hero {
        grid-column: 1 / span 7;
        grid-row: 1 / span 2;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .about-panel--stack-a { grid-column: 8 / span 5; grid-row: 1; }
    .about-panel--stack-b { grid-column: 8 / span 5; grid-row: 2; }
    .about-panel--foot-a { grid-column: 1 / span 6; grid-row: 3; }
    .about-panel--foot-b { grid-column: 7 / span 6; grid-row: 3; }
}

.section--portfolio {
    --space-section: clamp(3.75rem, 8vw, 5.5rem);
}

.portfolio-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 0.85rem;
}

.portfolio-card {
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--surface-solid);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.35s;
}

.portfolio-card:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, 0.28);
    box-shadow: var(--shadow-hover);
}

.portfolio-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 3;
    min-height: 0;
    background: var(--z-2);
    border-bottom: 1px solid var(--line);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    filter: grayscale(22%) contrast(1.02);
    transition: filter 0.45s, transform 0.5s var(--ease);
}

.portfolio-card:hover .portfolio-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.portfolio-body {
    padding: 0.65rem 0.75rem 0.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.15rem;
    min-height: 0;
}

.portfolio-tag {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ddd6fe;
    margin-bottom: 0.1rem;
}

.portfolio-body h3 {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.portfolio-body p {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
    flex: 1;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-link {
    font-weight: 700;
    font-size: 0.75rem;
    color: #a78bfa;
    margin-top: auto;
    align-self: flex-start;
    padding: 0.15rem 0;
}

.portfolio-link:hover {
    color: #f0abfc;
}

.steps-rail {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    max-width: 1000px;
    margin-inline: auto;
}

.step-card {
    flex: 1 1 220px;
    max-width: 300px;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #a78bfa;
    margin-bottom: 0.75rem;
}

.step-icon {
    color: #c4b5fd;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
}

.step-connector {
    flex: 0 0 40px;
    width: 40px;
    align-self: center;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.dev-showcase {
    display: grid;
    grid-template-columns: minmax(auto, 220px) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    max-width: 800px;
    margin-inline: auto;
    padding: clamp(1.35rem, 2.5vw, 2rem) clamp(1.25rem, 2.5vw, 2rem);
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.07), transparent 50%, rgba(236, 72, 153, 0.04));
    box-shadow: var(--shadow-card);
}

.dev-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.dev-photo-frame {
    position: relative;
    width: min(200px, 46vw);
    aspect-ratio: 4 / 5;
    flex-shrink: 0;
    border-radius: var(--r-lg);
}

.dev-photo-ring {
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--r-lg) + 2px);
    background: linear-gradient(145deg, #6366f1, #9333ea 45%, #ec4899);
    opacity: 0.42;
    z-index: 0;
}

.dev-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--z-2);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.dev-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transform: scale(1.06);
    transform-origin: center 35%;
}

.dev-photo-note {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--muted);
}

.dev-info h3 {
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 0.35rem;
}

.dev-meta {
    color: #c4b5fd;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.dev-desc {
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 36rem;
}

.dev-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dev-skills span {
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-2);
}

.section--contact {
    padding-bottom: calc(var(--space-section) + 2rem);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.contact-intro .section-title {
    margin-bottom: 1rem;
}

.contact-perks {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.45;
}

.contact-perks li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-perk-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.45);
}

.contact-chips {
    margin-top: 1.75rem;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.25s, background 0.25s;
}

.contact-chip:hover {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(52, 211, 153, 0.08);
}

.contact-chip-icon {
    display: flex;
    color: #34d399;
}

.contact-form-shell {
    border-radius: calc(var(--r-lg) + 2px);
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(236, 72, 153, 0.25), rgba(99, 102, 241, 0.2));
}

#contact-brief-shell {
    scroll-margin-top: max(6rem, env(safe-area-inset-top, 0px) + 5rem);
}

.brief-btn-text {
    display: inline-block;
    max-width: 100%;
    text-align: center;
    line-height: 1.3;
}

.contact-form {
    position: relative;
    border-radius: var(--r-lg);
    background: rgba(12, 12, 18, 0.85);
    backdrop-filter: blur(24px);
    padding: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form--brief {
    gap: 1.35rem;
}

.form-feedback--brief {
    min-height: 1.35rem;
    margin: 0;
}

.brief-progress {
    margin-bottom: 0.25rem;
}

.brief-progress-hint {
    margin: 0.6rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.45;
}

.brief-progress-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.brief-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.brief-progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.brief-progress-steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    line-height: 1.2;
    opacity: 0.55;
    transition: opacity 0.25s, color 0.25s;
}

.brief-progress-steps li.is-done,
.brief-progress-steps li.is-active {
    opacity: 1;
    color: var(--text-2);
}

.brief-progress-steps li.is-active {
    color: #e9d5ff;
}

.brief-p-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.brief-progress-steps li.is-done .brief-p-num {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.45);
    color: #6ee7b7;
}

.brief-progress-steps li.is-active .brief-p-num {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(167, 139, 250, 0.55);
    color: #fff;
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.35);
}

.brief-panel {
    scroll-margin-top: max(6.25rem, env(safe-area-inset-top, 0px) + 5.25rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: brief-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes brief-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.brief-heading {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.25;
}

.brief-heading:focus {
    outline: none;
}

.brief-heading:focus-visible {
    border-radius: var(--r-sm);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.55);
}

.brief-lead {
    margin: -0.35rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

.brief-scope {
    border: none;
    margin: 0;
    padding: 0;
}

.brief-scope-legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.brief-scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .brief-scope-grid--dense {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.brief-tile {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}

.brief-tile-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.brief-tile-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 0.95rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: rgba(5, 5, 8, 0.55);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.brief-tile-input:focus-visible + .brief-tile-body {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    border-color: rgba(129, 140, 248, 0.55);
}

.brief-tile-input:checked + .brief-tile-body {
    border-color: rgba(167, 139, 250, 0.65);
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.12);
}

.brief-tile:hover .brief-tile-body {
    border-color: rgba(129, 140, 248, 0.35);
}

.brief-tile-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}

.brief-tile-desc {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.35;
}

.brief-tile--wide {
    grid-column: 1 / -1;
}

.brief-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.brief-inline--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-optional {
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.85;
}

.brief-summary-card {
    border-radius: var(--r-md);
    border: 1px solid rgba(129, 140, 248, 0.28);
    background: linear-gradient(165deg, rgba(99, 102, 241, 0.09) 0%, rgba(12, 12, 18, 0.5) 100%);
    padding: 1rem 1.15rem;
}

.brief-summary-head {
    margin-bottom: 0.85rem;
}

.brief-summary-kicker {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c4b5fd;
}

.brief-summary-note {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
}

.brief-summary-note strong {
    color: var(--text-2);
    font-weight: 700;
}

.brief-summary-dl {
    margin: 0;
    display: grid;
    gap: 0.45rem 1rem;
    grid-template-columns: minmax(0, 110px) 1fr;
    font-size: 0.82rem;
    align-items: start;
}

.brief-summary-dl dt {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.brief-summary-dl dd {
    margin: 0;
    color: var(--text);
    line-height: 1.45;
    word-break: break-word;
}

.brief-send-steps {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.brief-send-steps__item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.35;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.brief-send-steps__item.is-done {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.07);
    color: #a7f3d0;
}

.brief-send-steps__item.is-current {
    border-color: rgba(129, 140, 248, 0.5);
    background: rgba(99, 102, 241, 0.12);
    color: var(--text);
    font-weight: 600;
}

.brief-send-steps__n {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-2);
}

.brief-send-steps__item.is-done .brief-send-steps__n {
    background: rgba(52, 211, 153, 0.25);
    color: #ecfdf5;
}

.brief-send-steps__item.is-current .brief-send-steps__n {
    background: rgba(99, 102, 241, 0.55);
    color: #fff;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

.brief-send-steps__txt {
    flex: 1;
    min-width: 0;
}

.captcha-box--explained {
    border-style: solid;
    border-color: rgba(129, 140, 248, 0.22);
}

.captcha-lead {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.5;
}

.captcha-lead em {
    color: #fde68a;
    font-style: normal;
    font-weight: 600;
}

.captcha-badge {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.brief-submit-hint {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
    text-align: center;
}

.brief-btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.brief-btn-ico {
    font-size: 1.05rem;
    opacity: 0.9;
}

.brief-select {
    width: 100%;
    padding: 13px 15px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: rgba(5, 5, 8, 0.6);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.25rem;
}

.brief-select:focus {
    outline: none;
    border-color: rgba(129, 140, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.brief-char {
    font-size: 0.72rem;
    color: var(--muted);
    margin: 0.15rem 0 0;
}

.brief-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.brief-nav-spacer {
    flex: 1;
    min-width: 0;
}

.brief-nav--final {
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.contact-form .brief-btn-next,
.contact-form .brief-btn-back {
    min-width: 120px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 13px 15px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: rgba(5, 5, 8, 0.6);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: rgba(129, 140, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.captcha-box {
    padding: 1.1rem 1.15rem;
    border-radius: var(--r-md);
    border: 1px dashed rgba(167, 139, 250, 0.35);
    background: rgba(99, 102, 241, 0.06);
}

.captcha-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.captcha-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e9d5ff;
}

.captcha-hint {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
    margin-top: 0.65rem;
}

.turnstile-widget {
    min-height: 68px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.form-unavailable {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

.form-unavailable code {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.88em;
    color: #c4b5fd;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    border: none;
    transition: transform 0.25s var(--ease), box-shadow 0.35s;
    overflow: hidden;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--grad-btn);
    color: #fff;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(236, 72, 153, 0.28);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: rgba(167, 139, 250, 0.4);
    background: rgba(99, 102, 241, 0.08);
}

.btn-full {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
}

.btn-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.65s var(--ease);
}

.btn-primary:hover .btn-shine {
    transform: translateX(100%);
}

.form-feedback {
    font-size: 0.875rem;
    min-height: 22px;
    margin: 0.25rem 0 0;
}

.form-feedback.success { color: #4ade80; }
.form-feedback.error { color: #fb7185; }

.footer {
    position: relative;
    padding: 4rem 0 1.75rem;
    border-top: 1px solid var(--line);
    background: var(--z-0);
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-family: var(--font);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.footer-logo .wordmark-mark { color: var(--accent-3); }
.footer-logo .wordmark-domain { color: var(--muted); font-size: 0.55em; font-weight: 700; }

.footer-text {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 260px;
}

.footer-col h3 {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-2);
    font-size: 0.875rem;
    margin-bottom: 0.65rem;
}

.footer-col a:hover { color: #e9d5ff; }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--muted);
    position: relative;
    z-index: 2;
}

.footer-giant-text {
    position: absolute;
    bottom: -36px;
    right: -5%;
    font-family: var(--font);
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.02);
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.whatsapp-float {
    position: fixed !important;
    bottom: 26px !important;
    right: 26px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: #25d366 !important;
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.42) !important;
    z-index: 9999 !important;
    transition: transform 0.25s var(--ease), box-shadow 0.25s !important;
    animation: wa-ring 2.5s ease-in-out infinite;
}

.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05) !important;
    animation: none;
}

@keyframes wa-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal-up { transform: translateY(28px); }
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal-scale { transform: scale(0.96); }

.is-visible { opacity: 1 !important; transform: none !important; }

.delay-1 { transition-delay: 0.06s; }
.delay-2 { transition-delay: 0.12s; }
.delay-3 { transition-delay: 0.18s; }

.typewriter-text {
    border-right: 2px solid #c4b5fd;
    padding-right: 4px;
    animation: caret 0.85s step-end infinite;
}

@keyframes caret {
    0%, 100% { border-color: transparent; }
    50% { border-color: #a78bfa; }
}

@media (max-width: 1023.98px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-copy { margin-inline: auto; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-stats { margin-inline: auto; }
    .hero-eyebrow { justify-content: center; }
    .hero-visual { justify-self: center; order: -1; max-width: 360px; }

    .portfolio-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-grid { display: flex; flex-direction: column; gap: clamp(1.5rem, 4vw, 2rem); }
    .contact-intro { order: 2; }
    .contact-form-shell { order: 1; width: 100%; }

    .dev-showcase { grid-template-columns: 1fr; text-align: center; }
    .dev-skills { justify-content: center; }
    .dev-desc { margin-inline: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
    .hero-visual { display: none !important; }

    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; width: 100%;
        flex-direction: column; align-items: stretch;
        padding: 12px 16px 20px; background: rgba(8, 8, 12, 0.97);
        border-bottom: 1px solid var(--line); gap: 4px;
        clip-path: inset(0 0 100% 0); transition: clip-path 0.4s var(--ease);
        pointer-events: none;
    }
    .nav-links.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
    .nav-links a { padding: 12px 16px; border-radius: var(--r-sm); }
    .nav-links a:hover { background: rgba(255, 255, 255, 0.04); }
    .nav-cta { text-align: center; margin-top: 8px; }

    .hero { min-height: auto; padding-top: calc(76px + 1.5rem); }
    .hero-stats { grid-template-columns: 1fr; max-width: 100%; }

    .steps-rail {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    .step-card {
        width: 100%;
        max-width: 100%;
    }

    .step-connector {
        flex: 0 0 auto;
        height: 32px;
        width: 2px;
        background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-text { margin-inline: auto; }
    .footer-col a { margin-inline: auto; }
}

@media (max-width: 639.98px) {
    .portfolio-bento { grid-template-columns: 1fr; gap: 1rem; }
}

/* ========== Mobile-first polish (touch, safe areas, legibilidade) ========== */
@media (max-width: 767.98px) {
    body.app-body { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 4.25rem); }

    .section {
        padding-top: clamp(2.75rem, 8vw, var(--space-section));
        padding-bottom: clamp(2.75rem, 8vw, var(--space-section));
    }
    .section--tilt { padding-top: clamp(3rem, 9vw, 4rem); }

    .hero {
        padding-top: calc(env(safe-area-inset-top, 0px) + 5.25rem);
        padding-bottom: clamp(2rem, 6vw, 3.5rem);
    }
    .hero-title { font-size: clamp(1.85rem, 8.5vw, 2.45rem); line-height: 1.08; }
    .hero-lead { font-size: 1.0625rem; line-height: 1.62; }

    .hero-actions { flex-direction: column; align-items: stretch; gap: 0.65rem; }
    .hero-actions .btn { width: 100%; min-height: 48px; justify-content: center; touch-action: manipulation; }
    .hero-stats { gap: 0.65rem; }
    .hero-stat { padding: 12px 14px; min-height: 48px; display: flex; flex-direction: column; justify-content: center; }

    .hero-scroll-hint { margin-top: 1.25rem; }
    .nav-toggle { min-width: 48px; min-height: 48px; touch-action: manipulation; }
    .nav-links {
        max-height: min(72vh, calc(100vh - 5.5rem)); overflow-y: auto; overflow-x: hidden;
        -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    }
    .nav-links a, .nav-cta { min-height: 48px; display: flex; align-items: center; justify-content: center; touch-action: manipulation; }

    .section-title { font-size: clamp(1.55rem, 6.5vw, 2rem); }
    .section-subtitle { font-size: 1rem; }
    .contact-intro { text-align: left; }

    #brief-progress {
        position: sticky; top: calc(env(safe-area-inset-top, 0px) + 56px); z-index: 8;
        margin: 0 0 1rem; padding: 0.65rem 0.75rem 0.55rem;
        background: rgba(8, 8, 12, 0.94); backdrop-filter: blur(16px) saturate(1.1);
        -webkit-backdrop-filter: blur(16px) saturate(1.1);
        border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    }

    .brief-btn-text { font-size: 0.9rem; line-height: 1.28; }
    .contact-chip { width: 100%; justify-content: center; min-height: 48px; touch-action: manipulation; }
    .contact-form--brief { padding: clamp(1.15rem, 4vw, 1.65rem); }
    .contact-form input, .contact-form textarea, .contact-form select, .brief-select { font-size: 16px; line-height: 1.45; }

    .brief-progress-steps {
        display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 0.5rem;
        padding-bottom: 0.35rem; margin-left: -0.25rem; margin-right: -0.25rem;
        padding-left: 0.25rem; padding-right: 0.25rem;
        -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scrollbar-width: thin;
    }
    .brief-progress-steps li { flex: 0 0 auto; scroll-snap-align: start; min-width: 4.5rem; }

    .brief-tile-body { min-height: 72px; justify-content: center; }
    .brief-nav { flex-direction: column-reverse; align-items: stretch; gap: 0.5rem; }
    .brief-nav .btn { width: 100%; min-height: 48px; justify-content: center; touch-action: manipulation; }
    .brief-nav-spacer { display: none; }
    .brief-btn-next { order: -1; }
    .btn-full { min-height: 52px; font-size: 1rem; }

    .footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
    .whatsapp-float {
        bottom: max(1.1rem, env(safe-area-inset-bottom, 0px) + 0.35rem) !important;
        right: max(1rem, env(safe-area-inset-right, 0px) + 0.35rem) !important;
        width: 54px !important; height: 54px !important; touch-action: manipulation;
    }

    .dev-photo-wrap { max-width: 280px; margin-inline: auto; }
    .step-card { padding: 1.15rem 1.1rem; }
}

@media (max-width: 520px) {
    .brief-scope-grid { grid-template-columns: 1fr; }
    .brief-inline { grid-template-columns: 1fr; }
    .brief-inline--triple { grid-template-columns: 1fr; }
    .brief-summary-dl { grid-template-columns: 1fr; }
    .brief-summary-dl dt { opacity: 0.85; }
    .brief-progress-steps { font-size: 0.6rem; gap: 0.15rem; }
    .brief-p-num { width: 22px; height: 22px; font-size: 0.65rem; }
}

@media (max-width: 767.98px) and (hover: none) {
    .btn-primary:hover { transform: none; }
    .portfolio-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-track { animation: none; }
    .typewriter-text { animation: none; border-right: none; }
    .whatsapp-float { animation: none; }
}

button:disabled {
    opacity: 0.4; cursor: not-allowed; pointer-events: none;
    box-shadow: none !important; transform: none !important;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
}
button:disabled .btn-shine { display: none; }