/* ============================================
   Neuridion IDE — Website Stylesheet
   neuridion.com
   Modern. Refined. Professional.
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #0071E3;
    --primary-dark: #005BBB;
    --primary-light: #4DA3FF;
    --secondary: #6C5CE7;
    --secondary-dark: #5A4BD1;
    --accent: #FF6B35;
    --accent-dark: #E55A28;
    --bg-white: #FFFFFF;
    --bg-light: #FAFAFA;
    --bg-dark: #0A0A0F;
    --bg-dark-elevated: #12121A;
    --bg-dark-card: #16161F;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-light: #888888;
    --text-on-dark: #E8E8EC;
    --text-on-dark-secondary: rgba(255, 255, 255, 0.55);
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.1);
    --border-on-dark: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-primary: 0 8px 32px rgba(0, 113, 227, 0.25);
    --shadow-accent: 0 8px 32px rgba(255, 107, 53, 0.25);
    --shadow-secondary: 0 8px 32px rgba(108, 92, 231, 0.2);
    --gradient-hero: linear-gradient(135deg, #0A0A0F 0%, #0D1B3E 40%, #1A0A2E 70%, #0A0A0F 100%);
    --gradient-hero-glow: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 113, 227, 0.15) 0%, rgba(108, 92, 231, 0.08) 40%, transparent 70%);
    --gradient-text: linear-gradient(135deg, #0071E3, #6C5CE7, #0071E3);
    --gradient-accent: linear-gradient(135deg, #FF6B35, #FF8F65);
    --gradient-card-border: linear-gradient(135deg, rgba(0, 113, 227, 0.2), rgba(108, 92, 231, 0.2));
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --nav-height: 64px;
    --max-width: 1200px;
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

::selection {
    background: rgba(0, 113, 227, 0.15);
    color: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 750;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    letter-spacing: -0.02em;
}

h4 {
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-text 3s linear infinite;
}

@keyframes shimmer-text {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* --- Container & Sections --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-light {
    background: var(--bg-light);
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
}

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

.section-header p {
    margin-top: 16px;
    font-size: 1.188rem;
    color: var(--text-secondary);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: opacity var(--transition);
}

.navbar:not(.scrolled) .nav-brand {
    color: white;
}

.nav-brand:hover {
    opacity: 0.8;
    color: inherit;
}

.nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.938rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.navbar:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.7);
}

.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .nav-links a.active {
    color: white;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-cta {
    background: var(--primary) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-spring);
    border: none;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    color: white !important;
    transform: scale(1.04);
    box-shadow: var(--shadow-primary);
}

.nav-cta::after {
    display: none !important;
}

/* Hamburger Menu */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.nav-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.navbar:not(.scrolled) .nav-hamburger span {
    background: white;
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    padding-top: calc(var(--nav-height) + 100px);
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero-glow);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-white), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    margin: 0 auto 40px;
    box-shadow: 0 24px 80px rgba(0, 113, 227, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: float 4s ease-in-out infinite;
}

.hero h1 {
    margin-bottom: 20px;
    color: white;
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.04em;
}

.hero .subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 12px;
    font-weight: 400;
    line-height: 1.6;
}

.hero .subtitle:last-of-type {
    margin-bottom: 40px;
}

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

.beta-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 10px 28px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 0.938rem;
    letter-spacing: 0.01em;
    animation: pulse-glow 2.5s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 24px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 6px 36px rgba(255, 107, 53, 0.5); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-spring);
    text-decoration: none;
    position: relative;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.15);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-primary);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #F0F0F2;
    color: var(--text-primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-accent);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid rgba(0, 113, 227, 0.3);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-primary);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-small {
    padding: 10px 22px;
    font-size: 0.875rem;
}

/* --- Cards --- */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border);
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 113, 227, 0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- Feature Grid (3 columns) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-grid .card:nth-child(1) { transition-delay: 0s; }
.feature-grid .card:nth-child(2) { transition-delay: 0.1s; }
.feature-grid .card:nth-child(3) { transition-delay: 0.1s; }

/* Stagger fade-in for feature-grid cards */
.feature-grid .card.fade-in:nth-child(1) { transition-delay: 0s; }
.feature-grid .card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.feature-grid .card.fade-in:nth-child(3) { transition-delay: 0.2s; }

/* --- Screenshot Showcase --- */
.screenshot-showcase {
    text-align: center;
}

