/* ============================================
   MUHTAR LANDING PAGE — Styles & Animations
   ============================================ */

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

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1628;
    --bg-card: #131b30;
    --bg-card-hover: #182240;
    --cyan: #3dffc0;
    --cyan-dim: #2bb88a;
    --cyan-glow: rgba(61, 255, 192, 0.15);
    --cyan-glow-strong: rgba(61, 255, 192, 0.3);
    --teal: #20e3b2;
    --blue: #4a9eff;
    --purple: #8b5cf6;
    --text-primary: #e8edf5;
    --text-secondary: #8892a8;
    --text-muted: #5a6480;
    --border: rgba(61, 255, 192, 0.1);
    --border-hover: rgba(61, 255, 192, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Particles Canvas --- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 1001;
}

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

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

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--cyan);
    color: var(--bg-primary) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

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

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--cyan-glow-strong);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-glow {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

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

/* Icon with animated rings */
.hero-icon-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 40px;
}

.hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-8px); }
}

.icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid var(--cyan);
    transform: translate(-50%, -50%);
}

.icon-ring-1 {
    width: 120px;
    height: 120px;
    opacity: 0.3;
    animation: ringPulse 3s ease-in-out infinite;
}

.icon-ring-2 {
    width: 150px;
    height: 150px;
    opacity: 0.15;
    animation: ringPulse 3s ease-in-out infinite 0.5s;
}

.icon-ring-3 {
    width: 180px;
    height: 180px;
    opacity: 0.08;
    animation: ringPulse 3s ease-in-out infinite 1s;
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.1; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.3s;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 50%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.5s;
}

.hero-description {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.7s;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.9s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: var(--cyan);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--cyan-glow-strong);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

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

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow: 0 4px 20px var(--cyan-glow);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 1.1s;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cyan);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* --- Shared Section Styles --- */
.section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan);
    background: var(--cyan-glow);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 16px auto 0;
}

/* --- Scroll Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Problem Section --- */
.problem-section {
    background: var(--bg-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.problem-icon {
    width: 48px;
    height: 48px;
    color: var(--cyan);
    margin-bottom: 20px;
}

.problem-icon svg {
    width: 100%;
    height: 100%;
}

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

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Features Section --- */

/* Feature Hero (AI Modification) */
.feature-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    margin-bottom: 48px;
    overflow: hidden;
    position: relative;
}

.feature-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    pointer-events: none;
}

.footnote-ref {
    color: var(--cyan);
    cursor: default;
}

.footnote {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

.feature-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg-primary);
    background: var(--cyan);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.feature-hero-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 16px;
}

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

