/* ========================================
   id0.vc — The Digital Architect
   ======================================== */

/* ----------------------------------------
   1. Design Tokens
   ---------------------------------------- */
:root {
    --surface:                 #131318;
    --surface-container-low:   #1b1b20;
    --surface-container-high:  #2a292f;
    --surface-container-lowest: #0e0e13;

    --primary:                 #ffb3ae;
    --primary-container:       #b83a3a;
    --on-primary-container:    #ffdfdc;

    --on-surface:              #e4e1e8;
    --on-surface-variant:      #e0bfbc;

    --font-headline: 'Bebas Neue', sans-serif;
    --font-data:     'IBM Plex Mono', monospace;
}

/* ----------------------------------------
   2. Base Reset & Typography
   ---------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-data);
    background-color: var(--surface);
    background-image:
        linear-gradient(to right, rgba(184, 58, 58, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(184, 58, 58, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--on-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--primary-container);
    color: var(--on-primary-container);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

*:focus-visible {
    outline: 2px solid var(--primary-container);
    outline-offset: 2px;
}

section[id] {
    scroll-margin-top: 100px;
}

/* ----------------------------------------
   3. Navigation
   ---------------------------------------- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(19, 19, 24, 0.70);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(88, 65, 63, 0.10);
    padding: 1.5rem 2rem;
}

@media (min-width: 769px) {
    .main-nav {
        padding: 1.5rem 6rem;
    }
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo svg {
    height: 50px;
    width: auto;
}

.nav-logo .logo-light {
    fill: #e4e1e8;
    transition: fill 0.25s ease;
}

.nav-logo .logo-red {
    stroke: #B83A3A;
    transition: stroke 0.25s ease, fill 0.25s ease;
}

.nav-logo .logo-red-fill {
    fill: #B83A3A;
    transition: fill 0.25s ease;
}

.nav-logo:hover .logo-light {
    fill: #B83A3A;
}

.nav-logo:hover .logo-red {
    stroke: #e4e1e8;
}

.nav-logo:hover .logo-red-fill {
    fill: #e4e1e8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    font-family: var(--font-data);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(228, 225, 232, 0.60);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--on-surface);
}

/* Hamburger button — hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 210;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--on-surface);
    transition: all 0.3s ease;
}

.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(5px, -5px);
}

/* Mobile menu dropdown */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface-container-low);
    border-bottom: 1px solid rgba(88, 65, 63, 0.20);
    display: flex;
    flex-direction: column;
    padding: 6.5rem 2rem 1.5rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu a {
    font-family: var(--font-data);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(228, 225, 232, 0.60);
    padding: 0.75rem 0;
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--on-surface);
}

/* ----------------------------------------
   4. Hero Section
   ---------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2rem 3rem;
    overflow: hidden;
}

@media (min-width: 769px) {
    .hero {
        padding: 8rem 6rem 3rem;
    }
}

.hero-bg-zero {
    position: absolute;
    top: 15%;
    right: 5%;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    color: rgba(184, 58, 58, 0.07);
    transform: rotate(-6deg);
}

.hero-bg-zero svg {
    height: 60vh;
    width: auto;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-status {
    font-family: var(--font-data);
    font-size: clamp(8px, 2.5vw, 12px);
    text-transform: uppercase;
    letter-spacing: clamp(0.1em, 0.8vw, 0.4em);
    color: var(--primary-container);
    margin-bottom: 3rem;
    white-space: nowrap;
}

/* Skewed red banner */
.hero-banner {
    position: relative;
    background: var(--primary-container);
    padding: 2rem 3rem;
    display: block;
    margin-bottom: 4rem;
    transform: skewY(-2deg);
}

@media (min-width: 769px) {
    .hero-banner {
        padding: 3rem 3rem;
    }
}

.hero-banner-content {
    transform: skewY(2deg);
}

.hero-banner h1 {
    font-family: var(--font-headline);
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--surface);
    text-transform: uppercase;
}

.hero-sub {
    opacity: 0.8;
}

/* Hero grid: description + aside */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 72rem;
}

@media (min-width: 769px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text .hero-domains {
    font-family: var(--font-data);
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-container);
    margin-bottom: 1.5rem;
    max-width: 36rem;
}

