/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-color: #030303;
    --card-bg: #0c0c0f;
    --surface: #0a0a0a;
    --primary: #00ffc3;
    --primary-soft: rgba(0, 255, 195, 0.12);
    --text-main: #f5f5f5;
    --text-muted: #a1a1aa;
    --border: rgba(255,255,255,0.08);
    --gradient: linear-gradient(110deg, #00ffc3 0%, #00b8ff 45%, #7d7dff 100%);
}

html { scroll-behavior: smooth; }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 100px 0; }

.section-header {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    letter-spacing: -1px;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 12px;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(3, 3, 3, 0.8);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.highlight { color: var(--primary); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.nav-links a:hover { color: var(--primary); }

.btn-nav {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-main) !important;
    background: rgba(255,255,255,0.05);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

/* --- HERO --- */
.hero {
    padding: 160px 0 120px;
    text-align: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0,255,195,0.25) 0%, transparent 60%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    animation: floatGlow 12s ease-in-out infinite alternate;
}

.badge {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0,255,195,0.25);
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.4rem;
    line-height: 1.1;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: #030303;
    box-shadow: 0 20px 35px rgba(0,255,195,0.18);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: -150%;
    left: -30%;
    width: 60%;
    height: 400%;
    background: rgba(255,255,255,0.35);
    transform: rotate(25deg);
    opacity: 0;
    animation: sweep 3s linear infinite;
}

.btn-primary:hover { transform: translateY(-3px); }

.btn-secondary {
    color: var(--text-main);
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: rgba(255,255,255,0.4); }

.hero-metrics {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.hero-metrics div {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;

    text-align: center;
}

.hero-metrics strong {
    display: block;
    font-size: 1.8rem;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-metrics span {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 8px;
}

.hero-metrics small {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* --- PROBLEMS --- */
.problems {
    background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, transparent 100%);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    background: var(--card-bg);
    padding: 36px;
    border-radius: 20px;
    border: 1px solid var(--border);
    min-height: 220px;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0,255,195,0.2), transparent 45%);
    opacity: 0;
    transition: 0.3s ease;
}

.card:hover { transform: translateY(-6px); border-color: rgba(0,255,195,0.4); }
.card:hover::after { opacity: 1; }

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.card p { color: var(--text-muted); }

/* --- SOLUTIONS --- */
.solutions { background: rgba(255,255,255,0.01); }

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.solution-card {
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.solution-card .pill {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.solution-card h3 {
    font-size: 1.6rem;
    font-family: 'Space Grotesk', sans-serif;
}

.solution-card p { color: var(--text-muted); }

.solution-card ul {
    list-style: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.solution-card li::before {
    content: "•";
    color: var(--primary);
    margin-right: 8px;
}

.cta-inline {
    background: linear-gradient(135deg, rgba(0,255,195,0.08), rgba(125,125,255,0.08));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
}

.cta-inline h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    max-width: 520px;
}

/* --- PORTFOLIO --- */
.portfolio { background: transparent; }

.case-grid {
    display: grid;
    gap: 30px;
}

.case-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    background: rgba(255,255,255,0.02);
}

.case-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.case-card header h3 {
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.case-card header span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.case-detail p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.case-detail strong { color: var(--text-main); }

/* --- PROOFS --- */
.proofs {
    background: linear-gradient(150deg, rgba(0,255,195,0.07), transparent 70%);
}

.proofs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.proof-card, .proof-image, .proof-stats {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(3,3,3,0.8);
    padding: 28px;
}

.proof-image {
    padding: 0;
    overflow: hidden;
}

.proof-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proof-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.proof-stats div {
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border);
}

.proof-stats strong {
    font-size: 1.4rem;
    display: block;
}

.testimonial-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    background: rgba(3,3,3,0.8);
}

.testimonial-card p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.testimonial-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- COMPARISON --- */
.comparison {
    background: rgba(255,255,255,0.01);
}

