/* ============================================
   CLEARRECORD - UNIQUE DESIGN SYSTEM
   Using Outfit font to match app aesthetic
   ============================================ */

:root {
    --bg-dark: #080b12;
    --bg-card: #0d1119;
    --bg-elevated: #141922;

    --cyan: #4dd0e1;
    --cyan-dim: rgba(77, 208, 225, 0.15);
    --cyan-glow: rgba(77, 208, 225, 0.5);

    --gold: #ffd54f;
    --gold-dim: rgba(255, 213, 79, 0.15);

    --text-white: #ffffff;
    --text-gray: #8b9cb5;
    --text-dim: #4a5568;

    --border: rgba(255, 255, 255, 0.06);
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Noise texture */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 32px;
    background: rgba(8, 11, 18, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 600;
    font-size: 18px;
}

.logo img {
    width: 32px;
    height: 32px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-nav {
    padding: 10px 20px !important;
    background: var(--cyan-dim) !important;
    border: 1px solid rgba(77, 208, 225, 0.3);
    border-radius: 100px;
    color: var(--cyan) !important;
}

.btn-nav:hover {
    background: rgba(77, 208, 225, 0.25) !important;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    min-height: 100vh;
    padding: 140px 32px 80px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 60%);
    opacity: 0.3;
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(1.1);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-text h1 span {
    display: block;
}

.hero-text .line-2 {
    color: var(--cyan);
}

.hero-text .line-3 {
    color: var(--text-gray);
    font-weight: 400;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 420px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--cyan) 0%, #26c6da 100%);
    color: var(--bg-dark);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s;
    width: fit-content;
    box-shadow: 0 8px 32px var(--cyan-glow);
}

.btn-primary svg {
    width: 22px;
    height: 22px;
}

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

.hero-note {
    font-size: 14px;
    color: var(--text-dim);
}

/* Phone */
.hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-frame {
    position: relative;
    width: 280px;
    background: #000;
    border-radius: 44px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 30px 60px -30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    border-radius: 32px;
    display: block;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    opacity: 0.4;
    z-index: -1;
    animation: pulse-glow 6s ease-in-out infinite;
}

/* ============================================
   MARQUEE
   ============================================ */

.marquee-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 48px;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.marquee-content .dot {
    color: var(--cyan);
    font-size: 8px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   FEATURES - BENTO GRID
   ============================================ */

.features {
    padding: 120px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--cyan-dim);
    border: 1px solid rgba(77, 208, 225, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.features-header h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.features-header .highlight {
    color: var(--cyan);
}

.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.bento-main {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(77, 208, 225, 0.05) 100%);
    padding: 48px;
}

.bento-wide {
    grid-column: span 2;
}

.bento-icon {
    width: 56px;
    height: 56px;
    background: var(--cyan-dim);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.bento-icon svg {
    width: 28px;
    height: 28px;
    color: var(--cyan);
}

.bento-icon-gold {
    background: var(--gold-dim);
}

.bento-icon-gold svg {
    color: var(--gold);
}

.bento-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.bento-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

.bento-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 12px;
    background: var(--gold-dim);
    border: 1px solid rgba(255, 213, 79, 0.3);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
}

/* ============================================
   PRIVACY CALLOUT
   ============================================ */

.privacy-callout {
    padding: 80px 32px;
}

.privacy-callout-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
}

.privacy-icon-large {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-icon-large svg {
    width: 100px;
    height: 100px;
    color: var(--cyan);
    opacity: 0.3;
}

.privacy-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--cyan) 0%, #26c6da 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--bg-dark);
    box-shadow: 0 8px 32px var(--cyan-glow);
}

.privacy-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.privacy-text p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.link-arrow {
    font-size: 15px;
    font-weight: 500;
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.2s;
}

.link-arrow:hover {
    letter-spacing: 0.02em;
}

/* ============================================
   DOWNLOAD
   ============================================ */

.download {
    padding: 120px 32px;
    text-align: center;
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 60%);
    opacity: 0.15;
    pointer-events: none;
}

.download-content {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.download h2 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.download p {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: var(--text-white);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s;
}

.btn-download svg {
    width: 32px;
    height: 32px;
}

.btn-download div {
    text-align: left;
}

.btn-download .dl-small {
    display: block;
    font-size: 11px;
    opacity: 0.7;
}

.btn-download .dl-large {
    display: block;
    font-size: 20px;
    font-weight: 600;
}

.btn-download:hover {
    transform: scale(1.05);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 40px 32px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 600;
    font-size: 16px;
}

.footer-logo img {
    width: 28px;
    height: 28px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

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

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

.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-text p {
        margin: 0 auto 36px;
    }

    .hero-cta {
        align-items: center;
    }

    .features-bento {
        grid-template-columns: 1fr 1fr;
    }

    .bento-main,
    .bento-wide {
        grid-column: span 2;
    }

    .privacy-callout-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .privacy-icon-large {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .features-bento {
        grid-template-columns: 1fr;
    }

    .bento-main,
    .bento-wide {
        grid-column: span 1;
    }

    .privacy-callout-inner {
        padding: 40px 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}