/* razvi.ai — landing site */

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

:root {
    --bg:         #07070d;
    --surface:    #13131f;
    --surface2:   #1f1f33;
    --border:     #3a3a5c;
    --text:       #e8e8f2;
    --muted:      #7b7b9a;
    --accent:     #00d9ff;
    --accent-hov: #00a8cc;
    --accent-dim: #0a4a5c;
    --green:      #39ff14;
    --purple:     #c77dff;
    --shadow:     2px 2px 0 0 var(--border);
    --radius:     2px;
    --font-mono:  ui-monospace, "JetBrains Mono", "Fira Code", "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --bg-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><g font-family='monospace' font-size='12' fill='%2300d9ff' fill-opacity='0.12'><text x='14' y='24'>01</text><text x='56' y='50'>DEV</text><text x='78' y='38'>0xFF</text><text x='150' y='22'>//</text><text x='218' y='44'>ERR</text><text x='44' y='70'>::</text><text x='112' y='82'>0b1</text><text x='186' y='66'>[]</text><text x='180' y='98'>razvi</text><text x='242' y='92'>;</text><text x='20' y='112'>~</text><text x='82' y='130'>+=</text><text x='154' y='122'>10</text><text x='196' y='128'>AI</text><text x='220' y='142'>|</text><text x='30' y='160'>{}</text><text x='104' y='174'>==</text><text x='172' y='160'>/*</text><text x='238' y='182'>--</text><text x='16' y='202'>NULL</text><text x='60' y='190'>razvi.ai</text><text x='80' y='224'>^_^</text><text x='152' y='212'>0x1F</text><text x='212' y='234'>??</text><text x='42' y='252'>01</text><text x='112' y='264'>.exe</text><text x='134' y='246'>&lt;3</text><text x='192' y='258'>OK</text></g></svg>");
}

[data-theme="light"] {
    --bg:         #e8e6de;
    --surface:    #ffffff;
    --surface2:   #d4d0c6;
    --border:     #1a1a1a;
    --text:       #0a0a0a;
    --muted:      #555;
    --accent:     #0047ff;
    --accent-hov: #0030b3;
    --accent-dim: #c7d2ff;
    --green:      #059669;
    --purple:     #7c3aed;
    --shadow:     3px 3px 0 0 var(--border);
    --bg-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><g font-family='monospace' font-size='12' fill='%23000000' fill-opacity='0.18'><text x='14' y='24'>01</text><text x='56' y='50'>DEV</text><text x='78' y='38'>0xFF</text><text x='150' y='22'>//</text><text x='218' y='44'>ERR</text><text x='44' y='70'>::</text><text x='112' y='82'>0b1</text><text x='186' y='66'>[]</text><text x='180' y='98'>razvi</text><text x='242' y='92'>;</text><text x='20' y='112'>~</text><text x='82' y='130'>+=</text><text x='154' y='122'>10</text><text x='196' y='128'>AI</text><text x='220' y='142'>|</text><text x='30' y='160'>{}</text><text x='104' y='174'>==</text><text x='172' y='160'>/*</text><text x='238' y='182'>--</text><text x='16' y='202'>NULL</text><text x='60' y='190'>razvi.ai</text><text x='80' y='224'>^_^</text><text x='152' y='212'>0x1F</text><text x='212' y='234'>??</text><text x='42' y='252'>01</text><text x='112' y='264'>.exe</text><text x='134' y='246'>&lt;3</text><text x='192' y='258'>OK</text></g></svg>");
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    background-image: var(--bg-pattern);
    background-repeat: repeat;
    background-position: 0 0;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    animation: bg-drift 180s linear infinite;
}

@keyframes bg-drift {
    from { background-position: 0 0; }
    to   { background-position: 280px 280px; }
}

.bg-glow {
    position: fixed;
    inset: -10vmax;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(40vmax 40vmax at 20% 15%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%),
        radial-gradient(50vmax 50vmax at 85% 85%, color-mix(in srgb, var(--purple, var(--accent)) 9%, transparent), transparent 70%);
    filter: blur(40px);
    opacity: 0.9;
    animation: glow-breathe 18s ease-in-out infinite alternate;
}

