/* ═══════════════════════════════════════════════════════════════
   SGRUL — Autonomous Market Intelligence
   Premium Design System
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    --black: #0A0A0A;
    --graphite: #1A1A2E;
    --graphite-light: #16213E;
    --emerald: #00D4AA;
    --emerald-glow: rgba(0, 212, 170, 0.15);
    --emerald-dark: #00A88A;
    --gold: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.15);
    --white: #F0F0F0;
    --gray: #888888;
    --gray-dark: #333333;
    --red: #FF4757;
    --font: 'Inter', -apple-system, sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--emerald); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

/* ─── Utilities ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section-dark { background: var(--graphite); }
.text-center { text-align: center; }
.text-emerald { color: var(--emerald); }
.text-gold { color: var(--gold); }
.text-gray { color: var(--gray); }

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 64px;
    line-height: 1.7;
}

/* ─── Navigation ───────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.7);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(0, 212, 170, 0.1);
    padding: 10px 0;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img { height: 36px; width: 36px; border-radius: 8px; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    color: var(--black) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.3);
    color: var(--black) !important;
}

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

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

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0, 212, 170, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero-logo-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
    position: relative;
}

.hero-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    filter: drop-shadow(0 0 60px rgba(0, 212, 170, 0.3));
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(0, 212, 170, 0.2)); }
    50% { filter: drop-shadow(0 0 80px rgba(0, 212, 170, 0.4)); }
}

.hero-logo-ring {
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 32px;
    animation: ringRotate 15s linear infinite;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-brand {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.35em;
    color: var(--emerald);
    margin-bottom: 8px;
    text-shadow: 0 0 80px rgba(0, 212, 170, 0.3);
}

.hero-tagline {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-headline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 300;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 48px;
}
.hero-headline strong { color: var(--white); font-weight: 600; }

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

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    color: var(--black);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.35);
    color: var(--black);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-dark);
}
.btn-outline:hover {
    border-color: var(--emerald);
    color: var(--emerald);
    transform: translateY(-3px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #B8941F);
    color: var(--black);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.35);
    color: var(--black);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--emerald);
}
.hero-stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* ─── Technology Section ───────────────────────────────────── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.tech-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
    opacity: 0;
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 170, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.tech-card:hover::before { opacity: 1; }

.tech-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    background: var(--emerald-glow);
    color: var(--emerald);
}

.tech-card:nth-child(even) .tech-icon {
    background: var(--gold-glow);
    color: var(--gold);
}

.tech-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tech-card p {
    color: var(--gray);
    font-size: 0.925rem;
    line-height: 1.7;
}

/* ─── Performance Section ──────────────────────────────────── */
.perf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.perf-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.perf-card:hover {
    border-color: rgba(0, 212, 170, 0.2);
    transform: translateY(-4px);
}

.perf-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.perf-label {
    color: var(--gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

/* ─── Comparison Table ─────────────────────────────────────── */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-table th {
    background: var(--graphite);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
}

.compare-table th:last-child {
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.15), rgba(0, 212, 170, 0.05));
    color: var(--emerald);
}

.compare-table td { background: rgba(26, 26, 46, 0.3); }
.compare-table td:first-child { text-align: left; font-weight: 600; }
.compare-table td:last-child { background: rgba(0, 212, 170, 0.05); }

.compare-table tr:hover td { background: rgba(0, 212, 170, 0.05); }

.check { color: var(--emerald); font-weight: 700; }
.cross { color: var(--red); opacity: 0.5; }
.compare-highlight { color: var(--emerald); font-weight: 700; }

/* ─── Pricing Section ──────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.price-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.price-card.featured {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(26, 26, 46, 0.5));
    transform: scale(1.05);
}
.price-card.featured:hover { transform: scale(1.05) translateY(-8px); }

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), #B8941F);
    color: var(--black);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.price-name {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray);
    margin-bottom: 16px;
    font-weight: 600;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 8px;
}
.price-amount .currency { font-size: 1.5rem; vertical-align: top; color: var(--gray); }
.price-amount .period { font-size: 1rem; font-weight: 400; color: var(--gray); }

.price-desc {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.price-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-features li::before {
    content: '✓';
    color: var(--emerald);
    font-weight: 700;
    flex-shrink: 0;
}

.price-features li.disabled { opacity: 0.35; }
.price-features li.disabled::before { content: '—'; color: var(--gray); }

.price-card .btn { width: 100%; justify-content: center; }

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 24px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover { color: var(--emerald); }

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--emerald);
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-bottom: 24px;
}

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--graphite);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--gray); font-size: 0.875rem; max-width: 300px; line-height: 1.7; }

.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: var(--gray); font-size: 0.875rem; }
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 0.8rem;
}

/* ─── Animations ───────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .price-card.featured { transform: none; }
    .price-card.featured:hover { transform: translateY(-8px); }
    .perf-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(0, 212, 170, 0.1);
    }
    .hero-brand { letter-spacing: 0.15em; }
    .hero-stats { gap: 24px; }
    .compare-table { font-size: 0.75rem; }
    .compare-table th, .compare-table td { padding: 10px 8px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .section { padding: 80px 0; }
}
