/* ============================================
   NODARA — Premium Design System
   Inspired by Apple, Linear, Stripe
   ============================================ */

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

/* --- Design Tokens --- */
:root {
    --black: #040a18;
    --bg: #060e1f;
    --bg-elevated: #081326;
    --bg-subtle: #0c1a32;
    --surface: #0f1f3a;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);

    --text-primary: #e8ecf4;
    --text-secondary: #8a9ab5;
    --text-tertiary: #5a6d8a;
    --text-link: #4a9eff;

    --accent-blue: #4a9eff;
    --accent-jamrent: #1a8a5c;
    --accent-vixio: #5b3fc5;
    --accent-studium: #8b7355;

    /* Chrome gradient tokens */
    --chrome: linear-gradient(
        135deg,
        #b8c6db 0%,
        #f5f7fa 15%,
        #c8d5e6 30%,
        #ffffff 45%,
        #a8b8cc 55%,
        #dce4ef 70%,
        #f0f3f8 85%,
        #b0c0d4 100%
    );
    --chrome-subtle: linear-gradient(
        135deg,
        #8a9bb5 0%,
        #c8d5e6 25%,
        #e8ecf4 50%,
        #a8b8cc 75%,
        #c0cee0 100%
    );

    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration: 0.6s;
    --duration-fast: 0.3s;

    --container: 980px;
    --container-wide: 1200px;
    --space-section: clamp(100px, 12vw, 180px);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--black);
    background: linear-gradient(180deg, #040a18 0%, #08132a 30%, #0b1a35 60%, #061020 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: none; }
input, textarea, select { cursor: none; }

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), background 0.2s;
    mix-blend-mode: difference;
}

