/* ============================================================================
   RESET AND BASE
   ============================================================================ */

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

:root {
    /* PRIMARY — From Logo */
    --dsg-blue: #283F8C;
    --dsg-blue-light: #3A54A8;
    --dsg-blue-dark: #1E2F6A;
    --dsg-gray: #6F7073;

    /* ACCENT — Warm contrast (Gold) */
    --dsg-accent: #C9A227;
    --dsg-accent-light: #E0B83A;
    --dsg-accent-subtle: #F5EDD6;

    /* SECONDARY — Tech credibility (Teal) */
    --dsg-teal: #2A8B8B;
    --dsg-teal-light: #3AABAB;

    /* SURFACES */
    --dsg-white: #FFFFFF;
    --dsg-off-white: #FAFBFC;
    --dsg-light-gray: #F4F5F7;
    --dsg-border: #E4E7EC;
    --dsg-dark: #0F1219;
    --dsg-dark-surface: #161B26;

    /* TEXT */
    --dsg-text: #1A1F2E;
    --dsg-text-secondary: #4A5568;
    --dsg-text-muted: #6B7280;
    --dsg-text-on-dark: #E8ECF2;
    --dsg-text-on-dark-muted: #9AA3B4;

    /* GRADIENTS */
    --dsg-gradient-blue: linear-gradient(135deg, #283F8C 0%, #1E2F6A 100%);
    --dsg-gradient-dark: linear-gradient(180deg, #0F1219 0%, #161B26 100%);
    --dsg-gradient-subtle: linear-gradient(180deg, #F4F5F7 0%, #FFFFFF 100%);
    --dsg-gradient-hero: linear-gradient(135deg, #0F1219 0%, #1A2744 50%, #283F8C 100%);

    /* SHADOWS */
    --dsg-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --dsg-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --dsg-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --dsg-shadow-blue: 0 8px 32px rgba(40, 63, 140, 0.25);
    --dsg-shadow-gold: 0 8px 24px rgba(201, 162, 39, 0.3);

    /* SPACING */
    --section-padding: 100px;
    --section-padding-mobile: 60px;
    --container-max: 1200px;

    /* TRANSITIONS */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;

    /* BACKWARD COMPAT (nav uses these) */
    --primary-color: #283F8C;
    --primary-hover: #1E3070;
}

html {
    scroll-behavior: smooth;
}

/* ============================================================================
   BASE TYPOGRAPHY
   ============================================================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dsg-text);
    background-color: var(--dsg-off-white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--dsg-text);
}

a {
    color: var(--dsg-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--dsg-blue-light);
}

/* ============================================================================
   TEXT UTILITIES
   ============================================================================ */

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

.text-teal {
    color: var(--dsg-teal-light);
}

/* ============================================================================
   CONTAINER
   ============================================================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dsg-border);
    z-index: 1000;
    transition: all var(--transition-normal);
}

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

.nav-logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--dsg-text);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 30px;
    width: auto;
    display: block;
    transition: opacity var(--transition-fast);
}

.nav-logo-img:hover {
    opacity: 0.8;
}

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

.nav-menu a {
    color: var(--dsg-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color var(--transition-fast);
    padding: 8px 0;
}

.nav-menu a:hover {
    color: var(--dsg-blue);
}

.nav-cta {
    background-color: var(--dsg-blue);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px;
    font-weight: 500;
}

.nav-cta:hover {
    background-color: var(--dsg-blue-dark);
    color: white !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--dsg-text);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================================
   SECTION BACKGROUNDS
   ============================================================================ */

.section-light {
    background: var(--dsg-white);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.section-tinted {
    background: var(--dsg-gradient-subtle);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background: var(--dsg-gradient-dark);
    color: var(--dsg-text-on-dark);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--dsg-white);
}

.section-dark p {
    color: var(--dsg-text-on-dark-muted);
}

.section-dark .section-subtitle {
    color: var(--dsg-text-on-dark-muted);
}

.section-hero {
    background: var(--dsg-gradient-hero);
    color: var(--dsg-text-on-dark);
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
}

/* ============================================================================
   TEXTURE UTILITIES
   ============================================================================ */

.has-noise::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.has-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(40, 63, 140, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 63, 140, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

.has-orb::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(40, 63, 140, 0.2) 0%, transparent 60%);
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================================================
   SECTION CONTENT / HEADER
   ============================================================================ */

.section-content {
    position: relative;
    z-index: 10;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dsg-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--dsg-text);
}

.section-dark .section-title {
    color: var(--dsg-white);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--dsg-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

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

.btn-primary:hover {
    background: var(--dsg-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--dsg-shadow-gold);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dsg-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-blue {
    background: var(--dsg-blue);
    color: var(--dsg-white);
}

.btn-blue:hover {
    background: var(--dsg-blue-light);
    transform: translateY(-2px);
    box-shadow: var(--dsg-shadow-blue);
}

.btn-ghost {
    background: transparent;
    color: var(--dsg-blue);
    border: 1px solid var(--dsg-border);
}

.btn-ghost:hover {
    border-color: var(--dsg-blue);
    background: rgba(40, 63, 140, 0.05);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--dsg-accent-light);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.hero-logo {
    max-width: 700px;
    width: 100%;
    height: auto;
    margin-bottom: 32px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    display: block;
    transform: translateX(-5%);
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--dsg-white);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--dsg-text-on-dark-muted);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

/* ============================================================================
   ABOUT SECTION
   ============================================================================ */

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--dsg-text-secondary);
    margin-bottom: 24px;
}

/* ============================================================================
   PRODUCTS SECTION
   ============================================================================ */

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

.product-card {
    background: var(--dsg-white);
    border: 1px solid var(--dsg-border);
    border-radius: 12px;
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dsg-shadow-lg);
    border-color: transparent;
}

.product-icon {
    width: 48px;
    height: 48px;
    background: rgba(42, 139, 139, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--dsg-teal);
}

.product-icon svg {
    width: 28px;
    height: 28px;
}

.product-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dsg-teal);
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dsg-text);
    margin-bottom: 12px;
}

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