.hero-text p {
    font-family: var(--font-data);
    font-size: clamp(15px, 1.2vw, 19px);
    line-height: 1.7;
    color: var(--on-surface-variant);
    max-width: 36rem;
    margin-bottom: 3rem;
}

.btn-consultation {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface-container-high);
    border: 1px solid rgba(184, 58, 58, 0.30);
    color: var(--on-surface);
    padding: 1rem 2rem;
    font-family: var(--font-headline);
    font-size: clamp(0.875rem, 3.5vw, 1.5rem);
    letter-spacing: clamp(0.05em, 0.5vw, 0.15em);
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-consultation:hover {
    background: var(--primary-container);
    color: var(--on-primary-container);
}

.hero-aside {
    font-family: var(--font-data);
    font-size: 11px;
    color: rgba(228, 225, 232, 0.40);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: right;
    align-self: end;
    transition: color 0.25s ease;
    cursor: default;
}

.hero-aside:hover {
    color: var(--primary);
}

/* ----------------------------------------
   5. Trust Metrics Bar
   ---------------------------------------- */
.trust-bar {
    width: 100%;
    background: var(--surface-container-lowest);
    border-top: 1px solid rgba(88, 65, 63, 0.20);
    border-bottom: 1px solid rgba(88, 65, 63, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1rem 2rem;
    overflow: hidden;
    flex-wrap: wrap;
}

.trust-bar span {
    font-family: var(--font-data);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(228, 225, 232, 0.45);
    white-space: nowrap;
    padding: 0.25rem 0;
    transition: color 0.25s ease;
    cursor: default;
}

.trust-bar span:hover {
    color: var(--primary);
}

.trust-bar span:not(:last-child)::after {
    content: '·';
    margin: 0 1.5rem;
    color: var(--primary-container);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .trust-bar {
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .trust-bar span {
        font-size: 10px;
    }

    .trust-bar span:not(:last-child)::after {
        margin: 0 0.75rem;
    }
}

/* ----------------------------------------
   6. Services Section
   ---------------------------------------- */
.services {
    padding: 8rem 2rem;
    background: var(--surface-container-low);
}

@media (min-width: 769px) {
    .services {
        padding: 8rem 6rem;
    }
}

.services-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

@media (min-width: 769px) {
    .services-inner {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.services-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-headline {
    font-family: var(--font-headline);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 3rem;
    color: var(--on-surface);
    text-transform: uppercase;
}

.text-red {
    color: var(--primary-container);
}

.service-item {
    border-bottom: 1px solid rgba(88, 65, 63, 0.10);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-num {
    font-family: var(--font-data);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary-container);
    margin-bottom: 1rem;
}

.service-item h3 {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--on-surface);
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.service-item:hover h3 {
    color: var(--primary);
}

.service-item p {
    font-family: var(--font-data);
    font-size: 17px;
    line-height: 1.7;
    color: var(--on-surface-variant);
    margin: 0;
}

/* Engagement Panel */
.engagement-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(88, 65, 63, 0.30);
    border-radius: 0.25rem;
    background:
        radial-gradient(rgba(184, 58, 58, 0.2) 1px, transparent 1px),
        rgba(19, 19, 24, 0.40);
    background-size: 20px 20px, 100% 100%;
    box-shadow: 0 24px 48px rgba(19, 19, 24, 0.4);
    padding: 2.5rem 2rem;
    overflow: hidden;
}

@media (min-width: 769px) {
    .engagement-panel {
        padding: 3.5rem;
    }
}

/* Background zero glyph — ghosting under steps */
.panel-bg-zero {
    position: absolute;
    bottom: 8%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    color: rgba(184, 58, 58, 0.07);
    animation: ghost-zero 4s ease-in-out infinite;
}

.panel-bg-zero svg {
    height: 450px;
    width: auto;
    transform: rotate(-12deg);
}

@keyframes ghost-zero {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(184, 58, 58, 0.15)) drop-shadow(0 0 40px rgba(184, 58, 58, 0.08));
        opacity: 0.5;
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(184, 58, 58, 0.4)) drop-shadow(0 0 60px rgba(184, 58, 58, 0.15));
        opacity: 0.85;
    }
}

.panel-label {
    font-family: var(--font-data);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--primary-container);
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.panel-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Animated dashed flow line */
.panel-steps::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        var(--primary-container) 0px,
        var(--primary-container) 6px,
        transparent 6px,
        transparent 12px
    );
    opacity: 0.4;
    animation: flow-down 3s linear infinite;
}

