/* ===== CSS Variables & Reset ===== */
:root {
    --primary: #1769ff;
    --primary-dark: #0c52d8;
    --primary-light: #72a8ff;
    --primary-glow: rgba(23, 105, 255, 0.25);
    --accent: #a855f7;
    --accent-light: #c084fc;
    --bg-dark: #080f1d;
    --bg-card: #0e1726;
    --bg-card-hover: #152238;
    --bg-gradient: linear-gradient(135deg, #080f1d 0%, #0c1527 50%, #0a1120 100%);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(23, 105, 255, 0.3);
    --success: #10b981;
    --radius: 12px;
    --radius-lg: 24px;
    --radius-sm: 8px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(23, 105, 255, 0.15);
    --transition: all 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 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(23, 105, 255, 0.1);
    border: 1px solid rgba(23, 105, 255, 0.2);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(23, 105, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(23, 105, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(8, 15, 29, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(23, 105, 255, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(23, 105, 255, 0.2);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(23, 105, 255, 0.4);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 200px 0 120px;
    background: var(--bg-gradient);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
}

.shape-2 {
    bottom: -15%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent);
}

.shape-3 {
    top: 30%;
    left: 40%;
    width: 350px;
    height: 350px;
    background: #00f2fe;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.75rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--primary-light);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Mock Terminal Widget ===== */
.hero-visual {
    position: relative;
    z-index: 10;
}

.terminal-window {
    background: #060913;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.terminal-header {
    height: 42px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: monospace;
    margin-left: auto;
}

.terminal-body {
    padding: 24px;
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
    color: #a5b4fc;
    line-height: 1.7;
}

.terminal-line {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}

.terminal-line.cmd::before {
    content: "$";
    color: var(--primary-light);
    font-weight: 700;
}

.terminal-success {
    color: var(--success);
}

.terminal-highlight {
    color: var(--accent-light);
}

.terminal-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.terminal-metric {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.terminal-metric span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.terminal-metric strong {
    font-size: 1.5rem;
    color: white;
    font-family: inherit;
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card), 0 0 25px rgba(23, 105, 255, 0.1);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(23, 105, 255, 0.08);
    border: 1px solid rgba(23, 105, 255, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Approach Section ===== */
.approach {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.approach-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.approach-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.approach-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.approach-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
}

.approach-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.approach-card b {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-light);
}

.approach-card span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Process Section ===== */
.process-sec {
    padding: 100px 0;
    background: var(--bg-dark);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.process-num {
    width: 36px;
    height: 36px;
    background: rgba(23, 105, 255, 0.1);
    border: 1px solid rgba(23, 105, 255, 0.2);
    border-radius: 50%;
    color: var(--primary-light);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ===== Tech Partnership Section ===== */
.partnership {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid var(--border);
}

.partnership-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.partnership-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.partnership-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.partnership-box {
    background: linear-gradient(135deg, rgba(23, 105, 255, 0.04) 0%, rgba(168, 85, 247, 0.04) 100%);
    border: 1px solid rgba(23, 105, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-glow);
}

.partnership-box h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--primary-light);
}

.partnership-box p {
    color: var(--text-secondary) !important;
    font-size: 1.05rem !important;
    line-height: 1.8;
}

/* ===== CTA Section ===== */
.cta-sec {
    padding: 80px 0 40px;
    background: var(--bg-dark);
}

.cta-box {
    background: linear-gradient(135deg, rgba(14, 23, 38, 0.8) 0%, rgba(21, 34, 56, 0.8) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-card);
}

.cta-content {
    max-width: 600px;
}

.cta-content h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ===== Contact Section & Form ===== */
.contact {
    padding: 60px 0 120px;
    background: var(--bg-dark);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(8, 15, 29, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.form-group select option {
    background: var(--bg-dark);
    color: white;
}

.checkbox-group label {
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
}

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(23, 105, 255, 0.05);
    border: 1px solid rgba(23, 105, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.info-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== Legal Page Styling ===== */
.privacy-page {
    padding: 160px 0 100px;
    background: var(--bg-gradient);
    min-height: 80vh;
}

/* Contact page overrides — uses wider layout instead of privacy-content box */
.contact-page .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-page .section-header h1 {
    font-size: 2.75rem;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.contact-page .section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
}


.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-card);
}

.privacy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.privacy-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--primary-light);
}

.privacy-content h3 {
    font-size: 1.15rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.privacy-content p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 1rem;
}

.privacy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-content li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.privacy-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.privacy-content a:hover {
    color: white;
}

/* ===== Footer ===== */
.footer {
    background: #040810;
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 6px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-social {
    display: flex;
    gap: 16px;
}

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

.footer-social a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* ===== Mobile Navigation Drawer ===== */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #080f1d;
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        z-index: 1000;
        transition: var(--transition);
        padding: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-cta {
        display: none;
    }
    
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
}

/* ===== Responsive Layouts ===== */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approach-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .partnership-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 479px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
}
