/* ═══════════════════════════════════════════════════════════════════════
   Relationship Companion — Global Stylesheet
   Premium dark mode with gradient accents
   ═══════════════════════════════════════════════════════════════════════ */

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

:root {
    --bg: #0a0a0f;
    --bg-alt: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --surface: #1e1e2a;
    --border: #2a2a3a;
    --border-light: #353548;
    --text-1: #f0f0f5;
    --text-2: #9898b0;
    --text-3: #6868a0;
    --accent: #e84057;
    --accent-light: #ff6b7f;
    --accent-glow: rgba(232, 64, 87, 0.15);
    --purple: #7c3aed;
    --purple-glow: rgba(124, 58, 237, 0.15);
    --success: #22c55e;
    --warning: #f59e0b;
    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

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

/* ─── Navigation ───────────────────────────────────────────────────── */
nav#main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 32px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

nav#main-nav.scrolled {
    background: rgba(10, 10, 15, 0.92);
    border-bottom-color: rgba(42, 42, 58, 0.5);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-heart { animation: heartbeat 2s ease-in-out infinite; }

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

.nav-links a {
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--text-1); }

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 1px;
}

.nav-cta {
    padding: 10px 24px !important;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: white !important;
    border-radius: var(--r-sm);
    font-weight: 600 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Buttons ──────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: white;
    border: none;
    border-radius: var(--r-md);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--bg-card);
    color: var(--text-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.btn-sm { padding: 10px 24px; font-size: 14px; }

/* ─── Hero Section ─────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow), transparent 60%);
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 32px;
}

.badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-2);
    max-width: 560px;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ─── Heart Animation ──────────────────────────────────────────────── */
.heart-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 40px;
}

.heart-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(232, 64, 87, 0.4));
    animation: heartbeat 1.5s ease-in-out infinite;
}

.heart-ring {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: ringPulse 2s ease-in-out infinite;
}

/* ─── Section Styling ──────────────────────────────────────────────── */
.section {
    padding: 100px 24px;
}

.section-alt { background: var(--bg-alt); }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-2);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Cards ────────────────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    border-color: rgba(232, 64, 87, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before { opacity: 1; }

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.card-icon.purple {
    background: var(--purple-glow);
    color: var(--purple);
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.card p { color: var(--text-2); font-size: 14px; line-height: 1.7; }

/* ─── Stats Row ────────────────────────────────────────────────────── */
.stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat h4 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat p { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ─── Steps ────────────────────────────────────────────────────────── */
.steps {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.step p { color: var(--text-2); font-size: 15px; }

/* ─── CTA Box ──────────────────────────────────────────────────────── */
.cta-box {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 48px;
    background: linear-gradient(135deg, rgba(232, 64, 87, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(232, 64, 87, 0.2);
    border-radius: var(--r-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 60%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-box > p {
    color: var(--text-2);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ─── Investor / Acquirer specific ─────────────────────────────────── */
.page-hero {
    padding: 160px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center top, var(--accent-glow), transparent 60%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    max-width: 700px;
    margin: 0 auto 20px;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-2);
    max-width: 580px;
    margin: 0 auto;
}

.data-card {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.data-card h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.data-card ul {
    list-style: none;
    padding: 0;
}

.data-card li {
    padding: 10px 0;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
}

.data-card li:last-child { border-bottom: none; }

.data-card li .check {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* ─── Contact Form ─────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.contact-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-card .icon {
    width: 48px; height: 48px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
}

.contact-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.contact-card p { color: var(--text-2); font-size: 14px; }
.contact-card a { color: var(--accent); font-weight: 500; }

/* ─── Legal Pages ──────────────────────────────────────────────────── */
.legal-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 160px 24px 100px;
}

.legal-content h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.legal-content .updated {
    color: var(--text-3);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-content p, .legal-content li {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul { padding-left: 24px; margin-bottom: 16px; }

/* ─── Footer ───────────────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 64px 24px 32px;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-brand > p { color: var(--text-3); font-size: 14px; max-width: 260px; }

.footer-links-group h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-3);
    margin-bottom: 16px;
}

.footer-links-group ul { list-style: none; }

.footer-links-group li { margin-bottom: 10px; }

.footer-links-group a {
    color: var(--text-2);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links-group a:hover { color: var(--text-1); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p { color: var(--text-3); font-size: 13px; }
.footer-contact a { color: var(--text-2); font-size: 13px; transition: color 0.2s; }
.footer-contact a:hover { color: var(--accent); }

/* ─── 404 ──────────────────────────────────────────────────────────── */
.error-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
}

.error-page h1 {
    font-size: 120px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-page p { color: var(--text-2); font-size: 18px; margin: 16px 0 32px; }

/* ─── Animations ───────────────────────────────────────────────────── */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.08); }
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .two-col { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 768px) {
    nav#main-nav { padding: 12px 20px; }
    
    .hamburger { display: flex; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links.open { display: flex; }
    
    .nav-links li { width: 100%; }
    
    .nav-links a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
    }
    
    .nav-links a.active::after { display: none; }
    
    .nav-cta {
        margin-top: 16px;
        text-align: center;
        border-bottom: none !important;
        border-radius: var(--r-sm) !important;
    }
    
    .hero { padding: 120px 20px 60px; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    
    .section { padding: 60px 20px; }
    .card-grid { grid-template-columns: 1fr; }
    .stats { flex-direction: column; gap: 24px; }
    .step { flex-direction: column; text-align: center; align-items: center; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 28px; }
    
    .page-hero { padding: 140px 20px 60px; }
}

/* ─── Legal & Text Pages ───────────────────────────────────────────── */
.legal-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 48px;
    margin-bottom: 32px;
}

.legal-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text-1);
}

.legal-card p {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-card p:last-child { margin-bottom: 0; }

.legal-card ul {
    list-style: none;
    margin: 12px 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-card ul li {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 24px;
}

.legal-card ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--accent);
    font-weight: bold;
    font-size: 18px;
}

.legal-highlight {
    background: rgba(232, 64, 87, 0.08);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    margin: 20px 0;
}

.legal-highlight p {
    color: var(--text-1);
    font-weight: 500;
    margin: 0;
}

/* ─── 404 Error Page ───────────────────────────────────────────────── */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 80px;
}

.error-content {
    max-width: 540px;
}

.error-code {
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.error-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.error-text {
    color: var(--text-2);
    font-size: 16px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .legal-card { padding: 28px 20px; }
    .error-code { font-size: 80px; }
    .error-title { font-size: 22px; }
}

