/* ═══════════════════════════════════════════════════════════════
   SSO Portal — Modern SaaS Landing Page
   ═══════════════════════════════════════════════════════════════ */

:root {
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --blue: #3b82f6;
    --pink: #ec4899;
    --gradient: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    --gradient-soft: linear-gradient(135deg, #ede9fe 0%, #dbeafe 50%, #fce7f3 100%);
    --gradient-bg: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 100%);
    --text-primary: #1e1b4b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --surface: #ffffff;
    --border: rgba(124, 58, 237, 0.08);
    --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.06);
    --shadow-md: 0 8px 30px rgba(124, 58, 237, 0.1);
    --shadow-lg: 0 20px 60px rgba(124, 58, 237, 0.12);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--gradient-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}
.nav-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
}
.nav-brand-text {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--purple);
    background: rgba(0, 0, 0, 0.04);
}
.nav-btn {
    margin-left: 8px;
    padding: 10px 24px;
    background: var(--purple);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* Burger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
    padding: 140px 24px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}
.hero-content { max-width: 540px; }
.hero-eyebrow {
    display: inline-block;
    margin: 0 0 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple);
}
.hero-title {
    margin: 0 0 24px;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.gradient-text {
    color: var(--purple);
}
.hero-desc {
    margin: 0 0 32px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--purple);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: 1.5px solid rgba(124, 58, 237, 0.2);
    cursor: pointer;
    transition: var(--transition);
}
.btn-ghost:hover {
    border-color: var(--purple);
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 32px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hero-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── HERO VISUAL / ILLUSTRATION ─────────────────────────────── */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.visual-scene {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
}

/* Main dashboard card */
.visual-card.main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--purple);
    color: #fff;
}
.card-dots {
    display: flex;
    gap: 5px;
}
.card-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}
.card-dots span:first-child { background: #fca5a5; }
.card-dots span:nth-child(2) { background: #fde68a; }
.card-dots span:nth-child(3) { background: #86efac; }
.card-title {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}
.card-body { padding: 18px; }
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    margin-bottom: 16px;
}
.chart-bar {
    flex: 1;
    background: var(--gradient-soft);
    border-radius: 4px 4px 0 0;
    position: relative;
    overflow: hidden;
}
.chart-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--purple);
    opacity: 0.6;
    border-radius: inherit;
}
.chart-bar:nth-child(even)::after { opacity: 0.35; }
.card-stats-row {
    display: flex;
    gap: 16px;
}
.mini-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ms-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}
.ms-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Floating cards */
.float-card {
    position: absolute;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.float-icon { font-size: 1.3rem; }
.float-text strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-primary);
}
.float-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.float-1 {
    top: 8%;
    left: 5%;
    animation: floatAlt 5s ease-in-out infinite;
}
.float-2 {
    bottom: 12%;
    right: 2%;
    animation: floatAlt 7s ease-in-out infinite 1s;
}
.float-3 {
    top: 15%;
    right: 5%;
    padding: 12px;
    animation: floatAlt 6s ease-in-out infinite 0.5s;
}
.float-ring {
    position: relative;
    width: 52px;
    height: 52px;
}
.ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--purple);
}

/* Glow orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
}
.orb-1 {
    width: 200px;
    height: 200px;
    background: var(--purple-light);
    top: 10%;
    right: 15%;
}
.orb-2 {
    width: 160px;
    height: 160px;
    background: var(--pink);
    bottom: 20%;
    left: 10%;
    opacity: 0.25;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-12px); }
}
@keyframes floatAlt {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.section-about,
.section-info {
    padding: 80px 24px;
}
.section-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.section-eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--purple);
}
.section-title {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}
.section-desc {
    margin: 0 auto 48px;
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(24px);
}
.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}
.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Info card */
.info-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.info-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.info-card h3 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 800;
}
.info-card p {
    margin: 0 0 24px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.landing-footer {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.footer-sep { opacity: 0.5; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-desc { text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .visual-scene { max-width: 360px; }
    .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 700px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: 4px;
    }
    .nav-links.open { display: flex; }
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
    .nav-btn {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .hero { padding: 120px 20px 60px; min-height: auto; }
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 20px; }
    .hero-stat-num { font-size: 1.2rem; }

    .visual-scene { max-width: 300px; }
    .visual-card.main-card { width: 220px; }
    .float-card { padding: 10px 14px; }
    .float-text strong { font-size: 0.72rem; }
    .float-text span { font-size: 0.65rem; }

    .section-about, .section-info { padding: 60px 20px; }
    .info-card { padding: 32px 24px; }
}

@media (max-width: 400px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; text-align: center; }
    .hero-stats { flex-direction: column; gap: 12px; align-items: center; }
    .float-1, .float-2 { display: none; }
}
