/* SpeedNode – clean dark theme */
:root {
    --bg: #0b0f14;
    --bg-card: #12181f;
    --bg-elevated: #1a222c;
    --text: #e8eef4;
    --text-muted: #9aa7b5;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #243041;
    --success: #22c55e;
    --radius: 12px;
    --max-width: 1100px;
}

* {
    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;
    min-height: 100vh;
}

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

a:hover {
    color: var(--accent-hover);
}

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

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.logo span {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.btn-nav {
    background: var(--accent) !important;
    color: white !important;
    padding: 0.45rem 1rem;
    border-radius: 8px;
}

.btn-nav:hover {
    background: var(--accent-hover) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
}

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

.btn-secondary:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* Hero */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, #0f1620 0%, var(--bg) 100%);
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    max-width: 720px;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 1.75rem;
}

.hero-points {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
    max-width: 640px;
}

.point {
    display: flex;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.check {
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-intro {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 560px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.price-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.price-card li {
    padding: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
}

.price-card li:last-child {
    border-bottom: none;
}

/* Why Us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.why-card h3 {
    margin-bottom: 0.4rem;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Contact */
.contact-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contact-form {
    max-width: 480px;
    display: grid;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

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

.flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.flash.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.flash.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

/* Footer */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
}

.footer-brand {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

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

.footer-links {
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 380px;
}

.login-card h1 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.login-card .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.login-card .error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Legal pages */
.legal-content {
    max-width: 720px;
    padding: 3rem 0 4rem;
}

.legal-content h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal-content .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.2rem;
    margin: 1.75rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
    .nav-links a:not(.btn-nav) {
        display: none;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }
}