/* Code Example */
.feature-example {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.example-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.example-title {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.example-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.example-line {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}

.example-line .label {
    color: var(--text-muted);
    min-width: 60px;
}

.example-line .code {
    color: var(--cyan);
}

.prompt-text {
    color: var(--teal) !important;
    font-style: italic;
}

.example-result {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    line-height: 1.6;
}

.result-arrow {
    color: var(--cyan);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.example-result code {
    background: rgba(61, 255, 192, 0.1);
    color: var(--cyan);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

/* AI Visual */
.feature-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-visual {
    position: relative;
    width: 280px;
    height: 280px;
}

.ai-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ai-line {
    stroke: var(--cyan);
    stroke-width: 1;
    opacity: 0.2;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 2s ease forwards;
}

.ai-line:nth-child(1) { animation-delay: 0.5s; }
.ai-line:nth-child(2) { animation-delay: 0.7s; }
.ai-line:nth-child(3) { animation-delay: 0.9s; }
.ai-line:nth-child(4) { animation-delay: 1.1s; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.ai-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

.ai-node svg {
    width: 28px;
    height: 28px;
    color: var(--cyan);
}

.ai-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.ai-center svg {
    width: 48px;
    height: 48px;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { filter: drop-shadow(0 0 4px var(--cyan-glow)); }
    50% { filter: drop-shadow(0 0 16px var(--cyan-glow-strong)); }
}

.ai-center span { color: var(--cyan); font-size: 0.8rem; }

.ai-tl { top: 5%; left: 5%; }
.ai-tr { top: 5%; right: 5%; }
.ai-bl { bottom: 5%; left: 5%; }
.ai-br { bottom: 5%; right: 5%; }

.ai-tl::after, .ai-tr::after, .ai-bl::after, .ai-br::after {
    content: attr(data-label);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ai-node:not(.ai-center) {
    animation: nodeFloat 3s ease-in-out infinite;
}

.ai-tl { animation-delay: 0s; }
.ai-tr { animation-delay: 0.5s; }
.ai-bl { animation-delay: 1s; }
.ai-br { animation-delay: 1.5s; }

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

/* Modes Grid */
.modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.mode-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.mode-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.mode-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mode-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-icon svg {
    width: 22px;
    height: 22px;
}

.mode-icon.review {
    background: rgba(61, 255, 192, 0.1);
    color: var(--cyan);
}

.mode-icon.auto {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.mode-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cyan);
    background: var(--cyan-glow);
    padding: 3px 8px;
    border-radius: 4px;
}

.mode-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mode-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--cyan);
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* --- How It Works Section --- */
.how-section {
    background: var(--bg-secondary);
}

.steps {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--bg-card);
    -webkit-text-stroke: 1px var(--cyan-dim);
    font-family: var(--font-mono);
    line-height: 1;
    min-width: 70px;
    text-align: center;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.step-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* App Launch Button */
.app-launch-btn {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.launch-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 20px var(--cyan-glow-strong));
}

.launch-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid var(--cyan);
    border-radius: 24px;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
    animation: launchRipple 2s ease-out infinite;
}

.launch-ripple-2 {
    animation-delay: 0.7s;
}

@keyframes launchRipple {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* Terminal */
.terminal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: 100%;
    max-width: 340px;
}

.terminal-header {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}

.terminal-body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.terminal-body .prompt {
    color: var(--cyan);
    margin-right: 8px;
}

.terminal-body .output {
    color: var(--text-muted);
}

.terminal-body .output.success {
    color: var(--cyan);
}

/* Rule Card Demo */
.rule-card-demo {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    width: 100%;
    max-width: 340px;
}

.rule-row {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.rule-row:last-child { margin-bottom: 0; }

.rule-label {
    background: var(--cyan-glow);
    color: var(--cyan);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.rule-value {
    color: var(--text-secondary);
}

.typing {
    border-right: 2px solid var(--cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Diff Demo */
.diff-demo {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    width: 100%;
    max-width: 340px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 2;
}

.diff-line {
    padding: 0 8px;
    border-radius: 4px;
}

.diff-line.removed {
    background: rgba(255, 85, 85, 0.1);
    color: #ff6b6b;
}

.diff-line.added {
    background: rgba(61, 255, 192, 0.08);
    color: var(--cyan);
}

/* --- Comparison Section --- */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 640px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-card);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table th.highlight {
    color: var(--cyan);
    background: rgba(61, 255, 192, 0.06);
}

.comparison-table td.highlight {
    background: rgba(61, 255, 192, 0.03);
}

.comparison-table tbody tr {
    transition: background 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.check { color: var(--cyan); font-weight: 700; font-size: 1.1rem; }
.cross { color: var(--text-muted); font-size: 1.1rem; }
.partial { color: var(--text-muted); font-size: 0.8rem; font-style: italic; }
.price { color: #ff6b6b; font-weight: 600; font-size: 0.85rem; }

.ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* --- Architecture Section --- */
.arch-section {
    background: var(--bg-secondary);
}

.arch-diagram {
    max-width: 800px;
    margin: 0 auto 64px;
}

.arch-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.arch-node {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 140px;
}

.arch-node:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.arch-icon {
    width: 40px;
    height: 40px;
    color: var(--cyan);
}

.arch-icon svg, .arch-icon img {
    width: 100%;
    height: 100%;
}

.arch-icon img {
    border-radius: 8px;
}

.arch-node span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.arch-node small {
    color: var(--text-muted);
    font-weight: 400;
}

.muhtar-node {
    border-color: var(--cyan-dim);
    background: rgba(61, 255, 192, 0.04);
}

.arch-arrow {
    color: var(--cyan-dim);
    flex-shrink: 0;
    width: 60px;
}

.arch-arrow svg {
    width: 100%;
    height: 20px;
}

.arch-connector {
    width: 2px;
    height: 48px;
    background: linear-gradient(to bottom, var(--cyan-dim), transparent);
    margin: 0 auto;
}

.arch-bottom {
    gap: 32px;
}

.ai-engine-node {
    border-color: var(--purple);
    background: rgba(139, 92, 246, 0.04);
}

.ai-engine-node .arch-icon { color: var(--purple); }

.arch-context-tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.context-tag {
    display: inline-block;
    background: var(--cyan-glow);
    color: var(--cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.review-node {
    border-color: var(--blue);
    background: rgba(74, 158, 255, 0.04);
}

.review-node .arch-icon { color: var(--blue); }

/* Tech Stack */
.tech-stack {
    text-align: center;
}

.tech-stack h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tech-tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.tech-tag:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* --- Impact Section --- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.impact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.impact-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.impact-icon {
    width: 48px;
    height: 48px;
    color: var(--cyan);
    margin-bottom: 20px;
}

.impact-icon svg {
    width: 100%;
    height: 100%;
}

.impact-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.impact-card ul {
    list-style: none;
}

.impact-card li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.impact-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan);
}

/* --- Team Section --- */
.team-section {
    background: var(--bg-secondary);
}

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

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-glow), rgba(139, 92, 246, 0.15));
    border: 1px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cyan);
}

.team-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.team-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    word-break: break-all;
}

a.team-link:hover {
    color: var(--cyan);
}

.team-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-launch-btn {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 28px;
}

.cta-launch-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    filter: drop-shadow(0 4px 24px var(--cyan-glow-strong));
    animation: ctaPress 2.5s ease-in-out infinite;
}

@keyframes ctaPress {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    40% { transform: translate(-50%, -50%) scale(0.92); }
    55% { transform: translate(-50%, -50%) scale(1.02); }
    70% { transform: translate(-50%, -50%) scale(1); }
}

.cta-tap-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    border: 2px solid var(--cyan);
    border-radius: 22px;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: ctaRipple 2.5s ease-out infinite;
}