@keyframes glow-breathe {
    from { transform: translate3d(0, 0, 0)     scale(1);    opacity: 0.55; }
    to   { transform: translate3d(2vmax, -1vmax, 0) scale(1.08); opacity: 0.85; }
}

[data-theme="light"] .bg-glow { opacity: 0.45; mix-blend-mode: multiply; }

@media (prefers-reduced-motion: reduce) {
    body, .bg-glow { animation: none; }
}

.app { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hov); }

button { font-family: inherit; }


.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    height: 56px;
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    user-select: none;
}
.brand:hover { color: var(--accent); }

.brand-mark {
    display: inline-block;
    background: var(--accent);
    color: #05050a;
    padding: 0.1rem 0.4rem;
    font-weight: 700;
    border-radius: var(--radius);
    line-height: 1.2;
}
[data-theme="light"] .brand-mark { color: #fff; }

.brand-sub {
    font-size: 0.75rem;
    color: var(--muted);
    border-left: 1px solid var(--border);
    padding-left: 1rem;
}

main {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.4;
}
.btn:hover { border-color: var(--accent); color: var(--text); }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #05050a;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--accent-hov); border-color: var(--accent-hov); color: #fff; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface2); border-color: var(--border); }

.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }

/* Topbar text toggles ("SI" / "Light"). Compact, monospace, fixed-width. */
.btn-toggle {
    background: var(--surface2);
    border-color: var(--border);
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
    min-width: 3.4rem;
    justify-content: center;
}
.btn-toggle:hover { border-color: var(--accent); color: var(--accent); }


.topbar-nav {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
}
.topbar-spacer { margin-left: auto; }


.page-section {
    margin-top: 4rem;
    scroll-margin-top: 70px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.page-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    background-color: var(--bg);
    padding: 0.15rem 0.5rem;
    margin-left: -0.5rem;
}

.muted { color: var(--muted); font-size: 0.875rem; }


.hero {
    padding: 2rem 0 1rem;
    scroll-margin-top: 70px;
}

.hero-tag {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.hero-title .accent { color: var(--accent); }
.hero-title .strike {
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--danger, #ff3d71);
}

.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 56ch;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}

[data-theme="light"] .hero-sub { color: #444; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: var(--muted);
    font-size: 0.8rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.meta-item { display: inline-flex; align-items: center; gap: 0.45rem; }

.dot {
    width: 8px; height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: var(--muted);
}
.dot-green {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}


.card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow);
}
.card:hover {
    border-color: var(--accent);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 0 var(--border);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* Force balanced 2-column layouts (avoids the orphan-card-on-row-2 look). */
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 720px) {
    .grid-2 { grid-template-columns: 1fr; }
}

.card-body {
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-no, .step-no {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    font-weight: 600;
}

.service-card h3,
.step-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.service-card p,
.step-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
}

[data-theme="light"] .service-card p,
[data-theme="light"] .step-card p { color: #333; }


.steps {
    list-style: none;
    display: grid;
    gap: 1rem;
}


.empty-state {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    background-color: var(--bg);
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.contact-card p { max-width: 52ch; margin: 0 auto 1.25rem; }

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.contact-meta { font-size: 0.8rem; }


.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 2rem;
    height: 48px;
    background: var(--surface);
    border-top: 2px solid var(--border);
    flex-shrink: 0;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--muted);
}

.footer-right { font-size: 0.75rem; }
.footer-link { color: var(--muted); }
.footer-link:hover { color: var(--accent); }


@media (max-width: 720px) {
    .topbar { padding: 0 1rem; gap: 0.5rem; }
    .brand-sub { display: none; }
    .topbar-nav { gap: 0; margin-left: 0.25rem; }
    .topbar-nav .btn { padding: 0.3rem 0.5rem; }
    main { padding: 1.5rem 1rem 3rem; }
    .page-section { margin-top: 3rem; }
    .hero-title { font-size: 2rem; }
    .footer { padding: 0 1rem; }
}

@media (max-width: 480px) {
    .topbar-nav a:nth-child(1),
    .topbar-nav a:nth-child(2) { display: none; }
}
