/* ===== RESET & TOKENS ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-deep: #04060f;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.08);
    --accent: #6c63ff;
    --accent-glow: rgba(108,99,255,0.35);
    --accent-2: #00d4aa;
    --accent-3: #ff6b6b;
    --text: #e8e6f0;
    --text-dim: #8a88a0;
    --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ===== CLICK SPARK ===== */
#click-spark-canvas {
    position: fixed; inset: 0;
    z-index: 9999;
    pointer-events: none;
}

/* ===== PARTICLES ===== */
#particles-canvas {
    position: fixed; inset: 0;
    z-index: 0; pointer-events: none;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 200;
    display: flex;
    gap: 2px;
    padding: 4px;
    border-radius: 100px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    animation: fadeUp 0.8s 1.8s forwards;
}

.lang-toggle button {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dim);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: 0.5px;
}

.lang-toggle button.active {
    background: rgba(108,99,255,0.2);
    color: var(--text);
}

.lang-toggle button:hover:not(.active) {
    color: var(--text);
}

/* ===== NAV ===== */
.pill-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 4px;
    padding: 6px;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    animation: fadeUp 0.8s 1.8s forwards;
}

.pill-nav a {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.pill-nav a:hover, .pill-nav a.active {
    background: rgba(108,99,255,0.15);
    color: var(--text);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(108,99,255,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0,212,170,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255,107,107,0.06) 0%, transparent 60%);
    z-index: -1;
}

/* ===== AURORA (react-bits: Aurora) ===== */
.aurora {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    mix-blend-mode: screen;
}

.aurora-blob:nth-child(1) {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #6c63ff, transparent 70%);
    top: -15%; left: 10%;
    animation: aurora-drift-1 12s ease-in-out infinite alternate;
}

.aurora-blob:nth-child(2) {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #00d4aa, transparent 70%);
    top: -10%; right: 15%;
    animation: aurora-drift-2 10s ease-in-out infinite alternate;
}

.aurora-blob:nth-child(3) {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #5227ff, transparent 70%);
    bottom: 10%; left: 30%;
    animation: aurora-drift-3 14s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(80px, 40px) scale(1.15); }
    66%  { transform: translate(-40px, 80px) scale(0.9); }
    100% { transform: translate(60px, -20px) scale(1.1); }
}

@keyframes aurora-drift-2 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-70px, 50px) scale(1.2); }
    100% { transform: translate(50px, -30px) scale(0.95); }
}

@keyframes aurora-drift-3 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(60px, -40px) scale(1.1); }
    100% { transform: translate(-50px, 60px) scale(1.05); }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(108,99,255,0.12);
    border: 1px solid rgba(108,99,255,0.25);
    font-size: 0.85rem; font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.5px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
}

/* ===== GLITCH ===== */
.hero h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
}

.glitch {
    position: relative;
    display: inline-block;
    color: #fff;
    user-select: none;
    cursor: pointer;
}

.glitch::after,
.glitch::before {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    color: #fff;
    background: var(--bg-deep);
    overflow: hidden;
    clip-path: inset(0 0 0 0);
    opacity: 0;
    transition: opacity 0.3s;
}

.glitch:hover::after {
    opacity: 1;
    left: 3px;
    text-shadow: -3px 0 rgba(108,99,255,0.8);
    animation: animate-glitch 3s infinite linear alternate-reverse;
}

.glitch:hover::before {
    opacity: 1;
    left: -3px;
    text-shadow: 3px 0 rgba(0,212,170,0.8);
    animation: animate-glitch 2s infinite linear alternate-reverse;
}

