/* ═══════════════════════════════════════════════════════════════
   DimZ ApS - Industrial Blueprint Theme
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════════════════════ */
:root {
    /* Core palette */
    --bg-deep: #0a0c0f;
    --bg-primary: #0d1117;
    --bg-elevated: #161b22;
    --bg-surface: #1c2128;

    /* Accent - Technical Cyan */
    --accent-primary: #00d4aa;
    --accent-secondary: #00b894;
    --accent-glow: rgba(0, 212, 170, 0.15);
    --accent-intense: rgba(0, 212, 170, 0.4);

    /* Text hierarchy */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;

    /* Grid lines */
    --grid-line: rgba(0, 212, 170, 0.06);
    --grid-line-strong: rgba(0, 212, 170, 0.12);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(0, 212, 170, 0.3);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Typography */
    --font-display: 'Archivo', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

    /* Effects */
    --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.1);
    --shadow-deep: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-display);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATED GRID BACKGROUND
   ═══════════════════════════════════════════════════════════════ */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        /* Main grid */
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        /* Larger grid overlay */
        linear-gradient(var(--grid-line-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-strong) 1px, transparent 1px);
    background-size:
        30px 30px,
        30px 30px,
        150px 150px,
        150px 150px;
    background-position:
        -1px -1px,
        -1px -1px,
        -1px -1px,
        -1px -1px;
}

.grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-glow), transparent);
}

/* Floating geometric shapes */
.geo-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    border: 1px solid var(--border-accent);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.geo-shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 5%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.geo-shape:nth-child(2) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    border-radius: 50%;
    animation-delay: -5s;
}

.geo-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-30px) rotate(5deg); opacity: 0.5; }
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    position: relative;
    z-index: 1;
    padding: var(--space-2xl) 0;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) 0;
    background: rgba(10, 12, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 12, 15, 0.95);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: var(--text-primary);
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--bg-deep);
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
}

.logo-text {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    position: relative;
}

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

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

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

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown > a::after {
    display: none;
}

.dropdown-arrow {
    border: solid var(--text-secondary);
    border-width: 0 1.5px 1.5px 0;
    padding: 2.5px;
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-top: -2px;
}

.nav-dropdown:hover .dropdown-arrow {
    border-color: var(--accent-primary);
    transform: rotate(-135deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 200px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    margin-top: var(--space-sm);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    color: var(--accent-primary);
    background: var(--bg-surface);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-accent);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-deep);
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* 3D Printer Animation */
.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.printer-frame {
    position: absolute;
    inset: 0;
    border: 2px solid var(--border-accent);
    background: var(--bg-primary);
    clip-path: polygon(0 5%, 5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%);
}

.printer-frame::before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid var(--grid-line-strong);
}

.print-bed {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 10px;
    background: linear-gradient(90deg, var(--bg-surface), var(--bg-elevated), var(--bg-surface));
    border: 1px solid var(--border-default);
}

.print-object {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    display: flex;
    flex-direction: column-reverse;
}

.print-layer {
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    animation: printLayer 4s ease-in-out infinite;
    transform-origin: center;
}

.print-layer:nth-child(1) { animation-delay: 0s; width: 100%; }
.print-layer:nth-child(2) { animation-delay: 0.15s; width: 95%; margin: 0 auto; }
.print-layer:nth-child(3) { animation-delay: 0.3s; width: 90%; margin: 0 auto; }
.print-layer:nth-child(4) { animation-delay: 0.45s; width: 85%; margin: 0 auto; }
.print-layer:nth-child(5) { animation-delay: 0.6s; width: 80%; margin: 0 auto; }
.print-layer:nth-child(6) { animation-delay: 0.75s; width: 75%; margin: 0 auto; }
.print-layer:nth-child(7) { animation-delay: 0.9s; width: 70%; margin: 0 auto; }
.print-layer:nth-child(8) { animation-delay: 1.05s; width: 65%; margin: 0 auto; }
.print-layer:nth-child(9) { animation-delay: 1.2s; width: 60%; margin: 0 auto; }
.print-layer:nth-child(10) { animation-delay: 1.35s; width: 55%; margin: 0 auto; }

@keyframes printLayer {
    0% { opacity: 0; transform: scaleY(0); }
    10% { opacity: 1; transform: scaleY(1); }
    80% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(1); }
}

.print-head {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background: var(--bg-surface);
    border: 2px solid var(--accent-primary);
    animation: moveHead 4s ease-in-out infinite;
}

.print-head::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    box-shadow: 0 5px 20px var(--accent-primary);
}

@keyframes moveHead {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    25% { transform: translateX(-70%) translateY(50px); }
    50% { transform: translateX(-30%) translateY(100px); }
    75% { transform: translateX(-60%) translateY(150px); }
}

