/* ---------- Tokens ---------- */
:root {
    --bg: #08080f;
    --bg-alt: #0d0d1a;
    --surface: rgba(255, 255, 255, .05);
    --surface-strong: rgba(255, 255, 255, .09);
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .18);
    --text: #f5f5fb;
    --text-soft: #a7abc7;
    --text-dim: #6e7290;
    --violet: #8b5cf6;
    --pink: #ec4899;
    --cyan: #22d3ee;
    --green: #25D366;
    --grad-1: linear-gradient(135deg, var(--violet), var(--pink));
    --grad-2: linear-gradient(135deg, var(--cyan), var(--violet));
    --radius: 22px;
    --radius-lg: 30px;
    --shadow-glow: 0 30px 60px -25px rgba(139, 92, 246, .45);
    --maxw: 1160px;
    font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    letter-spacing: -.02em;
}

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

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--violet);
    color: #fff;
    padding: 10px 16px;
    z-index: 300;
}
.skip-link:focus { left: 12px; top: 12px; }

svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad-1);
    z-index: 400;
    transition: width .08s linear;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
    transition-delay: calc(var(--d, 0) * 1ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(8, 8, 15, .6);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}
.brand span { font-weight: 400; color: var(--text-soft); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-soft);
    position: relative;
}
.site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0%; height: 2px;
    background: var(--grad-1);
    transition: width .25s ease;
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }
.site-nav a:hover { color: var(--text); }

.nav-cta {
    background: var(--grad-1);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 999px;
    box-shadow: 0 10px 24px -10px rgba(236, 72, 153, .6);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .98rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    border: 1.5px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--grad-1);
    color: #fff;
    box-shadow: 0 16px 32px -12px rgba(139, 92, 246, .55);
}
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .6s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(236, 72, 153, .55); }
.btn-ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 96px 0 60px;
    overflow: hidden;
}

.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: .55;
    animation: drift 22s ease-in-out infinite alternate;
}
.blob-a { width: 480px; height: 480px; top: -180px; right: -120px; background: radial-gradient(circle at 30% 30%, var(--violet), transparent 70%); animation-duration: 26s; }
.blob-b { width: 420px; height: 420px; top: 40px; left: -160px; background: radial-gradient(circle at 40% 40%, var(--cyan), transparent 70%); animation-duration: 30s; animation-delay: -6s; }
.blob-c { width: 380px; height: 380px; bottom: -220px; left: 30%; background: radial-gradient(circle at 50% 50%, var(--pink), transparent 70%); animation-duration: 24s; animation-delay: -12s; }
.grid-fade {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 40%, transparent 90%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 40%, transparent 90%);
    opacity: .5;
}

@keyframes drift {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(30px,40px) scale(1.12); }
}

.cursor-glow {
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,.18), transparent 70%);
    transform: translate(-50%,-50%);
    left: 50%; top: 30%;
    pointer-events: none;
    z-index: 0;
    transition: left .25s ease-out, top .25s ease-out;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--cyan);
    margin: 0 0 18px;
}
.eyebrow.center { display: inline-flex; }
.section-title.center + .section-sub.center,
h2.section-title.center { text-align: center; }
p.eyebrow.center { justify-content: center; width: 100%; }

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 0 rgba(34,211,238,.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34,211,238,.6); }
    70% { box-shadow: 0 0 0 8px rgba(34,211,238,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.2rem);
    line-height: 1.12;
    margin: 0 0 20px;
    font-weight: 700;
}

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

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 46ch;
    margin: 0 0 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.hero-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    font-size: .88rem;
    color: var(--text-dim);
}
.hero-trust li { position: relative; padding-left: 18px; }
.hero-trust li::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 7px; height: 7px;
    background: var(--grad-1);
    border-radius: 50%;
    transform: translateY(-50%);
}

