/* ================================
   RVN → Quantive transition page
   Standalone subset of ../styles.css
   ================================ */
:root {
    /* Surfaces */
    --bg: #050506;

    /* Lines */
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);

    /* Text */
    --text: #f5f5f7;
    --text-2: #a1a1a6;

    /* Brand */
    --orange: #ff6c34;
    --amber: #ff9b34;
    --glow: rgba(255, 108, 52, 0.35);
    --grad: linear-gradient(135deg, #ff6c34 0%, #ff9b34 100%);
    --grad-text: linear-gradient(90deg, #ff6c34 0%, #ff9b34 55%, #ffc48a 100%);
    --grad-rvn: linear-gradient(90deg, #ff4c00 0%, #ff91fb 100%);

    /* Type */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;

    /* Layout */
    --container: 1200px;
    --gutter: clamp(16px, 5vw, 40px);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    color-scheme: dark;
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    letter-spacing: -0.011em;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img, svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

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

::selection {
    background: var(--orange);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ================================
   Layout & Typography
   ================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

h1 {
    font-size: clamp(2.75rem, 7.6vw, 6.25rem);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -0.048em;
    color: var(--text);
}

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.25s ease, color 0.25s ease;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.5s var(--ease);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 30px -12px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 16px 40px -12px rgba(255, 108, 52, 0.6);
}

.btn-lg {
    height: 52px;
    padding: 0 28px;
    font-size: 16px;
}

/* ================================
   Logo
   ================================ */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.logo-icon {
    width: 26px;
    height: 26px;
}

/* ================================
   Hero backdrop
   ================================ */
.hero-glow {
    position: absolute;
    top: -30%;
    left: 50%;
    width: min(1500px, 160vw);
    aspect-ratio: 1.5;
    transform: translateX(-50%);
    background:
        radial-gradient(closest-side, rgba(255, 108, 52, 0.30), rgba(255, 120, 52, 0.08) 45%, transparent 72%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
    opacity: 0.55;
    pointer-events: none;
}

.hero-sub {
    max-width: 680px;
    margin: 0 auto 40px;
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    line-height: 1.5;
    letter-spacing: -0.016em;
    color: var(--text-2);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ================================
   Rebrand
   ================================ */
.rebrand {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 48px 0;
    overflow: hidden;
    text-align: center;
}

.rebrand-inner {
    position: relative;
    max-width: 860px;
}

.rebrand-mark {
    display: inline-flex;
    align-items: center;
    gap: clamp(14px, 3vw, 24px);
    margin-bottom: clamp(36px, 6vw, 56px);
    padding: 10px 22px 10px 20px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px var(--line-2);
    animation: rebrand-in 1s var(--ease) both;
}

.rebrand-old {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: 0.04em;
    /* RVN brand gradient (from the grouprvn.com mark) */
    background: var(--grad-rvn);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rebrand-arrow {
    width: 28px;
    height: 16px;
    color: var(--orange);
}

.rebrand-arrow path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: rebrand-draw 0.8s var(--ease) 0.4s forwards;
}

.rebrand h1 {
    margin-bottom: 28px;
    animation: rebrand-in 1s var(--ease) 0.12s both;
}

.rebrand .hero-sub {
    animation: rebrand-in 1s var(--ease) 0.24s both;
}

.rebrand .hero-cta {
    animation: rebrand-in 1s var(--ease) 0.36s both;
}

.rebrand-domain {
    color: var(--text);
    white-space: nowrap;
}

@keyframes rebrand-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes rebrand-draw {
    to { stroke-dashoffset: 0; }
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 600px) {
    .hero-cta .btn {
        width: 100%;
    }
}

/* ================================
   Reduced motion
   ================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .rebrand-arrow path {
        stroke-dashoffset: 0;
    }
}
