
:root {
    --bg: #050816;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: #0b1026;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e9ecf5;
    --muted: #c5ccde;
    --dim: #8c93a7;
    --primary: #7dd3fc;
    --primary-strong: #38bdf8;
    --accent: #a855f7;
    --success: #34d399;
    --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 10% 20%, rgba(124, 211, 252, 0.12), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.14), transparent 30%),
        linear-gradient(180deg, #050816 0%, #070b1a 100%);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

h1, h2, h3, h4 {
    font-family: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    margin: 0 0 12px;
    letter-spacing: -0.015em;
}

p {
    margin: 0 0 12px;
    color: var(--muted);
}

strong {
    color: var(--text);
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.narrow {
    width: min(760px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(5, 8, 22, 0.7);
    border-bottom: 1px solid var(--border);
}

.navbar {
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(124, 211, 252, 0.25), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(124, 211, 252, 0.5);
}

.nav-link-cta .btn {
    padding: 10px 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 30;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(124, 211, 252, 0.4);
}

.hamburger.active {
    background: rgba(124, 211, 252, 0.15);
    border-color: rgba(124, 211, 252, 0.5);
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text);
    display: block;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.hero {
    padding: 110px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-panel {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(124, 211, 252, 0.1), rgba(168, 85, 247, 0.08));
}

.panel-heading {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dim);
    margin-bottom: 12px;
}

.glass-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.mini-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    background: var(--success);
}

.dot.violet {
    background: var(--accent);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--dim);
    margin-bottom: 4px;
}

.small {
    font-size: 14px;
    color: var(--muted);
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 0;
    border-top: 1px solid var(--border);
}

.metric {
    font-size: 15px;
    color: var(--text);
}

.badge {
    background: rgba(124, 211, 252, 0.12);
    border: 1px solid rgba(124, 211, 252, 0.4);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
}

.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: clamp(26px, 4vw, 36px);
}

.section-label {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 12px;
}

.section-description {
    color: var(--muted);
    max-width: 740px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 211, 252, 0.45);
}

.card h3 {
    margin-bottom: 10px;
}

.highlight-band {
    background: linear-gradient(90deg, rgba(124, 211, 252, 0.16), rgba(168, 85, 247, 0.18));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: center;
}

.pill-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 600;
    color: var(--text);
}

.page-hero {
    padding: 120px 0 40px;
    text-align: left;
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}

.stacked-card {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.list-check {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.list-check li {
    position: relative;
    padding-left: 26px;
    color: var(--muted);
}

.list-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-strong), var(--accent));
    box-shadow: 0 0 0 4px rgba(124, 211, 252, 0.12);
}

.card-column {
    display: grid;
    gap: 14px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.process-card {
    position: relative;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.process-card .step {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(124, 211, 252, 0.16);
    border: 1px solid rgba(124, 211, 252, 0.35);
    color: var(--text);
    font-weight: 700;
    margin-bottom: 12px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-card {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
}

.portfolio-tag {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--dim);
    font-weight: 700;
    margin-bottom: 12px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
}

.faq-icon {
    font-size: 20px;
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 18px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    align-items: start;
}

.contact-form {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
}

.form-grid .full-row {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    color: var(--text);
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 14px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(124, 211, 252, 0.5);
    border-color: rgba(124, 211, 252, 0.6);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form textarea {
    margin-bottom: 12px;
}

.contact-form button[type="submit"] {
    width: 100%;
}

.form-message {
    margin-top: 12px;
    font-weight: 600;
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: #f87171;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    color: var(--text);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-strong), var(--accent));
    border: 1px solid rgba(124, 211, 252, 0.5);
    box-shadow: 0 12px 40px rgba(124, 211, 252, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(124, 211, 252, 0.25);
}

.footer {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    padding: 32px 0 40px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    align-items: start;
}

.footer-brand p {
    color: var(--muted);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.footer-social a:nth-child(1) {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: #fff;
    border-color: transparent;
}

.footer-social a:nth-child(2) {
    background: #1877f2;
    color: #fff;
    border-color: transparent;
}

.footer-social a:nth-child(3) {
    background: #000;
    color: #fff;
    border-color: transparent;
}

.footer-social a:nth-child(4) {
    background: #ff0000;
    color: #fff;
    border-color: transparent;
}

.footer-social a:hover {
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.footer-links h4 {
    margin-bottom: 10px;
}

.footer-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.footer-cta .back-to-top {
    display: inline-block;
    margin-top: 10px;
    color: var(--muted);
}

.back-to-top:hover {
    color: var(--primary);
}

#header.scrolled {
    background: rgba(5, 8, 22, 0.9);
    border-bottom: 1px solid rgba(124, 211, 252, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 8, 22, 0.98);
        backdrop-filter: blur(14px);
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger {
        display: inline-flex;
    }

    .nav-link {
        width: 100%;
        text-align: left;
    }

    .nav-link-cta {
        width: 100%;
    }

    .nav-link-cta .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 96px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .metric-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-img {
        height: 32px;
    }

    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        gap: 12px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hamburger {
        -webkit-tap-highlight-color: rgba(124, 211, 252, 0.1);
    }

    .nav-links {
        -webkit-overflow-scrolling: touch;
    }
}