.hero-visual {
    position: relative;
    height: 360px;
    z-index: 1;
}
.hero-ring {
    position: absolute;
    inset: 10% 5%;
    border: 1.5px dashed var(--border-strong);
    border-radius: 50%;
    animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-card {
    position: absolute;
    width: 240px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 48px -24px rgba(0,0,0,.6);
}
.float-1 { animation: floaty 6s ease-in-out infinite; }
.float-2 { animation: floaty 7s ease-in-out infinite; animation-delay: -2s; }
.float-3 { animation: floaty 5.5s ease-in-out infinite; animation-delay: -4s; }
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.hero-card-line { height: 8px; border-radius: 6px; background: rgba(255,255,255,.14); margin-top: 10px; }
.hero-card-1 { top: 0; left: 8%; }
.hero-card-1 .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot-red { background: #f87171; } .dot-yellow { background: #fbbf24; } .dot-green { background: #4ade80; }
.hero-card-2 { top: 140px; left: 0; background: linear-gradient(160deg, rgba(139,92,246,.28), rgba(139,92,246,.08)); border-color: rgba(139,92,246,.4); }
.hero-card-3 { top: 232px; left: 44%; background: linear-gradient(160deg, rgba(34,211,238,.24), rgba(34,211,238,.06)); border-color: rgba(34,211,238,.4); }
.hero-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
    background: rgba(255,255,255,.15);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 4px;
}

.wave-divider {
    position: relative;
    display: block;
    width: 100%;
    height: 70px;
    margin-top: -2px;
}

/* ---------- Marquee ---------- */
.marquee {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 18px 0;
}
.marquee-track {
    display: flex;
    width: max-content;
    gap: 28px;
    align-items: center;
    animation: scroll-left 26s linear infinite;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-soft);
    white-space: nowrap;
}
.marquee-track .sep { color: var(--pink); }
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; overflow: hidden; }
.section-alt { background: var(--bg-alt); }

.section-blob {
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    filter: blur(10px);
    opacity: .18;
    pointer-events: none;
    z-index: 0;
}
.section-blob-violet { background: radial-gradient(circle, var(--violet), transparent 70%); top: -160px; right: -160px; }
.section-blob-pink { background: radial-gradient(circle, var(--pink), transparent 70%); bottom: -200px; left: -160px; }
.section-blob-cyan { background: radial-gradient(circle, var(--cyan), transparent 70%); top: -140px; left: -140px; }

.section .container { z-index: 1; }

.section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    margin: 0 0 14px;
    font-weight: 700;
}
.section-title.center { text-align: center; }

.section-sub {
    color: var(--text-soft);
    max-width: 60ch;
    margin: 0 auto 52px;
}
.section-sub.center { text-align: center; }