@keyframes animate-glitch {
    0% { clip-path: inset(20% 0 50% 0); }
    5% { clip-path: inset(10% 0 60% 0); }
    10% { clip-path: inset(15% 0 55% 0); }
    15% { clip-path: inset(25% 0 35% 0); }
    20% { clip-path: inset(30% 0 40% 0); }
    25% { clip-path: inset(40% 0 20% 0); }
    30% { clip-path: inset(10% 0 60% 0); }
    35% { clip-path: inset(15% 0 55% 0); }
    40% { clip-path: inset(25% 0 35% 0); }
    45% { clip-path: inset(30% 0 40% 0); }
    50% { clip-path: inset(20% 0 50% 0); }
    55% { clip-path: inset(10% 0 60% 0); }
    60% { clip-path: inset(15% 0 55% 0); }
    65% { clip-path: inset(25% 0 35% 0); }
    70% { clip-path: inset(30% 0 40% 0); }
    75% { clip-path: inset(40% 0 20% 0); }
    80% { clip-path: inset(20% 0 50% 0); }
    85% { clip-path: inset(10% 0 60% 0); }
    90% { clip-path: inset(15% 0 55% 0); }
    95% { clip-path: inset(25% 0 35% 0); }
    100% { clip-path: inset(30% 0 40% 0); }
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #6c63ff 0%, #00d4aa 50%, #6c63ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

/* ===== SHINY TEXT ===== */
.shiny-text {
    display: inline-block;
    background: linear-gradient(120deg, var(--text-dim) 0%, var(--text-dim) 35%, #ffffff 50%, var(--text-dim) 65%, var(--text-dim) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shiny-sweep 3s ease-in-out infinite;
}

@keyframes shiny-sweep {
    0% { background-position: 150% center; }
    100% { background-position: -50% center; }
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    margin-top: 24px;
    max-width: 580px;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 1s 0.8s forwards;
}

.hero-stats {
    display: flex; gap: 48px;
    margin-top: 56px;
    opacity: 0;
    animation: fadeUp 1s 1.1s forwards;
}

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

.hero-stat .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.hero-stat .label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    opacity: 0;
    animation: fadeUp 1s 1.5s forwards, float 2.5s ease-in-out infinite 1.5s;
}

.scroll-indicator svg {
    width: 28px; height: 28px;
    stroke: var(--text-dim);
    stroke-width: 2;
    fill: none;
}

/* ===== DECRYPTED TEXT ===== */
.decrypted-text { display: inline; }
.decrypted-text .char { display: inline-block; transition: opacity 0.15s; }
.decrypted-text .char.encrypted { color: var(--accent); opacity: 0.6; }

/* ===== SCROLL FLOAT ===== */
.scroll-float {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-float.in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ===== SPLIT TEXT ===== */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.split-text.in-view .char {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTIONS ===== */
section {
    position: relative;
    z-index: 1;
    padding: 120px 5vw;
    max-width: 1300px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-label .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

section h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 20px;
}

section .desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 56px;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

/* ===== SPOTLIGHT CARD + TILTED CARD (react-bits: SpotlightCard + TiltedCard) ===== */
.feature-card {
    position: relative;
    padding: 36px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px) perspective(800px);
    transform-style: preserve-3d;
    --mouse-x: 50%;
    --mouse-y: 50%;
    --spotlight-color: rgba(108, 99, 255, 0.15);
    --tilt-x: 0deg;
    --tilt-y: 0deg;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 250px at var(--mouse-x) var(--mouse-y),
        var(--spotlight-color),
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

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

.feature-card > * { position: relative; z-index: 1; }

.feature-card.visible {
    opacity: 1;
    transform: translateY(0) perspective(800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108,99,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px var(--accent-glow);
}

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

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

.feature-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-icon.purple  { background: rgba(108,99,255,0.12); }
.feature-icon.green   { background: rgba(0,212,170,0.12); }
.feature-icon.red     { background: rgba(255,107,107,0.12); }
.feature-icon.blue    { background: rgba(59,130,246,0.12); }
.feature-icon.orange  { background: rgba(249,115,22,0.12); }
.feature-icon.pink    { background: rgba(236,72,153,0.12); }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.feature-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(108,99,255,0.15);
    color: #a5a0ff;
}

/* ===== COMMANDS ===== */
.commands-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.command-item {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
    opacity: 0;
    transform: translateX(-20px);
}

.command-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.command-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108,99,255,0.15);
    transform: translateX(4px);
}

.command-voice {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--accent);
    flex: 1;
}

.command-voice::before { content: '\201C'; }
.command-voice::after { content: '\201D'; }

.command-action {
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(108,99,255,0.1);
    color: var(--text-dim);
    white-space: nowrap;
}

