/* =========================================
   OEPL Design System — Foundations
   ========================================= */

:root {
    /* Backgrounds */
    --color-bg: #0a1628;
    --color-bg-mid: #0f2040;
    --color-bg-soft: #162847;
    --color-bg-card: rgba(255, 255, 255, 0.04);

    /* Brand */
    --color-accent: #e8a020;
    --color-accent-lt: #f5bc50;
    --color-teal: #00b8a0;
    --color-teal-lt: #00d4bc;

    /* Text */
    --color-white: #ffffff;
    --color-off-white: #f0f4f8;
    --color-muted: #8fa3bc;

    /* Borders */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-teal: rgba(0, 184, 160, 0.25);

    /* Fonts */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

/* Base Reset & Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-off-white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--color-white);
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--color-white);
}

h3 {
    font-family: var(--font-heading);
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--color-white);
}

p {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-muted);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--color-teal);
    border: 1px solid var(--color-border-teal);
    padding: 5px 14px;
    border-radius: 2px;
    margin-bottom: 22px;
}

.section-tag::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-teal);
}

/* Layout Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

section {
    padding: 120px 0;
    border-top: 1px solid var(--color-border);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 15px 30px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(232, 160, 32, 0.35);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.btn-ghost:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

/* Cards — Industry Card */
.industry-card {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 36px 28px 32px;
    text-decoration: none;
    color: var(--color-white);
    transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.industry-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-border-teal);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.industry-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--color-teal);
    transition: height 0.35s ease;
}

.industry-card:hover::after {
    height: 100%;
}

.industry-num {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--color-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Cards — Product Card */
.product-card {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 44px 40px 40px;
    text-decoration: none;
    color: var(--color-white);
    transition: background 0.35s, transform 0.35s, box-shadow 0.35s;
}

.product-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-teal);
    color: var(--color-teal);
}

.product-num {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--color-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}

nav.scrolled {
    background: rgba(10, 22, 40, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-white);
}

.nav-cta {
    background: var(--color-accent) !important;
    color: var(--color-bg) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    padding: 9px 22px;
    text-decoration: none;
}

.nav-cta:hover {
    background: var(--color-accent-lt) !important;
}

/* Mobile Nav Structure */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 24px 28px 32px;
    gap: 4px;
    z-index: 99;
}

.nav-drawer.open {
    display: flex;
}

.nav-drawer a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    transition: color 0.2s;
}

.nav-drawer a:hover {
    color: var(--color-white);
}

.nav-drawer .drawer-cta {
    margin-top: 16px;
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 14px 20px;
    border-bottom: none;
    text-align: center;
}

/* Footer */
footer {
    background: #060e1a;
    border-top: 1px solid var(--color-border);
    padding: 80px 0 40px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 22px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 11px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-muted);
}

/* Background Effects */
.hero {
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0, 184, 160, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(30, 58, 95, 0.6) 0%, transparent 60%),
        linear-gradient(160deg, #0a1628 0%, #0f2040 50%, #0a1628 100%);
    position: relative;
    padding: 180px 0 140px;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-section {
    background: linear-gradient(135deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
    position: relative;
    padding: 100px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-teal), transparent);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* Ticker */
.ticker-bar {
    background: var(--color-bg-mid);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    padding: 14px 0;
}

.ticker-inner {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 40px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--color-muted);
    text-transform: uppercase;
}

.ticker-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-teal);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Grids */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--color-border);
}

.trust-item {
    background: var(--color-bg-mid);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 64px;
}

@media (max-width: 960px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .industries-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-links,
    .nav-cta {
        display: none !important;
    }

    .nav-hamburger {
        display: flex;
    }
}