/* ---------- Bento grid / cards ---------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 22px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
    grid-column: span 2;
    will-change: transform;
}
.card-lg { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.card-wide { grid-column: span 2; }
.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    background: var(--surface-strong);
    box-shadow: var(--shadow-glow);
}
.card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.icon-violet { background: rgba(139,92,246,.15); color: var(--violet); }
.icon-pink { background: rgba(236,72,153,.15); color: var(--pink); }
.icon-cyan { background: rgba(34,211,238,.15); color: var(--cyan); }
.icon-green { background: rgba(37,211,102,.15); color: var(--green); }
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-soft); font-size: .96rem; }

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 20px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--violet), var(--pink), var(--cyan));
    opacity: .5;
}
.timeline-item { position: relative; padding-top: 60px; }
.timeline-node {
    position: absolute;
    top: 0; left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--grad-1);
    color: #fff;
    font-weight: 800;
    font-family: "Space Grotesk", sans-serif;
    box-shadow: 0 0 0 6px var(--bg-alt), 0 10px 24px -8px rgba(139,92,246,.7);
}
.timeline-content h3 { margin: 0 0 8px; font-size: 1.08rem; }
.timeline-content p { margin: 0; color: var(--text-soft); font-size: .93rem; }

/* ---------- Portfolio ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}
.portfolio-card-featured { grid-column: 1 / -1; }
.portfolio-card-featured .portfolio-media { height: 300px; }
.portfolio-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    will-change: transform;
}
.portfolio-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.portfolio-media {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -.01em;
    text-align: center;
    padding: 0 16px;
    position: relative;
    overflow: hidden;
}
.portfolio-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.18) 45%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .8s ease;
    z-index: 1;
    pointer-events: none;
}
.portfolio-card:hover .portfolio-media::after { transform: translateX(120%); }
.portfolio-media-photo { padding: 0; }
.portfolio-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.portfolio-card:hover .portfolio-media img { transform: scale(1.06); }
.portfolio-media-1 img { object-position: top; }
.portfolio-media-2 img { object-position: top; }
.portfolio-media-3 img { object-position: top center; }
.portfolio-media-5 img { object-position: top; }
.portfolio-media-4 { background: linear-gradient(135deg, #334155, #64748b); }
.portfolio-media-4 img.sticker {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.5);
    transform: rotate(-4deg);
    transition: transform .3s ease;
}
.portfolio-card:hover .portfolio-media-4 img.sticker { transform: rotate(-1deg) scale(1.04); }
.portfolio-body { padding: 24px 26px 28px; }
.tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--violet);
    background: rgba(139,92,246,.15);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.tag-soon { color: #fbbf24; background: rgba(251,191,36,.15); }
.portfolio-body h3 { margin: 0 0 8px; font-size: 1.12rem; }
.portfolio-body p { margin: 0; color: var(--text-soft); font-size: .93rem; }
.portfolio-card-soon { opacity: .9; }

/* ---------- About ---------- */
.about-inner {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 56px;
    align-items: center;
}
.about-photo { position: relative; max-width: 300px; }
.about-photo-ring {
    position: absolute;
    inset: -18px;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    background: var(--grad-1);
    opacity: .35;
    filter: blur(2px);
    animation: morph 12s ease-in-out infinite;
    z-index: 0;
}
@keyframes morph {
    0%, 100% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
    50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
}
.about-photo img {
    position: relative;
    z-index: 1;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    box-shadow: var(--shadow-glow);
    aspect-ratio: 4/5;
    object-fit: cover;
    width: 100%;
    animation: morph 12s ease-in-out infinite;
}
.about-copy p { color: var(--text-soft); }
.about-links { font-weight: 600; color: var(--text) !important; }
.about-links a { color: var(--cyan); }

/* ---------- Contact ---------- */
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 600;
}
.contact-list a:hover { color: var(--cyan); }
.social-row { display: flex; gap: 12px; }
.social-row a {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: .8rem;
    text-transform: uppercase;
    transition: background .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--grad-1); transform: translateY(-3px); border-color: transparent; }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(10px);
}
.contact-form label { font-size: .82rem; font-weight: 700; margin-top: 12px; color: var(--text-soft); }
.contact-form input, .contact-form textarea {
    font: inherit;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    color: var(--text);
    resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-dim); }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(139,92,246,.25);
}
.contact-form .btn { margin-top: 22px; }
.form-note { font-size: .78rem; color: var(--text-dim); text-align: center; margin: 10px 0 0; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--green);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 16px 32px -10px rgba(37,211,102,.65);
    z-index: 150;
    transition: transform .2s ease;
    animation: floaty 4s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; stroke: none; }

/* ---------- Footer ---------- */
.site-footer {
    background: #050508;
    color: var(--text-dim);
    padding: 30px 0;
    font-size: .88rem;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-nav { display: flex; gap: 20px; }
.footer-nav a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .card-lg { grid-column: span 2; grid-row: span 1; }
    .card-wide { grid-column: span 2; }
    .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .timeline::before { display: none; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .about-inner { grid-template-columns: 1fr; }
    .about-photo { max-width: 260px; margin: 0 auto; }
    .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: rgba(8,8,15,.97);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px 24px;
        gap: 16px;
        display: none;
    }
    .site-nav.open { display: flex; }
    .nav-cta { align-self: flex-start; }
    .bento-grid { grid-template-columns: 1fr; }
    .card-lg, .card-wide { grid-column: span 1; }
    .timeline { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }
    .cursor-glow { display: none; }
}
