/* =========================================================
   Kore System — marketing site
   ========================================================= */

:root {
    --bg: #0a0a0f;
    --bg-elev: #11111a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f5f5f7;
    --text-dim: #a1a1b0;
    --text-dimmer: #6b6b7b;
    --accent: #7c3aed;
    --accent-2: #06b6d4;
    --accent-3: #ec4899;
    --gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --gradient-warm: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow-glow: 0 0 80px rgba(124, 58, 237, 0.15);
    --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

/* =========================================================
   Background orbs
   ========================================================= */
.bg-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}
.orb-1 {
    width: 500px; height: 500px;
    background: #7c3aed;
    top: -200px; left: -150px;
    opacity: 0.3;
}
.orb-2 {
    width: 400px; height: 400px;
    background: #06b6d4;
    top: 40%; right: -150px;
    opacity: 0.25;
    animation-delay: -7s;
}
.orb-3 {
    width: 450px; height: 450px;
    background: #ec4899;
    bottom: -200px; left: 30%;
    opacity: 0.18;
    animation-delay: -14s;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 18px 0;
}
.nav.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
}
.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.logo-text .logo-accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    padding: 9px 18px;
    background: var(--text);
    color: var(--bg) !important;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}
.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* =========================================================
   Sections & typography
   ========================================================= */
.section {
    position: relative;
    padding: 120px 0;
    z-index: 1;
}
.section-alt {
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.02) 50%, transparent 100%);
}
.section-head {
    max-width: 720px;
    margin: 0 auto 72px;
    text-align: center;
}
.section-head p { color: var(--text-dim); font-size: 18px; margin-top: 14px; }

h1, h2, h3, h4 {
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-weight: 800;
}
h2 { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }

.eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.lead { font-size: 18px; color: var(--text-dim); margin-top: 20px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--text);
    color: var(--bg);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}
.btn-ghost {
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
    background: var(--bg-card);
    border-color: var(--text-dim);
}
.btn-outline {
    color: var(--text);
    border: 1px solid var(--border-strong);
    justify-content: center;
    width: 100%;
}
.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--text-dim);
}
.btn-large { padding: 16px 32px; font-size: 16px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    padding: 160px 0 120px;
    z-index: 1;
}
.hero-inner { text-align: center; max-width: 900px; margin: 0 auto; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}
.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero-title {
    font-size: clamp(44px, 7.5vw, 88px);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}
.hero-sub {
    font-size: 20px;
    color: var(--text-dim);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 90px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 720px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.stat-num {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* =========================================================
   Services grid
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.service-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: inherit;
    z-index: -1;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: rgba(255,255,255,0.04);
}
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--gradient);
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 15px; }

/* =========================================================
   Why / comparison
   ========================================================= */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.check-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.check-list li {
    position: relative;
    padding-left: 32px;
    color: var(--text-dim);
}
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient);
    background-image: var(--gradient), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: cover, 60%;
    background-position: center;
    background-repeat: no-repeat;
}
.check-list strong { color: var(--text); }

.compare { display: flex; flex-direction: column; gap: 16px; }
.compare-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.compare-old {
    background: rgba(255, 255, 255, 0.02);
    opacity: 0.7;
}
.compare-old .compare-title { color: var(--text-dim); }
.compare-old ul li { text-decoration: line-through; color: var(--text-dimmer); }
.compare-new {
    background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(6,182,212,0.08) 100%);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: var(--shadow-glow);
}
.compare-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    color: var(--accent-2);
}
.compare-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.compare-card ul li { color: var(--text); font-size: 15px; }

/* =========================================================
   Process / timeline
   ========================================================= */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    z-index: 0;
}
.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}
.step:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}
.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent-2);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}
.step h3 { margin-bottom: 10px; font-size: 18px; }
.step p { color: var(--text-dim); font-size: 14px; }

/* =========================================================
   Work / portfolio
   ========================================================= */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.work-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}
.work-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}
.work-thumb {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
}
.work-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.15), transparent 60%);
}
.work-1 { background: linear-gradient(135deg, #1e293b, #7c3aed 120%); }
.work-2 { background: linear-gradient(135deg, #422006, #ec4899 120%); }
.work-3 { background: linear-gradient(135deg, #064e3b, #06b6d4 120%); }
.work-meta { padding: 24px; }
.work-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--accent-2);
    background: rgba(6, 182, 212, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.work-meta h3 { margin-bottom: 8px; }
.work-meta p { color: var(--text-dim); font-size: 14px; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.price-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    position: relative;
}
.price-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}
.price-featured {
    background: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(6,182,212,0.06) 100%);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: var(--shadow-glow);
    transform: translateY(-12px);
}
.price-featured:hover { transform: translateY(-16px); }
.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}
.price-tier {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-2);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}
.price {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}
.price span {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 500;
}
.price-desc {
    color: var(--text-dim);
    margin: 14px 0 24px;
    font-size: 14px;
}
.price-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    flex: 1;
}
.price-card ul li {
    font-size: 14px;
    color: var(--text);
    padding-left: 24px;
    position: relative;
}
.price-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
}

/* =========================================================
   CTA / Contact
   ========================================================= */
.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 72px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
}
.cta-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 60%);
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}
.cta-card h2 { margin-bottom: 12px; }
.cta-card > p {
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 17px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    position: relative;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-form label span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
}
.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 13px 16px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s, background 0.2s;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-2);
    background: rgba(255, 255, 255, 0.06);
}
.contact-form button {
    align-self: center;
    margin-top: 8px;
}
.form-status {
    text-align: center;
    font-size: 14px;
    color: var(--accent-2);
    min-height: 22px;
    margin-top: 4px;
}
.form-status.error { color: #ef4444; }
.form-status.success { color: #10b981; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 32px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 56px;
}
.footer-brand p {
    color: var(--text-dim);
    max-width: 340px;
    margin-top: 16px;
    font-size: 14px;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    justify-self: end;
}
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols h4 { margin-bottom: 8px; color: var(--text-dim); }
.footer-cols a {
    color: var(--text);
    font-size: 14px;
    transition: color 0.2s;
}
.footer-cols a:hover { color: var(--accent-2); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dimmer);
    font-size: 13px;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.3, 1);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
    .section { padding: 80px 0; }
    .hero { padding: 130px 0 80px; }
    .split { grid-template-columns: 1fr; gap: 48px; }
    .timeline { grid-template-columns: 1fr 1fr; }
    .timeline::before { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-featured { transform: none; }
    .price-featured:hover { transform: translateY(-4px); }
    .hero-stats { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .cta-card { padding: 48px 24px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-cols { justify-self: start; }
}

@media (max-width: 640px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        flex-direction: column;
        gap: 4px;
        background: rgba(10,10,15,0.95);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 16px;
        align-items: stretch;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s;
    }
    .nav-links a {
        padding: 10px 14px;
        border-radius: var(--radius);
    }
    .nav-links a:hover { background: var(--bg-card); }
    .nav-cta { text-align: center; margin-top: 6px; }
    .nav.menu-open .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-toggle { display: flex; }
    .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .timeline { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
}