/* ===== SCROLL VELOCITY ===== */
.scroll-velocity-wrapper {
    overflow: hidden;
    white-space: nowrap;
    padding: 24px 0;
    position: relative;
    z-index: 1;
}

.scroll-velocity-track {
    display: inline-flex;
    gap: 40px;
    animation: scroll-velocity 30s linear infinite;
}

.scroll-velocity-track span {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(108,99,255,0.25);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes scroll-velocity {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== CTA ===== */
.cta-section {
    text-align: center;
    padding: 160px 5vw;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
}

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

.cta-buttons {
    display: flex; gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 36px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    letter-spacing: 0.3px;
    font-family: 'Inter', system-ui, sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #6c63ff, #5a52e0);
    color: white;
    box-shadow: 0 8px 30px rgba(108,99,255,0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shiny-sweep 2.5s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(108,99,255,0.5);
}

/* ===== STAR BORDER (react-bits: StarBorder) ===== */
.star-border-container {
    display: inline-block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    padding: 1px 0;
}

.star-border-container .border-gradient-bottom {
    position: absolute;
    width: 300%; height: 50%;
    opacity: 0.7;
    bottom: -12px; right: -250%;
    border-radius: 50%;
    background: radial-gradient(circle, #6c63ff, transparent 10%);
    animation: star-movement-bottom 6s linear infinite alternate;
    z-index: 0;
}

.star-border-container .border-gradient-top {
    position: absolute;
    width: 300%; height: 50%;
    opacity: 0.7;
    top: -12px; left: -250%;
    border-radius: 50%;
    background: radial-gradient(circle, #00d4aa, transparent 10%);
    animation: star-movement-top 6s linear infinite alternate;
    z-index: 0;
}

.star-border-container .star-inner {
    position: relative;
    z-index: 1;
    border-radius: 14px;
    background: rgba(10, 10, 30, 0.95);
}

.star-border-container .star-inner .btn {
    border-radius: 14px;
}

@keyframes star-movement-bottom {
    0%   { transform: translate(0%, 0%); opacity: 1; }
    100% { transform: translate(-100%, 0%); opacity: 0; }
}

@keyframes star-movement-top {
    0%   { transform: translate(0%, 0%); opacity: 1; }
    100% { transform: translate(100%, 0%); opacity: 0; }
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(108,99,255,0.08);
}

/* ===== MAGNET DIVIDER ===== */
.magnet-divider {
    position: relative;
    z-index: 1;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5vw;
}

.magnet-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    border-radius: 2px;
    opacity: 0.15;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.magnet-divider:hover .magnet-line { opacity: 0.4; }

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 40px 5vw;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 0.82rem;
    z-index: 1;
    position: relative;
}

/* ===== I18N ===== */
[data-lang] { display: none; }
[data-lang="tr"] { display: unset; }
body.lang-en [data-lang="tr"] { display: none; }
body.lang-en [data-lang="en"] { display: unset; }

/* Block-level i18n */
h2[data-lang], p[data-lang], div[data-lang], span[data-lang] { display: none; }
h2[data-lang="tr"], p[data-lang="tr"], div[data-lang="tr"], span[data-lang="tr"] { display: block; }
span[data-lang="tr"] { display: inline; }
body.lang-en h2[data-lang="tr"], body.lang-en p[data-lang="tr"], body.lang-en div[data-lang="tr"], body.lang-en span[data-lang="tr"] { display: none; }
body.lang-en h2[data-lang="en"], body.lang-en p[data-lang="en"], body.lang-en div[data-lang="en"], body.lang-en span[data-lang="en"] { display: block; }
body.lang-en span[data-lang="en"] { display: inline; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(108,99,255,0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(108,99,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(108,99,255,0); }
}

.pulse { animation: pulse-ring 2s infinite; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-stats { flex-direction: column; gap: 24px; }
    .feature-grid { grid-template-columns: 1fr; }
    section { padding: 80px 6vw; }
    .pill-nav { display: none; }
    .scroll-velocity-track span { font-size: 0.9rem; }
    .lang-toggle { top: auto; bottom: 24px; right: 24px; }
}
