/* =========================================
   1. ROOT & THEME VARIABLES
   ========================================= */
:root {
  /* Color Palette: Deep Emerald & Neon Cyan */
  --bg-core: #04110f;         /* Deep forest */
  --bg-surface: #071827;      /* Dark teal-navy */
  --bg-card: #0b2236;         /* Surface card */

  --primary: #22d3ee;         /* Neon Cyan */
  --primary-hover: #06b6d4;   /* Cyan 500 */
  --primary-glow: rgba(34, 211, 238, 0.40);

  --secondary: #a3e635;       /* Neon Lime */

  --text-white: #f8fafc;
  --text-gray: #a3b2c7;
  --text-dark: #020617;

  --border-light: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(34, 211, 238, 0.55);

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #04110f 0%, #071827 100%);
  --grad-accent: linear-gradient(to right, #22d3ee, #a3e635);
  --grad-surface: linear-gradient(
    180deg,
    rgba(11, 34, 54, 0.75) 0%,
    rgba(4, 17, 15, 1) 100%
  );

  /* Geometry & Spacing */
  --max-width: 1240px;
  --header-h: 90px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Animation Timing */
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}



/* =========================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-core);
    color: var(--text-white);
    font-family: 'Outfit', 'Inter', sans-serif;
    /* Recommended Google Font */
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-core);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.text-highlight {
    color: var(--primary);
}

.text-gradient {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-pad {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.overline {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.heading-lg {
    font-size: 3.5rem;
}

.heading-md {
    font-size: 2.5rem;
}

.heading-sm {
    font-size: 1.5rem;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 10px 30px -5px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-white);
}

.btn-secondary:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   3. HEADER
   ========================================= */
.app-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    transition: 0.4s var(--ease-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

.app-header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    height: 70px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo img {
    height: 45px;
    filter: invert(1) brightness(100);
    /* Ensure white logo */
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-white);
}

.nav-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transition: 0.3s;
}

.nav-item.active::before {
    opacity: 1;
    top: -15px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-white);
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
}

/* Abstract BG Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary);
}

.shape-2 {
    bottom: 10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    opacity: 0.2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

/* Dashboard Simulation in Hero */
.dashboard-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.dashboard-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.graph-placeholder {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.bar {
    flex: 1;
    background: var(--bg-card);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: var(--h);
    background: var(--primary);
    animation: growBar 2s ease-out forwards;
}

/* =========================================
   5. BENTO GRID SERVICES
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 24px;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Specific Spans for Grid */
.span-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.learn-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bento-card:hover .learn-more i {
    transform: translateX(5px);
    transition: 0.3s;
}

/* =========================================
   6. TRAFFIC CALCULATOR
   ========================================= */
.calculator-section {
    background: #0b1120;
}

.calc-container {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.calc-range-wrapper {
    margin-bottom: 30px;
}

.range-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
}

input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 10px var(--primary);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
}

.calc-output {
    background: var(--grad-hero);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border-light);
}

.big-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

/* =========================================
   7. SAMPLE REPORT SECTION
   ========================================= */
.report-section {
    position: relative;
}

.report-table-wrapper {
    overflow-x: auto;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.custom-table th,
.custom-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.custom-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-up {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.status-stable {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* =========================================
   8. FOOTER
   ========================================= */
.app-footer {
    background: #020617;
    border-top: 1px solid var(--border-light);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-gray);
    margin-top: 20px;
    max-width: 320px;
}

.f-title {
    color: var(--text-white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.f-links li {
    margin-bottom: 12px;
}

.f-links a {
    color: var(--text-gray);
    transition: 0.3s;
}

.f-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* =========================================
   9. LEGAL & CONTACT PAGES
   ========================================= */
.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 140px;
    padding-bottom: 80px;
}

.legal-text h1 {
    color: var(--primary);
    margin-bottom: 40px;
}

.legal-text h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: white;
}

.legal-text p {
    color: var(--text-gray);
    margin-bottom: 16px;
}

.legal-text ul {
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--text-gray);
    list-style: disc;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 80vh;
}

.contact-left {
    padding: 140px 60px 60px;
    background: var(--bg-surface);
}

.contact-right {
    padding: 140px 60px 60px;
    background: var(--bg-core);
}

.form-field {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    color: white;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
}

.form-field:focus {
    outline: none;
    border-color: var(--primary);
}

/* =========================================
   10. ANIMATIONS & RESPONSIVE
   ========================================= */
@keyframes growBar {
    from {
        height: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    /* Simplify on tablet */
    .contact-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-h);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-h));
        background: var(--bg-core);
        flex-direction: column;
        padding: 40px;
        transition: 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}