/* ============================================
   Media Monitor Landing Page — Styles
   "Executive Terminal" Dark Mode Aesthetic
   ============================================ */

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

:root {
    /* Palette */
    --bg-deep: #020617;
    --bg-panel: #0B1121;
    --border: rgba(30, 41, 59, 0.6);
    --border-solid: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;

    /* Accents */
    --indigo-400: #818cf8;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --sky-400: #38bdf8;
    --emerald-500: #10b981;
    --amber-500: #f59e0b;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'DM Serif Display', Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
}

/* --- Navigation --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.nav-logo {
    width: 2rem;
    height: 2rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.brand-accent {
    color: var(--indigo-500);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-login {
    display: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

@media (min-width: 640px) {
    .nav-login {
        display: block;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-light {
    height: 2.25rem;
    padding: 0 1rem;
    background: var(--text-primary);
    color: var(--bg-deep);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-light:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.btn-primary {
    height: 3rem;
    padding: 0 2rem;
    background: var(--indigo-600);
    color: #ffffff;
    font-size: 0.9375rem;
    border: 1px solid var(--indigo-500);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background: var(--indigo-500);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.3);
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 5rem 0 8rem;
    overflow: hidden;
}

.hero-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-copy {
    max-width: 36rem;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-solid);
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--emerald-500);
    animation: pulse 2s ease-in-out infinite;
}

.pulse-dot-sm {
    width: 0.5rem;
    height: 0.5rem;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Hero Heading */
.hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--indigo-400), var(--sky-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 32rem;
    margin-bottom: 2rem;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        align-items: center;
    }
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
}

.avatar-stack {
    display: flex;
}

.avatar-stack .avatar+.avatar {
    margin-left: -0.5rem;
}

.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--border-solid);
    border: 2px solid var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
}

.trust-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .hero-visual {
        display: block;
    }
}

.visual-glow {
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.15);
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.2;
}

/* Interface Card */
.interface-card {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border-solid);
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotate(-2deg);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.interface-card:hover {
    transform: rotate(0deg);
}

.card-titlebar {
    height: 2.5rem;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-solid);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.titlebar-dots {
    display: flex;
    gap: 0.375rem;
}

.dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--border-solid);
}

.titlebar-label {
    margin-left: 1rem;
    height: 1rem;
    width: 8rem;
    background: var(--border-solid);
    border-radius: 2px;
}

.card-body {
    padding: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

/* Metrics */
.metrics-row {
    display: flex;
    gap: 1rem;
}

.metric-tile {
    flex: 1;
    height: 5rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-solid);
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.metric-tile-active {
    background: rgba(79, 70, 229, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.metric-label {
    height: 0.5rem;
    width: 3rem;
    background: var(--border-solid);
    border-radius: 2px;
    margin-bottom: 0.75rem;
}

.metric-label-active {
    background: rgba(129, 140, 248, 0.5);
}

.metric-value {
    height: 1.5rem;
    width: 4rem;
    border-radius: 0.25rem;
}

.metric-emerald {
    background: rgba(16, 185, 129, 0.2);
}

.metric-indigo {
    background: rgba(99, 102, 241, 0.2);
}

.metric-value-pulse {
    width: 2rem;
    background: rgba(99, 102, 241, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

/* Feed Items */
.feed-items {
    display: grid;
    gap: 0.75rem;
}

.feed-item {
    height: 3.5rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-solid);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
}

.feed-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    background: var(--border-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feed-lines {
    display: grid;
    gap: 0.375rem;
}

.feed-line {
    height: 0.5rem;
    border-radius: 2px;
}

.feed-line-short {
    width: 6rem;
    background: var(--border-solid);
}

.feed-line-med {
    width: 8rem;
    background: var(--border-solid);
}

.feed-line-long {
    width: 12rem;
    background: rgba(30, 41, 59, 0.6);
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    bottom: 2rem;
    left: -1.5rem;
    background: var(--bg-deep);
    border: 1px solid #334155;
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.badge-text {
    display: flex;
    flex-direction: column;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.6875rem;
    line-height: 1.4;
}

.badge-title {
    color: var(--emerald-500);
    font-weight: 600;
}

.badge-sub {
    color: var(--text-muted);
}

/* Background Grid */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    background-image:
        linear-gradient(var(--border-solid) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-solid) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8rem;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    pointer-events: none;
}

/* --- Features --- */
.features {
    padding: 6rem 0;
    border-top: 1px solid var(--border-solid);
    background: var(--bg-panel);
}

.features-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.features-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature {
    display: grid;
    gap: 1rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-solid);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-solid);
    background: var(--bg-deep);
    text-align: center;
}

.footer-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-dim {
    opacity: 0.5;
}

/* --- Icons (Lucide sizing) --- */
.icon-xs {
    width: 0.75rem;
    height: 0.75rem;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-feature {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-indigo {
    color: var(--indigo-400);
}

.icon-sky {
    color: var(--sky-400);
}

.icon-amber {
    color: var(--amber-500);
}

.icon-muted {
    color: var(--text-dim);
}

/* --- Reveal animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.hero-copy {
    animation: fadeUp 0.8s ease-out both;
}

.hero-visual {
    animation: fadeUp 0.8s 0.2s ease-out both;
}

.feature {
    opacity: 0;
    animation: fadeUp 0.6s ease-out both;
}

.feature:nth-child(1) {
    animation-delay: 0.1s;
}

.feature:nth-child(2) {
    animation-delay: 0.25s;
}

.feature:nth-child(3) {
    animation-delay: 0.4s;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border-solid);
    border-radius: 0.75rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 28rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-sub {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* --- Form --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
    min-width: 0;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-solid);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    outline: none;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--indigo-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 4.5rem;
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

/* --- Form Success --- */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0;
    text-align: center;
}

.success-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-emerald {
    color: var(--emerald-500);
}

.success-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.success-sub {
    color: var(--text-muted);
    font-size: 0.875rem;
}