:root {
    --bg-dark: #050505;
    --bg-surface: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --primary: #00f2ea;
    --primary-dim: rgba(0, 242, 234, 0.15);
    --secondary: #7000ff;
    --accent: #ff007a;
    --text-main: #ffffff;
    --text-secondary: #d0d0d0;
    --text-muted: #888;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0.5rem auto 0; font-size: 1.1rem; }

/* --- Background Glow --- */
.bg-glow {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(0, 242, 234, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(112, 0, 255, 0.04) 0%, transparent 40%);
}

/* --- Navigation --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 0; position: sticky; top: 0;
    background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(12px);
    z-index: 100; border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800;
    letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.logo img { height: 36px; width: auto; }

.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: color var(--transition); }
.nav-links a:hover { color: var(--primary); }
.nav-links .btn { font-size: 0.85rem; padding: 0.6rem 1.5rem; }

.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    transition: all var(--transition); cursor: pointer; border: none;
}

.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 242, 234, 0.25); color: #000; }

.btn-secondary { background: var(--bg-card); color: #fff; border: 1px solid var(--glass-border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #000; }

.btn-lg { padding: 1.1rem 2.8rem; font-size: 1.05rem; }

/* --- Hero Section --- */
.hero { padding: 8rem 0 5rem; text-align: center; position: relative; }

.hero-image-container {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100vw; height: 100vh; z-index: -2; opacity: 0.25;
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 65%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 65%);
}
.hero-image-container img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    padding: 0.4rem 1.2rem; border-radius: 100px; display: inline-block;
    font-size: 0.8rem; color: var(--primary); margin-bottom: 2rem;
    text-transform: uppercase; letter-spacing: 2px;
}

.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 span { display: block; }
.hero h1 .gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Stats Bar --- */
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; padding: 3rem 0; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.3rem; }

/* --- Card System --- */
.card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    padding: 2.5rem; border-radius: var(--radius);
    transition: all var(--transition); position: relative; overflow: hidden;
}
.card:hover { border-color: var(--glass-border-hover); transform: translateY(-4px); }
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, var(--primary-dim), transparent);
    opacity: 0; transition: opacity var(--transition);
}
.card:hover::before { opacity: 1; }

.card-icon { font-size: 2.2rem; margin-bottom: 1.2rem; }
.card h3 { margin-bottom: 0.8rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.cards-grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards-grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

/* --- Tag / Pill --- */
.tag {
    display: inline-block; background: var(--primary-dim); color: var(--primary);
    padding: 0.25rem 0.8rem; border-radius: 100px; font-size: 0.75rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

/* --- Process Steps --- */
.process-steps { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
.process-step {
    display: grid; grid-template-columns: 80px 1fr; gap: 2rem;
    padding: 2.5rem 0; border-bottom: 1px solid var(--glass-border);
}
.step-number {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 800;
    color: var(--primary); opacity: 0.3; line-height: 1;
}
.step-content h3 { margin-bottom: 0.5rem; }
.step-content p { color: var(--text-muted); }

/* --- Pricing Table --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.pricing-card { text-align: center; }
.pricing-card.featured { border-color: var(--primary); }
.pricing-card.featured::before { opacity: 1; }
.price { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; margin: 1.5rem 0 0.5rem; }
.price-period { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; display: block; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 2rem; }
.pricing-features li { padding: 0.5rem 0; color: var(--text-secondary); border-bottom: 1px solid var(--glass-border); font-size: 0.9rem; }
.pricing-features li::before { content: '✓ '; color: var(--primary); font-weight: 700; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-item summary {
    padding: 1.2rem 0; cursor: pointer; font-weight: 600; font-size: 1.05rem;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    color: var(--text-main); transition: color var(--transition);
}
.faq-item summary:hover { color: var(--primary); }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--primary); transition: transform var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 1.5rem; color: var(--text-muted); line-height: 1.8; }

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.05), rgba(112, 0, 255, 0.05));
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 4rem; text-align: center; margin: 4rem 0;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--text-muted); max-width: 500px; margin: 0 auto 2rem; }

/* --- Page Header (subpages) --- */
.page-header { padding: 6rem 0 3rem; text-align: center; position: relative; }
.page-header .tag { margin-bottom: 1rem; }
.page-header p { color: var(--text-muted); max-width: 600px; margin: 0.5rem auto 0; font-size: 1.1rem; }

/* --- Use Case Block --- */
.use-case { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 4rem 0; }
.use-case:nth-child(even) { direction: rtl; }
.use-case:nth-child(even) > * { direction: ltr; }
.use-case-content .tag { margin-bottom: 1rem; }
.use-case-content h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.use-case-content p { color: var(--text-muted); margin-bottom: 1.5rem; }
.use-case-visual {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2rem; min-height: 300px;
    display: flex; align-items: center; justify-content: center; font-size: 4rem;
}

/* --- Footer --- */
footer {
    padding: 4rem 0 2rem; border-top: 1px solid var(--glass-border);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer-col h5 { font-family: var(--font-heading); margin-bottom: 1rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 0.3rem 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 2rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 1.5rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.5rem; }

/* Case Study Images */
.use-case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.use-case:hover .use-case-img {
    transform: scale(1.02);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-bottom: 1rem;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.case-header-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .case-header-img {
        height: 200px;
    }
}

/* --- Mobile Nav Active --- */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(12px);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--glass-border);
        gap: 1rem;
    }
}

/* --- Gradient Text (reusable) --- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Animations --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate { animation: fadeInUp 0.6s ease forwards; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 5rem 0 3rem; }
    .cards-grid, .cards-grid-2, .cards-grid-3 { grid-template-columns: 1fr; }
    .use-case { grid-template-columns: 1fr; gap: 2rem; }
    .use-case:nth-child(even) { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .process-step { grid-template-columns: 50px 1fr; gap: 1rem; }
    .cta-section { padding: 2.5rem 1.5rem; }
    .section { padding: 4rem 0; }
}
