/* ═══════════════════════════════════════════
   MindMetric — Style
   ═══════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
    --bg:          #0a0f1a;
    --bg-surface:  #111827;
    --bg-card:     rgba(255, 255, 255, 0.04);
    --border:      rgba(255, 255, 255, 0.08);
    --accent:      #4f7df7;
    --accent-2:    #7c5cfc;
    --text:        #ffffff;
    --text-muted:  #94a3b8;
    --text-dim:    #64748b;
    --radius:      12px;
    --radius-lg:   20px;
    --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font:        'Inter', system-ui, -apple-system, sans-serif;
    --container:   1120px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
ul { list-style: none; }

/* ── Utility ── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 48px;
    max-width: 640px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}
.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 24px rgba(79, 125, 247, 0.3);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79, 125, 247, 0.45);
}
.btn--full { width: 100%; justify-content: center; }

/* ── Header / Nav ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.header--scrolled {
    background: rgba(10, 15, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav__logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.logo-mind { color: var(--text); }
.logo-metric { color: var(--accent); }
.nav__menu {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}
.nav__link:hover,
.nav__link--active { color: var(--text); }
.nav__link--cta {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
}
.nav__link--cta:hover {
    border-color: var(--accent);
    background: rgba(79, 125, 247, 0.08);
}
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.nav__toggle--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle--active span:nth-child(2) { opacity: 0; }
.nav__toggle--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}
.hero__orb--1 {
    width: 500px; height: 500px;
    background: var(--accent);
    top: -10%; left: -10%;
    animation: orbFloat1 14s ease-in-out infinite;
}
.hero__orb--2 {
    width: 400px; height: 400px;
    background: var(--accent-2);
    bottom: -5%; right: -5%;
    animation: orbFloat2 12s ease-in-out infinite;
}
.hero__orb--3 {
    width: 300px; height: 300px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    top: 40%; left: 50%;
    transform: translateX(-50%);
    animation: orbFloat3 16s ease-in-out infinite;
    opacity: 0.2;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, 40px); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, -50px); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translateX(-50%) translate(0, 0); }
    50% { transform: translateX(-50%) translate(30px, -30px); }
}
.hero__content { position: relative; z-index: 1; max-width: 760px; }
.hero__title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.hero__scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── About ── */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.about__desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.stat {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}
.stat__number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat__suffix {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat__label {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ── Services ── */
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.service-card {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.service-card:hover {
    border-color: rgba(79, 125, 247, 0.25);
    background: rgba(79, 125, 247, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 125, 247, 0.12), rgba(124, 92, 252, 0.12));
    color: var(--accent);
    margin-bottom: 20px;
}
.service-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.service-card__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Contact ── */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-status {
    margin-top: 16px;
    font-size: 0.9rem;
    min-height: 24px;
}
.form-status--success { color: #34d399; }
.form-status--error { color: #f87171; }

.contact__info-card {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.contact__info-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.contact__link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition);
}
.contact__link:hover { color: var(--accent); }

/* ── Footer ── */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer__copy {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .section { padding: 80px 0; }

    .nav__toggle { display: flex; }
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        background: rgba(10, 15, 26, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0 40px;
    }
    .nav__menu--open { right: 0; }
    .nav__link { font-size: 1.1rem; }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .section__title { margin-bottom: 32px; }
    .services__grid { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; }
    .footer__inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .hero__scroll-hint { display: none; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2.2rem; }
    .about__stats { grid-template-columns: 1fr 1fr; gap: 16px; }
    .stat { padding: 20px 16px; }
    .stat__number { font-size: 2rem; }
}