/* ============================================================================
   AIM / TECHNOLOGY SECTION
   ============================================================================ */

.aim-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(42, 139, 139, 0.15);
    border: 1px solid rgba(42, 139, 139, 0.3);
    color: var(--dsg-teal-light);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 20px;
}

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

.aim-feature {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 28px;
    transition: all var(--transition-normal);
}

.aim-feature:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(42, 139, 139, 0.3);
}

.aim-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(42, 139, 139, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--dsg-teal-light);
}

.aim-feature-icon svg {
    width: 24px;
    height: 24px;
}

.aim-feature h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dsg-white);
    margin-bottom: 8px;
}

.aim-feature p {
    font-size: 0.875rem;
    color: var(--dsg-text-on-dark-muted);
    line-height: 1.5;
}

/* ============================================================================
   CONTACT SECTION
   ============================================================================ */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 32px;
    height: 32px;
    color: var(--dsg-blue);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dsg-text);
}

.contact-item a {
    font-size: 20px;
    color: var(--dsg-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--dsg-blue-light);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--dsg-light-gray);
    border: 1px solid var(--dsg-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dsg-text);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dsg-blue);
    box-shadow: 0 0 0 3px rgba(40, 63, 140, 0.1);
}

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

.privacy-consent {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.privacy-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--dsg-text-secondary);
    line-height: 1.5;
}

.privacy-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    accent-color: var(--dsg-blue);
}

.privacy-link {
    color: var(--dsg-blue);
    text-decoration: underline;
}

.privacy-link:hover {
    color: var(--dsg-blue-light);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
    background: var(--dsg-dark);
    padding: 48px 0;
    text-align: center;
}

.footer p {
    color: var(--dsg-text-on-dark-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer a {
    color: var(--dsg-text-on-dark-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--dsg-white);
    text-decoration: underline;
}

.footer-aim {
    margin-top: 8px;
    font-size: 12px;
    color: var(--dsg-text-on-dark-muted);
    opacity: 0.6;
}

/* ============================================================================
   RESPONSIVE — 1024px
   ============================================================================ */

@media (max-width: 1024px) {
    .aim-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ============================================================================
   RESPONSIVE — 768px
   ============================================================================ */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition-normal);
        pointer-events: none;
        border-bottom: 1px solid var(--dsg-border);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-hero {
        padding: 120px 0 80px;
    }

    .hero-logo {
        max-width: 280px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .section-light,
    .section-tinted,
    .section-dark {
        padding: var(--section-padding-mobile) 0;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

/* ============================================================================
   RESPONSIVE — 640px
   ============================================================================ */

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .aim-features {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   RESPONSIVE — 480px
   ============================================================================ */

@media (max-width: 480px) {
    .container,
    .section-content {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-card {
        padding: 24px;
    }

    .aim-feature {
        padding: 20px;
    }
}