.comparison-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 24px;
}

.comparison-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    background: rgba(255,255,255,0.02);
}

.comparison-card.highlighted {
    border: 1px solid rgba(0,255,195,0.5);
    background: rgba(0,255,195,0.05);
}

.comparison-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 16px;
}

.comparison-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-muted);
}

.comparison-card ul li::before {
    content: "—";
    margin-right: 8px;
    color: var(--text-muted);
}

.comparison-card.highlighted ul li::before {
    content: "✓";
    color: var(--primary);
}

/* --- FIT SECTION --- */
.fit-section {
    background: transparent;
}

.fit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.fit-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    background: rgba(255,255,255,0.02);
}

.fit-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 18px;
}

.fit-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-muted);
}

.fit-card ul li::before {
    content: "×";
    margin-right: 8px;
    color: #ff6b6b;
}

.fit-card.good ul li::before {
    content: "✓";
    color: var(--primary);
}

.fit-card.good {
    border-color: rgba(0,255,195,0.4);
}

/* --- PROCESS --- */
.process {
    background: rgba(255,255,255,0.01);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.step {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    background: rgba(255,255,255,0.015);
}

.step span {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.step h3 {
    margin: 10px 0;
    font-size: 1.3rem;
    font-family: 'Space Grotesk', sans-serif;
}

.step p { color: var(--text-muted); }

/* --- ABOUT --- */
.about {
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
}

.about-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    background: rgba(255,255,255,0.02);
}

.about-card h3 {
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
}

.about-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-muted);
}

.about-card li::before {
    content: "‣";
    color: var(--primary);
    margin-right: 8px;
}

/* --- CTA --- */
.cta-section {
    padding: 120px 0;
}

.cta-box {
    background: linear-gradient(120deg, rgba(0,255,195,0.12), rgba(125,125,255,0.12));
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 55%);
    opacity: 0.5;
    animation: pulseGlow 10s ease-in-out infinite;
}