.screenshot-main {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
    margin: 0 auto 48px;
    max-width: 960px;
    transition: all var(--transition-smooth);
}

.screenshot-main:hover {
    transform: scale(1.01);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--border);
}

.mini-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.mini-feature {
    text-align: center;
    padding: 24px 12px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.mini-feature:hover {
    background: rgba(0, 113, 227, 0.04);
}

.mini-feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.mini-feature h4 {
    margin-bottom: 4px;
    font-size: 0.938rem;
    font-weight: 600;
}

.mini-feature p {
    font-size: 0.813rem;
    color: var(--text-light);
}

/* --- Code Block --- */
.code-block {
    background: #0D1117;
    border-radius: var(--radius-lg);
    padding: 32px;
    overflow-x: auto;
    position: relative;
    text-align: left;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-smooth);
}

.code-block:hover {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 255, 180, 0.1), 0 0 40px rgba(0, 255, 180, 0.03);
    border-color: rgba(0, 255, 180, 0.08);
}

.code-block-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.7;
}

.code-dot.red { background: #FF5F56; }
.code-dot.yellow { background: #FFBD2E; }
.code-dot.green { background: #27C93F; }

.code-block-title {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.813rem;
    margin-left: 8px;
    font-family: -apple-system, sans-serif;
    font-weight: 500;
}

.code-block pre {
    font-family: "SF Mono", "Fira Code", "Cascadia Code", Menlo, monospace;
    font-size: 0.938rem;
    line-height: 1.75;
    color: #C9D1D9;
    white-space: pre;
    margin: 0;
}

/* Neuridion Syntax Highlighting — GitHub Dark inspired */
.code-keyword { color: #FF7B72; font-weight: 600; }
.code-string { color: #A5D6FF; }
.code-number { color: #79C0FF; }
.code-comment { color: #484F58; font-style: italic; }
.code-function { color: #D2A8FF; }
.code-module { color: #FFA657; }
.code-type { color: #79C0FF; }
.code-operator { color: #FF7B72; }
.code-bool { color: #79C0FF; }
.code-property { color: #7EE787; }

/* --- Stats Bar --- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    padding: 80px 0;
}

.stats-bar .stat:nth-child(1) { transition-delay: 0s; }
.stats-bar .stat:nth-child(2) { transition-delay: 0.1s; }
.stats-bar .stat:nth-child(3) { transition-delay: 0.2s; }
.stats-bar .stat:nth-child(4) { transition-delay: 0.3s; }

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.04em;
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-text 3s linear infinite;
}

.stat-label {
    font-size: 0.938rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* --- USP Grid --- */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.usp-grid .usp-card:nth-child(1) { transition-delay: 0s; }
.usp-grid .usp-card:nth-child(2) { transition-delay: 0.1s; }
.usp-grid .usp-card:nth-child(3) { transition-delay: 0.2s; }
.usp-grid .usp-card:nth-child(4) { transition-delay: 0.3s; }

.usp-card {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
}

.usp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 113, 227, 0.1);
}

.usp-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(108, 92, 231, 0.08));
    border-radius: var(--radius);
}

.usp-card h3 {
    margin-bottom: 6px;
    font-size: 1.125rem;
}

.usp-card p {
    font-size: 0.938rem;
    line-height: 1.6;
}

/* --- Pricing Section --- */
.pricing-section {
    text-align: center;
}

.pricing-plans {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 52px 44px;
    max-width: 460px;
    margin: 0 auto;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-smooth);
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-xl) + 2px);
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% auto;
    animation: shimmer-text 4s linear infinite;
    z-index: -1;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(0, 113, 227, 0.15), 0 8px 24px rgba(108, 92, 231, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 7px 24px;
    border-radius: 980px;
    font-weight: 700;
    font-size: 0.813rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.pricing-price {
    margin: 28px 0;
}

.pricing-old {
    font-size: 1.125rem;
    color: var(--text-light);
    text-decoration: line-through;
    display: block;
    margin-bottom: 4px;
}

.pricing-amount {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.04em;
}

.pricing-amount span {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 6px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 36px 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 14px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M10 3L4.5 8.5 2 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    background-color: var(--primary);
}

.pricing-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 20px;
}

/* --- Pricing Comparison --- */
.pricing-comparison {
    max-width: 700px;
    margin: 60px auto 0;
}

.pricing-comparison h3 {
    text-align: center;
    margin-bottom: 24px;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.comparison-list li:hover {
    padding-left: 4px;
    color: var(--text-primary);
}

.comparison-list li::before {
    content: '';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M10 3L4.5 8.5 2 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    background-color: var(--primary);
}

/* --- Feature Sections (alternating) --- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    padding: 80px 0;
}

.feature-row:nth-child(even) .feature-image {
    order: -1;
}

.feature-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
    transition: all var(--transition-smooth);
}

.feature-image:hover img {
    transform: rotate(0.5deg) scale(1.01);
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
}

.feature-text h3 {
    font-size: 1.875rem;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.feature-text p {
    margin-bottom: 20px;
    font-size: 1.063rem;
    line-height: 1.7;
}

.feature-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.06), rgba(108, 92, 231, 0.06));
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 980px;
    font-size: 0.813rem;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 113, 227, 0.1);
    transition: all var(--transition);
}

.feature-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.feature-tags {
    margin-top: 4px;
}

/* --- Module Grid --- */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.module-grid .module-card:nth-child(1) { transition-delay: 0s; }
.module-grid .module-card:nth-child(2) { transition-delay: 0.02s; }
.module-grid .module-card:nth-child(3) { transition-delay: 0.04s; }
.module-grid .module-card:nth-child(4) { transition-delay: 0.06s; }
.module-grid .module-card:nth-child(5) { transition-delay: 0.08s; }
.module-grid .module-card:nth-child(6) { transition-delay: 0.1s; }
.module-grid .module-card:nth-child(7) { transition-delay: 0.12s; }
.module-grid .module-card:nth-child(8) { transition-delay: 0.14s; }

.module-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: var(--radius);
    padding: 18px 16px;
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary);
    border-color: rgba(0, 113, 227, 0.12);
    border-left-color: var(--primary);
}

.module-card .module-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.module-card h4 {
    font-size: 0.875rem;
    margin-bottom: 3px;
    font-weight: 600;
}

.module-card p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* --- Doc Cards --- */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.doc-grid .doc-card:nth-child(1) { transition-delay: 0s; }
.doc-grid .doc-card:nth-child(2) { transition-delay: 0.08s; }
.doc-grid .doc-card:nth-child(3) { transition-delay: 0.16s; }
.doc-grid .doc-card:nth-child(4) { transition-delay: 0.24s; }
.doc-grid .doc-card:nth-child(5) { transition-delay: 0.32s; }
.doc-grid .doc-card:nth-child(6) { transition-delay: 0.4s; }

.doc-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity var(--transition);
}

.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.doc-card.language { border-top-color: #0071E3; }
.doc-card.language:hover { box-shadow: 0 16px 48px rgba(0, 113, 227, 0.12), var(--shadow-lg); }
.doc-card.application { border-top-color: #6C5CE7; }
.doc-card.application:hover { box-shadow: 0 16px 48px rgba(108, 92, 231, 0.12), var(--shadow-lg); }
.doc-card.beginner { border-top-color: #00B894; }
.doc-card.beginner:hover { box-shadow: 0 16px 48px rgba(0, 184, 148, 0.12), var(--shadow-lg); }
.doc-card.api { border-top-color: #FF6B35; }
.doc-card.api:hover { box-shadow: 0 16px 48px rgba(255, 107, 53, 0.12), var(--shadow-lg); }
.doc-card.kids { border-top-color: #FF2D55; }
.doc-card.kids:hover { box-shadow: 0 16px 48px rgba(255, 45, 85, 0.12), var(--shadow-lg); }
.doc-card.teacher { border-top-color: #00B4D8; }
.doc-card.teacher:hover { box-shadow: 0 16px 48px rgba(0, 180, 216, 0.12), var(--shadow-lg); }

.doc-card-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
}

.doc-card h3 {
    margin-bottom: 10px;
}

.doc-card p {
    font-size: 0.938rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* --- Getting Started Steps --- */
.getting-started-steps {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.getting-started-step {
    text-align: center;
    max-width: 280px;
    flex: 1;
    min-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.2);
    transition: all var(--transition-spring);
}

.getting-started-step:hover .step-number {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(0, 113, 227, 0.3);
}

.getting-started-step h4 {
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.getting-started-step p {
    font-size: 0.938rem;
    color: var(--text-secondary);
}

/* --- Example Categories --- */
.example-category {
    margin-bottom: 56px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.category-badge {
    padding: 5px 16px;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.category-badge.kids { background: linear-gradient(135deg, #FF9500, #FFB347); }
.category-badge.basics { background: linear-gradient(135deg, #0071E3, #4DA3FF); }
.category-badge.data { background: linear-gradient(135deg, #00B894, #55EFC4); }
.category-badge.text { background: linear-gradient(135deg, #00B4D8, #48CAE4); }
.category-badge.system { background: linear-gradient(135deg, #636E72, #95A5A6); }
.category-badge.graphics { background: linear-gradient(135deg, #6C5CE7, #A29BFE); }
.category-badge.ai { background: linear-gradient(135deg, #FF2D55, #FF6B81); }

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* --- Example Cards (expandable) --- */
.example-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition);
    cursor: pointer;
}

.example-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 113, 227, 0.12);
}

.example-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.example-card > p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
}

.example-code {
    background: #0D1117;
    border-radius: 10px;
    padding: 14px 18px;
    overflow-x: auto;
    max-height: 75px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.example-code::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #0D1117);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.example-card.expanded .example-code {
    max-height: 2000px;
}

.example-card.expanded .example-code::after {
    opacity: 0;
}

.example-code pre {
    font-family: "SF Mono", Menlo, monospace;
    font-size: 0.813rem;
    line-height: 1.65;
    color: #C9D1D9;
    margin: 0;
    white-space: pre;
}

.example-expand-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 10px;
    transition: color var(--transition);
    font-weight: 500;
}

.example-card:hover .example-expand-hint {
    color: var(--primary);
}

.example-expand-hint .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 0.625rem;
}

.example-card.expanded .example-expand-hint .arrow {
    transform: rotate(180deg);
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    transition: all var(--transition);
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.06), rgba(108, 92, 231, 0.06));
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
    font-size: 1.125rem;
}

.contact-item h4 {
    margin-bottom: 2px;
    font-size: 1rem;
}

.contact-item p {
    font-size: 0.938rem;
    line-height: 1.5;
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-light);
    transition: all var(--transition);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    background: var(--bg-white);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark-secondary);
    padding: 72px 0 32px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.footer-desc {
    font-size: 0.938rem;
    line-height: 1.7;
    color: var(--text-on-dark-secondary);
}

.footer h4 {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-on-dark-secondary);
    font-size: 0.938rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(2px);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.25);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: white;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
    padding-top: calc(var(--nav-height) + 72px);
    padding-bottom: 72px;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    color: white;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero-glow);
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg-white), transparent);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    margin-bottom: 14px;
    color: white;
}

.page-hero p {
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.92);
    filter: blur(4px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

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

.faq-item {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    padding-left: 8px;
}

.faq-item h4 {
    font-size: 1.125rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.faq-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Legal Pages --- */
.legal-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-bottom: 8px;
}

.legal-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.legal-block {
    margin-bottom: 36px;
}

.legal-block h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.legal-block p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-block ul {
    list-style: none;
    margin: 12px 0;
}

.legal-block ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-row:nth-child(even) .feature-image {
        order: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        color: var(--text-primary) !important;
        font-size: 1rem;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 48px);
        padding-bottom: 48px;
    }

    .hero-icon {
        width: 88px;
        height: 88px;
        border-radius: 20px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 8vw, 3rem);
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .mini-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar {
        gap: 36px;
        padding: 48px 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .usp-grid {
        grid-template-columns: 1fr;
    }

    .doc-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .code-block {
        padding: 20px;
        border-radius: var(--radius);
    }

    .pricing-card {
        padding: 40px 28px;
    }

    .pricing-amount {
        font-size: 3.5rem;
    }

    .page-hero {
        padding-top: calc(var(--nav-height) + 48px);
        padding-bottom: 48px;
    }

    .getting-started-steps {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

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

    .beta-badge {
        font-size: 0.875rem;
        padding: 8px 20px;
    }

    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .example-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card::before {
        inset: -1px;
    }
}

/* --- Print --- */
@media print {
    .navbar, .footer, .nav-hamburger {
        display: none !important;
    }

    .hero, .page-hero {
        background: white !important;
        color: black !important;
    }

    .fade-in, .fade-in-left, .fade-in-right, .scale-in {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
