:root {
    --bg: #050510;
    --bg-surface: #0b0b18;
    --bg-surface-soft: #101020;
    --accent: #8b5cf6;
    --accent-strong: #a855f7;
    --text: #f9fafb;
    --text-soft: #9ca3af;
    --border-subtle: #1f2933;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.22s ease-out;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(circle at top, #111827 0, var(--bg) 45%, #020617 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* Layout container */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header / Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(5, 5, 16, 0.96), rgba(5, 5, 16, 0.85), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: radial-gradient(circle at 20% 0, #e5e7eb, #8b5cf6 40%, #4c1d95 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 12px 30px rgba(88, 28, 135, 0.7);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-soft);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    color: var(--text-soft);
    text-decoration: none;
    padding: 0.35rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(to right, var(--accent), var(--accent-strong));
    transition: width var(--transition-med);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero (top section on home) */
.hero {
    padding: 3.5rem 0 2.5rem;
}

.hero-inner {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.12), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--accent-strong);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    margin: 1.1rem 0 0.6rem;
    font-size: clamp(2.4rem, 4vw, 3rem);
    letter-spacing: 0.02em;
}

.hero-text {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.98rem;
    max-width: 32rem;
}

.hero-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* Buttons */
.btn {
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: background var(--transition-med), color var(--transition-med), border-color var(--transition-med), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #f9fafb;
    box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 55px rgba(88, 28, 135, 0.9);
}

.btn.secondary {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.5);
    color: var(--text);
}

.btn.secondary:hover {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 1);
}

.btn.ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--text-soft);
}

.btn.ghost:hover {
    border-color: var(--accent);
    color: var(--text);
}

.btn-disabled {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
    color: rgba(148, 163, 184, 0.7);
    cursor: not-allowed;
}

.section {
    padding: 2.8rem 0 2.8rem;
}

.about {
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 55%);
}

.about .section-title {
    font-size: 1.5rem;
    margin: 0 0 0.4rem;
}

.about .section-description {
    margin: 0 0 1.8rem;
    color: var(--text-soft);
    font-size: 0.96rem;
    max-width: 36rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.feature-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-subtle);
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, rgba(248, 250, 252, 0.9), rgba(139, 92, 246, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: #4c1d95;
}

.feature-title {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
}

.feature-text {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.88rem;
    color: var(--accent-strong);
    text-decoration: none;
}

.link-more:hover {
    text-decoration: underline;
}

.scripts {
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 55%);
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem;
}

.script-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.script-header {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: flex-start;
}

.script-title {
    margin: 0;
    font-size: 0.98rem;
}

.script-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--text-soft);
}

.script-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.script-status {
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.status-available {
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
    background: rgba(22, 163, 74, 0.12);
}

.status-soon {
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
    background: rgba(127, 29, 29, 0.18);
}

.script-description {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.script-btn {
    margin-top: 0.4rem;
    align-self: flex-start;
}

.request {
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.9), rgba(5, 5, 16, 1));
}

.request-form {
    margin-top: 1.2rem;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-subtle);
}

.form-row {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.8rem;
}

label {
    font-size: 0.8rem;
    color: var(--text-soft);
}

input,
textarea {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    padding: 0.45rem 0.6rem;
    font-size: 0.88rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.4);
}

textarea {
    resize: vertical;
}

.contact {
    background: radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9), rgba(5, 5, 16, 1));
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.contact-item h3 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
}

.contact-item p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1.1rem 0 1.4rem;
    background: rgba(5, 5, 16, 0.98);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.footer-nav {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.8rem;
}

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

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

@media (max-width: 640px) {
    .nav {
        display: none;
    }

    .hero {
        padding-top: 2.4rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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