.cursor.hover {
    width: 48px;
    height: 48px;
    background: var(--text-primary);
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), border-color 0.3s, opacity 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower.hover {
    width: 64px;
    height: 64px;
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.5;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

.container--narrow {
    max-width: var(--container);
}

/* --- Typography --- */
.overline {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.heading-lg {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: var(--chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
}

.heading-md {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    background: var(--chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.body-lg {
    font-size: clamp(1rem, 1.3vw, 1.1875rem);
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 clamp(20px, 4vw, 48px);
    transition: background var(--duration-fast), backdrop-filter var(--duration-fast);
}

.nav.scrolled {
    background: rgba(4, 10, 24, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration-fast);
}

.nav.scrolled .nav-inner {
    border-bottom-color: var(--border);
}

.nav-brand {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: var(--chrome-subtle);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color var(--duration-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.4s var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    cursor: none;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle.active span:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.active span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 40%, rgba(41, 100, 180, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 25% 55%, rgba(60, 80, 160, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 45% 45% at 75% 35%, rgba(100, 140, 220, 0.06) 0%, transparent 50%);
    animation: heroGradient 12s ease-in-out infinite;
}

@keyframes heroGradient {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 24px;
    overflow: hidden;
}

@keyframes chromeShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-letter {
    display: inline-block;
    color: #f5f7fa;
    opacity: 0;
    transform: translateY(100%);
    animation: letterReveal 0.8s var(--ease-out) forwards;
}

.hero-letter:nth-child(1) { animation-delay: 0.3s; }
.hero-letter:nth-child(2) { animation-delay: 0.38s; }
.hero-letter:nth-child(3) { animation-delay: 0.46s; }
.hero-letter:nth-child(4) { animation-delay: 0.54s; }
.hero-letter:nth-child(5) { animation-delay: 0.62s; }
.hero-letter:nth-child(6) { animation-delay: 0.70s; }

/* Chrome effect applied after animation completes (via JS) — Safari-safe */
.hero-letter.chrome {
    opacity: 1;
    transform: none;
    color: transparent;
    background: linear-gradient(
        135deg,
        #7a8da6 0%,
        #b8c6db 10%,
        #f5f7fa 20%,
        #ffffff 30%,
        #c8d5e6 40%,
        #f0f3f8 50%,
        #ffffff 60%,
        #a8b8cc 70%,
        #dce4ef 80%,
        #f5f7fa 90%,
        #8a9bb5 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chromeShift 8s ease-in-out infinite;
}

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-sub {
    font-size: clamp(0.75rem, 1.2vw, 0.9375rem);
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #6a7d96, #a8b8cc, #c8d5e6, #a8b8cc, #6a7d96);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
}

.hero-desc {
    font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--accent-blue);
    transition: gap 0.3s var(--ease-out);
}

.hero-cta:hover {
    gap: 12px;
}

.hero-cta svg {
    transition: transform 0.3s var(--ease-out);
}

.hero-cta:hover svg {
    transform: translate(2px, -2px);
}

/* --- Sections --- */
.section {
    padding: var(--space-section) 0;
    position: relative;
}

.section--flush {
    padding-bottom: 0;
}

.section--dark {
    background: linear-gradient(180deg, var(--bg-elevated), #050c1c);
}

/* --- About --- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 120px);
    align-items: start;
}

.about-left .heading-lg {
    position: sticky;
    top: 120px;
}

.stats-row {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-num {
    display: block;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

/* --- Products --- */
.product {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.product:last-child {
    border-bottom: 1px solid var(--border);
}

.product-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s var(--ease-out);
}

.product:hover .product-bg {
    opacity: 1;
}

.product-bg--jamrent {
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(26, 138, 92, 0.06) 0%, transparent 70%);
}

.product-bg--vixio {
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(91, 63, 197, 0.06) 0%, transparent 70%);
}

.product-bg--studium {
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(139, 115, 85, 0.06) 0%, transparent 70%);
}

.product-inner {
    position: relative;
    z-index: 2;
}

.product-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(32px, 4vw, 56px);
    flex-wrap: wrap;
}

.product-logo-display {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* JamRent Logo */
.logo-jamrent {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1a6ab8, #28a88a, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* VIXIO Logo */
.logo-vixio {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.02em;
    color: var(--accent-vixio);
}

/* STUDIUM Logo */
.logo-studium-icon {
    color: var(--accent-studium);
    display: flex;
    align-items: center;
}

.logo-studium {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--accent-studium);
    font-variant: small-caps;
}

.product-tag {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-jamrent);
    padding: 6px 16px;
    border: 1px solid rgba(26, 138, 92, 0.25);
    border-radius: 100px;
    white-space: nowrap;
}

.product-tag--vixio {
    color: var(--accent-vixio);
    border-color: rgba(91, 63, 197, 0.25);
}

.product-tag--studium {
    color: var(--accent-studium);
    border-color: rgba(139, 115, 85, 0.25);
}

.product-content {
    max-width: 720px;
}

.product-desc {
    font-size: clamp(1rem, 1.4vw, 1.1875rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.product-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(26, 138, 92, 0.08);
    color: rgba(26, 138, 92, 0.8);
    border: 1px solid rgba(26, 138, 92, 0.12);
    transition: background var(--duration-fast), border-color var(--duration-fast);
}

.pill:hover {
    background: rgba(26, 138, 92, 0.15);
    border-color: rgba(26, 138, 92, 0.25);
}

.pill--vixio {
    background: rgba(91, 63, 197, 0.08);
    color: rgba(91, 63, 197, 0.8);
    border-color: rgba(91, 63, 197, 0.12);
}

.pill--vixio:hover {
    background: rgba(91, 63, 197, 0.15);
    border-color: rgba(91, 63, 197, 0.25);
}

.pill--studium {
    background: rgba(139, 115, 85, 0.08);
    color: rgba(139, 115, 85, 0.9);
    border-color: rgba(139, 115, 85, 0.12);
}

.pill--studium:hover {
    background: rgba(139, 115, 85, 0.15);
    border-color: rgba(139, 115, 85, 0.25);
}

/* --- Leadership --- */
.leader-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(48px, 8vw, 100px);
    align-items: center;
}

.leader-initials {
    font-size: clamp(5rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, rgba(184, 198, 219, 0.12), rgba(255, 255, 255, 0.06), rgba(168, 184, 204, 0.10));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    user-select: none;
}

.leader-role {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    font-weight: 400;
}

/* --- Contact --- */
.contact-header {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 80px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
}

.form-field {
    position: relative;
    border-bottom: 1px solid var(--border);
    transition: border-color var(--duration-fast);
}

.form-field:focus-within {
    border-bottom-color: var(--text-primary);
}

.form-field label {
    position: absolute;
    left: 0;
    top: 24px;
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: all 0.3s var(--ease-out);
    transform-origin: left;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label,
.form-field select:focus + label,
.form-field select:valid + label {
    top: 8px;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 24px 0 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9375rem;
    outline: none;
    -webkit-appearance: none;
}

.form-field select {
    color: var(--text-primary);
}

.form-field select option {
    background: #081326;
    color: var(--text-primary);
}

.form-field textarea {
    resize: none;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 16px 40px;
    background: var(--text-primary);
    color: var(--black);
    border: none;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
    align-self: flex-start;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

.btn svg {
    transition: transform 0.3s var(--ease-out);
}

.btn:hover svg {
    transform: translate(2px, -2px);
}

/* --- Footer --- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: var(--chrome-subtle);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-right {
    display: flex;
    gap: 28px;
}

.footer-right a {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    transition: color var(--duration-fast);
}

.footer-right a:hover {
    color: var(--text-primary);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-left .heading-lg {
        position: static;
    }

    .leader-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .leader-initials {
        font-size: 6rem;
    }

    .leader-right {
        text-align: left;
    }

    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-section: 80px;
    }

    /* Hide custom cursor on touch */
    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    button, a, input, textarea, select {
        cursor: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(4, 10, 24, 0.97);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-out);
        z-index: 99;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .hero-title {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .heading-lg {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-direction: column;
        gap: 32px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-left {
        flex-direction: column;
        gap: 8px;
    }

    .product-pills {
        gap: 8px;
    }

    .pill {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        letter-spacing: 0.02em;
    }

    .hero-desc br {
        display: none;
    }

    .heading-lg br {
        display: none;
    }

    .contact-header .heading-lg br {
        display: none;
    }
}

/* --- Preference: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .hero-letter {
        opacity: 1;
        transform: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