@keyframes flow-down {
    0% { background-position: 0 0; }
    100% { background-position: 0 24px; }
}

.panel-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.panel-step:first-child {
    padding-top: 0;
}

.panel-step:last-child {
    padding-bottom: 0;
}

/* Step hover effect */
.panel-step:hover .panel-step-num {
    opacity: 0.8;
}

.panel-step:hover .panel-step-content h4 {
    color: var(--primary);
}

.panel-step-num {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-container);
    opacity: 0.4;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
    line-height: 1;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.panel-step-content {
    padding-top: 0.25rem;
}

.panel-step-content h4 {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--on-surface);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    line-height: 1;
    transition: color 0.3s ease;
}

.panel-step-content p {
    font-family: var(--font-data);
    font-size: 14px;
    line-height: 1.7;
    color: var(--on-surface-variant);
    margin: 0;
}

.panel-footer {
    font-family: var(--font-data);
    font-size: 11px;
    color: rgba(228, 225, 232, 0.40);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    justify-content: space-between;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(88, 65, 63, 0.15);
    position: relative;
    z-index: 1;
}

/* ----------------------------------------
   7. CTA Section
   ---------------------------------------- */
.cta-section {
    padding: 8rem 2rem;
}

@media (min-width: 769px) {
    .cta-section {
        padding: 8rem 6rem;
    }
}

.cta-inner {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--primary-container);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 769px) {
    .cta-inner {
        padding: 6rem;
    }
}

.cta-bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.10;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 769px) {
    .cta-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.cta-text {
    max-width: 40rem;
}

.cta-text h2 {
    font-family: var(--font-headline);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
    color: var(--on-primary-container);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.cta-text p {
    font-family: var(--font-data);
    font-size: clamp(14px, 1.1vw, 18px);
    line-height: 1.7;
    color: rgba(255, 223, 220, 0.80);
    margin: 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--on-primary-container);
    color: var(--primary-container);
    padding: 1.5rem 3rem;
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    letter-spacing: 0.15em;
    transition: transform 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-cta:hover {
    transform: scale(1.05);
    color: var(--primary-container);
}

/* ----------------------------------------
   8. Footer
   ---------------------------------------- */
footer {
    background: var(--surface-container-low);
    border-top: 1px solid rgba(88, 65, 63, 0.10);
    padding: 4rem 2rem;
}

@media (min-width: 769px) {
    footer {
        padding: 4rem 6rem;
    }
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-logo-link svg {
    height: 32px;
    width: auto;
}

.footer-logo-link .logo-light {
    fill: #e4e1e8;
    transition: fill 0.25s ease;
}

.footer-logo-link .logo-red {
    stroke: #B83A3A;
    transition: stroke 0.25s ease;
}

.footer-logo-link .logo-red-fill {
    fill: #B83A3A;
    transition: fill 0.25s ease;
}

.footer-logo-link:hover .logo-light {
    fill: #B83A3A;
}

.footer-logo-link:hover .logo-red {
    stroke: #e4e1e8;
}

.footer-logo-link:hover .logo-red-fill {
    fill: #e4e1e8;
}

.footer-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 769px) {
    .footer-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-tagline {
    font-family: var(--font-data);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(228, 225, 232, 0.40);
    max-width: 20rem;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
}

.footer-copyright {
    font-family: var(--font-data);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(228, 225, 232, 0.20);
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-top: 0.125rem;
}

.footer-links a {
    font-family: var(--font-data);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(228, 225, 232, 0.60);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

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

.footer-links svg {
    opacity: 0.7;
}

/* ----------------------------------------
   9. Responsive
   ---------------------------------------- */
@media (max-width: 768px) {
    .hero {
        justify-content: flex-start;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .hero-banner h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-aside {
        text-align: left;
    }

    .hero-bg-zero {
        right: auto;
        left: 50%;
        transform: translateX(-50%) rotate(-6deg);
    }

    .cta-text h2 {
        font-size: 3.5rem;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
        font-size: clamp(0.875rem, 3.5vw, 1.5rem);
        padding: 1.25rem 1.5rem;
        letter-spacing: 0.08em;
    }

    .footer-links {
        padding-top: 0;
    }
}