.cta-tap-ring-2 {
    animation-delay: 0.3s;
}

@keyframes ctaRipple {
    0%, 35% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
    40% { opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.cta-cursor {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    z-index: 3;
    animation: ctaCursor 2.5s ease-in-out infinite;
}

.cta-cursor svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

@keyframes ctaCursor {
    0%, 30% { transform: translate(4px, 4px); }
    38% { transform: translate(0, 0); }
    50% { transform: translate(0, 0); }
    65%, 100% { transform: translate(4px, 4px); }
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.footer-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-brand-name {
    font-weight: 700;
    font-size: 1rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Base Keyframes --- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

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

    .feature-hero {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .feature-hero-visual {
        order: -1;
    }

    .arch-row {
        gap: 12px;
    }

    .arch-arrow {
        width: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 999;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-links.open {
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .problem-grid,
    .impact-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .section {
        padding: 80px 0;
    }

    .step {
        grid-template-columns: auto 1fr;
        gap: 16px;
    }

    .step-visual {
        grid-column: 1 / -1;
    }

    .step-number {
        font-size: 2rem;
        min-width: 50px;
    }

    .arch-row {
        flex-direction: column;
        gap: 16px;
    }

    .arch-arrow {
        transform: rotate(90deg);
        width: 40px;
    }

    .arch-bottom {
        gap: 20px;
    }

    .arch-context-tags {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-icon-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 28px;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
    }

    .icon-ring-1 { width: 100px; height: 100px; }
    .icon-ring-2 { width: 120px; height: 120px; }
    .icon-ring-3 { width: 140px; height: 140px; }

    .scroll-indicator {
        display: none;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 14px;
        font-size: 0.8rem;
    }
}

/* --- Contact Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 440px;
    width: 90%;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

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

.modal h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* --- Contact Form --- */
.form-group {
    position: relative;
    margin-bottom: 16px;
}

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

.required {
    color: #ff6b6b;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-group input.invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.form-error {
    display: none;
    font-size: 0.8rem;
    color: #ff6b6b;
    margin-top: 4px;
}

.form-group input.invalid ~ .form-error {
    display: block;
}

.form-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    justify-content: center;
}

.form-success {
    display: none;
    text-align: center;
    color: var(--cyan);
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 0;
}

.form-success.visible {
    display: block;
}

/* --- CTA Inline Form --- */
.cta-form {
    margin-top: 32px;
    width: 100%;
    max-width: 680px;
}

.cta-form-fields {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cta-form-fields .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.cta-form-fields .form-submit {
    width: auto;
    white-space: nowrap;
    margin-top: 0;
    flex-shrink: 0;
}

.cta-section .form-success {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .cta-form-fields {
        flex-direction: column;
    }

    .cta-form-fields .form-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .feature-hero {
        padding: 24px;
    }

    .ai-visual {
        width: 220px;
        height: 220px;
    }

    .cta-code {
        font-size: 0.85rem;
        padding: 12px 16px;
    }
}