.cta-box h2 {
    font-size: 2.2rem;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.cta-box .hero-buttons {
    position: relative;
    z-index: 2;
}

/* --- FOOTER --- */
footer {
    padding: 50px 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
    background: #020202;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.socials a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
}

/* --- MOTION SYSTEM --- */
.motion-grid > * {
    opacity: 0;
    transform: translateY(30px);
    animation: riseFade 0.9s ease forwards;
}

.motion-grid > *:nth-child(2) { animation-delay: 0.1s; }
.motion-grid > *:nth-child(3) { animation-delay: 0.2s; }
.motion-grid > *:nth-child(4) { animation-delay: 0.3s; }
.motion-grid > *:nth-child(5) { animation-delay: 0.4s; }
.motion-grid > *:nth-child(6) { animation-delay: 0.5s; }

@keyframes riseFade {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatGlow {
    0% { transform: translate(-50%, -2%) scale(1); opacity: 0.8; }
    50% { transform: translate(-48%, 0%) scale(1.05); opacity: 1; }
    100% { transform: translate(-52%, 3%) scale(0.97); opacity: 0.7; }
}

@keyframes pulseGlow {
    0%,100% { opacity: 0.35; }
    50% { opacity: 0.65; }
}

@keyframes sweep {
    0% { transform: translate(-150%, -50%) rotate(25deg); opacity: 0; }
    30% { opacity: 0.4; }
    60% { opacity: 0; }
    100% { transform: translate(250%, 50%) rotate(25deg); opacity: 0; }
}

@keyframes shimmerBorder {
    0% { border-color: rgba(255,255,255,0.08); }
    50% { border-color: rgba(0,255,195,0.5); }
    100% { border-color: rgba(255,255,255,0.08); }
}

/* --- RESPONSIVE --- */
@media (max-width: 1000px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: 24px;
        background: rgba(3,3,3,0.95);
        backdrop-filter: blur(18px);
        border: 1px solid var(--border);
        padding: 20px;
        border-radius: 16px;
        flex-direction: column;

/* Strong single-column layout for small devices */
@media (max-width: 720px) {
    .hero-metrics { grid-template-columns: 1fr !important; gap: 12px !important; }
    .hero-metrics div { padding: 14px !important; }
    .hero-metrics strong { font-size: 1.4rem !important; }
    .hero-metrics span, .hero-metrics small { font-size: 0.85rem !important; }
    .card, .solution-card, .case-card { padding: 18px !important; border-radius: 12px !important; }
    .hero { padding: 100px 0 60px !important; }
    .hero-bg { display: none !important; }
    .btn-primary, .btn-secondary { padding: 12px 16px !important; }
}
        gap: 16px;
        display: none;
    }
    .nav-links.open { display: flex; }
    .menu-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
    section { padding: 80px 0; }
    .hero h1 { font-size: 2.6rem; }
    .hero-metrics { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .solution-card { padding: 32px; }
    .case-card { padding: 28px; }
    .cta-box { padding: 40px 28px; }
    .footer-content { flex-direction: column; text-align: center; }
    .cta-inline { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
}

/* Additional mobile fixes */
@media (max-width: 640px) {
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }
    .hero-bg { width: 460px; height: 460px; filter: blur(90px); }
    .hero-metrics { grid-template-columns: 1fr; gap: 14px; }
    .hero-metrics strong { font-size: 1.5rem; }
    .hero-metrics span, .hero-metrics small { font-size: 0.9rem; }
    .grid-cards, .solutions-grid, .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .hero h1 { font-size: 1.6rem; }
    .badge { font-size: 0.75rem; }
    .menu-toggle { width: 44px; height: 44px; }
    .hero-metrics strong { font-size: 1.3rem; }
    .hero-metrics span, .hero-metrics small { font-size: 0.82rem; }
}

/* --- MOBILE IMPROVEMENTS: additional small-screen tweaks --- */
@media (max-width: 520px) {
    .container { padding: 0 16px; }
    header { backdrop-filter: blur(12px); }
    .nav-container { height: 64px; }
    .logo { font-size: 1.25rem; }
    .logo-img { height: 35px; }
    .footer-logo-img { height: 28px; }
    .menu-toggle { width: 52px; height: 52px; }
    .menu-toggle { align-items: center; justify-content: center; }
    .nav-links { right: 12px; left: 12px; top: 72px; padding: 16px; gap: 12px; }
    .nav-links a { font-size: 1.05rem; padding: 10px 0; }
    .hero { padding: 120px 0 80px; }
    .hero-bg { width: 520px; height: 520px; filter: blur(100px); }
    .hero h1 { font-size: 1.9rem; line-height: 1.12; }
    .hero p { font-size: 1rem; max-width: 100%; padding: 0 8px; }
    .hero-metrics { grid-template-columns: 1fr; gap: 12px; }
    .grid-cards, .solutions-grid, .case-grid, .proofs-grid, .comparison-table, .fit-grid, .timeline, .about-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .card, .solution-card, .case-card, .proof-card, .comparison-card, .fit-card, .step, .about-card {
        padding: 20px;
        border-radius: 14px;
    }
    .btn-primary, .btn-secondary { padding: 12px 18px; }
    .footer-content { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 420px) {
    .hero { padding: 100px 0 60px; }
    .hero-bg { width: 420px; height: 420px; filter: blur(90px); }
    .hero h1 { font-size: 1.6rem; }
    .badge { padding: 6px 12px; font-size: 0.8rem; }
    .nav-links { top: 68px; padding: 14px; right: 8px; left: 8px; }
    .nav-links.open { padding-bottom: 24px; }
    .menu-toggle { width: 48px; height: 48px; }
    .hero-metrics div { padding: 14px; }
    .motion-grid > * { transform: translateY(12px); }
}
