/* ==========================================================================
   LocalGraph.Cloud - Modern Design System (V2)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #0a0c10;
    --bg-surface: #11141a;
    --bg-surface-card: rgba(18, 22, 30, 0.75);
    --bg-surface-elevated: #1a202c;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(59, 130, 246, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-primary-glow: rgba(59, 130, 246, 0.25);
    --color-accent: #06b6d4;
    --color-apple: #a855f7;
    --color-success: #10b981;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Inter", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    /* Layout */
    --container-max: 1160px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Atmospheric Glows */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
}

.bg-glow--1 {
    top: -150px;
    left: 20%;
    width: 650px;
    height: 450px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.bg-glow--2 {
    top: 40%;
    right: -100px;
    width: 550px;
    height: 450px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}

.bg-glow--3 {
    bottom: 5%;
    left: -100px;
    width: 500px;
    height: 400px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar--scrolled {
    background-color: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border-subtle);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.navbar__logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.navbar__link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn--primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 6px 28px rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

.btn--ghost {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-subtle);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Official Mac App Store Style Button */
.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #000000;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.btn-appstore:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.btn-appstore__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.btn-appstore__text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.btn-appstore__sub {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.btn-appstore__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Pill badge */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
    animation: pulseGlow 2s infinite ease-in-out;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: calc(var(--header-height) + 60px) 0 80px 0;
    position: relative;
    text-align: center;
}

.hero__inner {
    max-width: 860px;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero__title-accent {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}

.hero__actions .btn-appstore,
.hero__actions .btn-secondary-action {
    min-height: 52px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
}

.btn-secondary-action {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-secondary-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* App Mockup Preview */
.hero__preview {
    margin-top: 20px;
    position: relative;
}

.preview-window {
    background: rgba(18, 22, 30, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 24px 60px -12px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(59, 130, 246, 0.15);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.preview-window:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 30px 70px -12px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(59, 130, 246, 0.25);
}

.preview-window__bar {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: rgba(15, 18, 24, 0.9);
    border-bottom: 1px solid var(--border-subtle);
}

.preview-window__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.preview-window__dot--red { background: #ff5f56; }
.preview-window__dot--yellow { background: #ffbd2e; }
.preview-window__dot--green { background: #27c93f; }

.preview-window__title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.preview-window__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-label__line {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

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

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    background: rgba(26, 32, 44, 0.85);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card__desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.how-it-works {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(17, 20, 26, 0.5) 100%);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    position: relative;
}

.step {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    backdrop-filter: blur(12px);
    position: relative;
}

.step__number {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px var(--color-primary-glow);
}

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

.step__desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Platforms & Download Section
   ========================================================================== */

.download {
    padding: 100px 0 120px 0;
    text-align: center;
}

.download__inner {
    max-width: 960px;
    margin: 0 auto;
}

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

.download__subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.platform-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Featured: macOS (Available) */
.platform-card--active {
    background: rgba(22, 27, 36, 0.95);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.platform-card--active:hover {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

/* Inactive / Coming soon cards */
.platform-card--disabled {
    opacity: 0.65;
    cursor: default;
}

.platform-card--disabled:hover {
    border-color: var(--border-subtle);
}

.platform-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.platform-card__icon svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

.platform-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.platform-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.platform-card__badge--available {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.platform-card__badge--soon {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

/* Callout box under platforms */
.download__highlight {
    background: rgba(18, 22, 30, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    text-align: left;
}

.download__highlight-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.download__highlight-text p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Static Legal & Support Content Pages
   ========================================================================== */

.content-page {
    padding: calc(var(--header-height) + 40px) 0 80px 0;
    max-width: 820px;
    margin: 0 auto;
}

.content-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 48px;
    backdrop-filter: blur(12px);
}

.content-page__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-page__meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.content-page__lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.content-page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 16px 0;
}

.content-page p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.content-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 28px 0;
}

.content-box h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.content-box a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.content-box a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 40px 0;
    background: rgba(10, 12, 16, 0.85);
    position: relative;
    z-index: 1;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
}

.footer__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
}

.footer__link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 28px;
}

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

.footer__copy a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer__copy a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Language selector pills */
.lang-selector {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 3px;
}

.lang-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.lang-link:hover {
    color: var(--text-primary);
}

.lang-link--active {
    background: var(--color-primary);
    color: #ffffff;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 860px) {
    .navbar__links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(10, 12, 16, 0.98);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }

    .navbar__links--open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

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

    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .content-card {
        padding: 32px 20px;
    }
}

@media (max-width: 520px) {
    .platforms-grid {
        grid-template-columns: 1fr;
    }
}