/* Stats */
.hero-stats {
    position: absolute;
    right: 30px;
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stat-item {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 600;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */
.section-header {
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.section-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent-primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES / ABOUT SECTION
   ═══════════════════════════════════════════════════════════════ */
.services {
    background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 20%, var(--bg-primary) 80%, transparent 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: var(--space-lg);
    position: relative;
    transition: all 0.4s ease;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-left: 1px solid var(--border-accent);
    border-bottom: 1px solid var(--border-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   TEAM SECTION
   ═══════════════════════════════════════════════════════════════ */
.team {
    position: relative;
}

.team-intro {
    max-width: 700px;
    margin-bottom: var(--space-xl);
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.team-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: var(--space-lg);
    position: relative;
    transition: all 0.4s ease;
}

.team-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.4s ease;
}

.team-card:hover {
    border-color: var(--border-accent);
}

.team-card:hover::after {
    width: 100%;
}

.team-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-surface);
    -webkit-text-stroke: 1px var(--border-accent);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.team-role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.team-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   VISION / PLANS SECTION
   ═══════════════════════════════════════════════════════════════ */
.vision {
    background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 20%, var(--bg-primary) 80%, transparent 100%);
}

.vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.vision-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.vision-text p {
    margin-bottom: var(--space-md);
}

.vision-text strong {
    color: var(--text-primary);
}

.vision-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.vision-stat {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: var(--space-md);
    text-align: center;
    transition: all 0.3s ease;
}

.vision-stat:hover {
    border-color: var(--border-accent);
}

.vision-stat-value {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.vision-stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════ */
.contact {
    padding-bottom: var(--space-xl);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.contact-form {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.btn-submit {
    width: 100%;
    padding: var(--space-sm) var(--space-lg);
    margin-top: var(--space-sm);
}

/* Success message */
.form-success {
    display: none;
    text-align: center;
    padding: var(--space-xl);
}

.form-success.show {
    display: block;
}

.form-success svg {
    width: 60px;
    height: 60px;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.form-success h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.form-success p {
    color: var(--text-secondary);
}

/* Error message */
.form-error {
    display: none;
    padding: var(--space-sm);
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    margin-top: var(--space-sm);
}

.form-error.show {
    display: block;
}

.form-error p {
    color: #ff5252;
    font-size: 0.9rem;
    margin: 0;
}

.form-error a {
    color: #ff5252;
    text-decoration: underline;
}

/* Button disabled state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-column h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-xs);
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

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

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-copy a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ═══════════════════════════════════════════════════════════════
   SUBPAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Page Hero */
.page-hero {
    padding: 160px 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.page-hero-content {
    max-width: 700px;
}

.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

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

.page-hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-xl);
    align-items: start;
}

.content-main h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.content-main h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.content-main p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

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

.content-wide h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.content-wide p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: var(--space-md) 0;
}

.feature-list li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
}

.feature-list li strong {
    color: var(--text-primary);
}

/* Process List */
.process-list {
    margin: var(--space-md) 0;
    padding-left: var(--space-md);
    color: var(--text-secondary);
}

.process-list li {
    margin-bottom: var(--space-xs);
    line-height: 1.6;
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.sidebar-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: var(--space-md);
}

.sidebar-box h4 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.stats-list {
    list-style: none;
}

.stats-list li {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag-list li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
}

.sidebar-link {
    display: inline-block;
    margin-top: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-decoration: none;
}

.sidebar-link:hover {
    text-decoration: underline;
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: var(--space-xs);
}

.link-list a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-list a:hover {
    color: var(--accent-primary);
}

.check-list {
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.sidebar-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sidebar-steps {
    margin: 0;
    padding-left: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sidebar-steps li {
    margin-bottom: var(--space-xs);
}

/* CTA Box */
.cta-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
}

.cta-box h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    margin-top: 0;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.value-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: var(--space-lg);
    transition: border-color 0.3s ease;
}

.value-card:hover {
    border-color: var(--border-accent);
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

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

/* Team Section on subpage */
.team-section {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) 0;
}

/* Materials Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-md);
}

.material-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: var(--space-lg);
    transition: border-color 0.3s ease;
}

.material-card:hover {
    border-color: var(--border-accent);
}

.material-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.material-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.material-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    color: var(--accent-primary);
    text-transform: uppercase;
}

.material-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.material-props {
    margin-bottom: var(--space-md);
}

.prop {
    margin-bottom: var(--space-xs);
}

.prop-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.prop-bar {
    height: 4px;
    background: var(--bg-surface);
    border-radius: 2px;
    overflow: hidden;
}

.prop-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.material-uses {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.material-uses li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.coming-soon-icon {
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.coming-soon h2 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.coming-soon p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-md);
    line-height: 1.7;
}

/* Cases Teaser */
.cases-teaser {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.cases-teaser h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.teaser-item {
    text-align: center;
    padding: var(--space-md);
}

.teaser-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-surface);
    -webkit-text-stroke: 1px var(--border-accent);
    display: block;
    margin-bottom: var(--space-sm);
}

.teaser-item h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.teaser-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Company Info */
.company-info {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.company-info h3 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

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

.company-info a {
    color: var(--text-primary);
    text-decoration: none;
}

.company-info a:hover {
    color: var(--accent-primary);
}

/* ═══════════════════════════════════════════════════════════════
   404 ERROR PAGE
   ═══════════════════════════════════════════════════════════════ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-code {
    font-family: var(--font-mono);
    font-size: clamp(6rem, 20vw, 10rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.error-content h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.error-content > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.error-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.error-links {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.error-links p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.error-links ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.error-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ═══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .vision-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .teaser-grid {
        grid-template-columns: 1fr;
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-deep);
        border-bottom: 1px solid var(--border-subtle);
        padding: var(--space-md);
        gap: var(--space-sm);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

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

    .nav-toggle {
        display: flex;
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding: var(--space-xs) 0 0 var(--space-md);
        margin: 0;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: var(--space-xs) 0;
    }

    .dropdown-arrow {
        margin-left: auto;
    }

    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(-135deg);
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .vision-stats {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}
