/* ========================================
   Elevatech — Redesign
   Editorial engineering aesthetic
   ======================================== */

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

:root {
    --bg: #08090c;
    --bg-raised: #0e1015;
    --bg-dark: #060709;
    --surface: #12141a;
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(45, 212, 191, 0.15);
    --text: #e8e8ed;
    --text-secondary: #7a7d8a;
    --text-muted: #42444f;
    --accent: #2dd4bf;
    --accent-warm: #f59e0b;
    --accent-glow: rgba(45, 212, 191, 0.08);
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --max-w: 1200px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Grain overlay --- */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

/* --- Container --- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    padding: 14px 0;
    background: rgba(8, 9, 12, 0.8);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

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

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    padding: 8px 22px !important;
    border: 1px solid var(--border-accent) !important;
    border-radius: 100px;
    color: var(--accent) !important;
    font-weight: 500 !important;
    transition: all 0.3s var(--ease) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--accent-glow) !important;
    border-color: rgba(45, 212, 191, 0.3) !important;
}

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

.nav-dropdown-toggle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: color 0.3s;
}

.nav-dropdown-toggle:hover {
    color: var(--text);
}

.dropdown-chevron {
    transition: transform 0.25s var(--ease);
}

.nav-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: rgba(14, 16, 21, 0.95);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

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

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 140px 0 100px;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.hero-orb--1 {
    width: 600px;
    height: 600px;
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
}

.hero-orb--2 {
    width: 400px;
    height: 400px;
    bottom: -10%;
    left: 10%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
}

.hero-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.hero-line--1 { left: 25%; }
.hero-line--2 { left: 50%; }
.hero-line--3 { left: 75%; }

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

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.eyebrow-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.eyebrow-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6.5vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    color: var(--text);
}

.hero-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 44px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hero badge */
.hero-badge {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--border);
    animation: badge-spin 20s linear infinite;
    background: conic-gradient(from 0deg, transparent, var(--accent), transparent, var(--accent-warm), transparent);
    mask: radial-gradient(circle, transparent 65%, black 66%, black 100%);
    -webkit-mask: radial-gradient(circle, transparent 65%, black 66%, black 100%);
    opacity: 0.4;
}

@keyframes badge-spin {
    to { transform: rotate(360deg); }
}

.hero-badge span {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.35s var(--ease);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.3), 0 4px 24px rgba(45, 212, 191, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.5), 0 8px 40px rgba(45, 212, 191, 0.25);
    transform: translateY(-2px);
}

.btn-primary svg {
    transition: transform 0.3s var(--ease);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 13px 30px;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.btn-full { width: 100%; justify-content: center; }

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 140px 0;
    position: relative;
}

.section--dark {
    background: var(--bg-dark);
}

.section--dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.label-index {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.label-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.section-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Services
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 2px;
}

.service-card {
    background: var(--bg);
    padding: 44px 36px;
    position: relative;
    transition: background 0.4s var(--ease);
}

.service-card:hover {
    background: var(--bg-raised);
}

.service-number {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 28px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

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

.service-line {
    position: absolute;
    bottom: 0;
    left: 36px;
    right: 36px;
    height: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
    transition: height 0.4s var(--ease);
}

.service-card:hover .service-line {
    height: 2px;
}

/* ========================================
   Process
   ======================================== */
.process-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.process-line {
    position: absolute;
    top: 11px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.process-step {
    position: relative;
    padding-right: 40px;
}

.step-marker {
    position: relative;
    margin-bottom: 32px;
}

.marker-dot {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    position: relative;
    transition: all 0.4s var(--ease);
}

.marker-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
    transition: opacity 0.4s;
}

.process-step:hover .marker-dot {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.15);
}

.process-step:hover .marker-dot::after {
    opacity: 1;
}

.step-number {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   About
   ======================================== */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-pillars {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pillar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pillar-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 7px;
    flex-shrink: 0;
    opacity: 0.7;
}

.pillar strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.pillar span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========================================
   Contact
   ======================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.optional {
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text);
    transition: all 0.3s var(--ease);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.06);
    background: rgba(45, 212, 191, 0.02);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237a7d8a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}

.form-group select option {
    background: var(--surface);
    color: var(--text);
}

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

.form-error {
    font-size: 0.85rem;
    color: #f87171;
    text-align: center;
    margin-top: 8px;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

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

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

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

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

/* ========================================
   Animations
   ======================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.06s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.12s; }
.services-grid [data-animate]:nth-child(4) { transition-delay: 0.18s; }
.services-grid [data-animate]:nth-child(5) { transition-delay: 0.24s; }
.services-grid [data-animate]:nth-child(6) { transition-delay: 0.30s; }

.process-track [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.process-track [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.process-track [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.process-track [data-animate]:nth-child(5) { transition-delay: 0.32s; }

.hero-badge[data-animate] { transition-delay: 0.3s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero .container { flex-direction: column; align-items: flex-start; }
    .hero-badge { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-track { grid-template-columns: repeat(2, 1fr); gap: 48px; }
    .process-line { display: none; }
    .about-layout { grid-template-columns: 1fr; gap: 48px; }
    .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        background: rgba(8, 9, 12, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
    }

    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.3rem; }

    .nav-dropdown-toggle { font-size: 1.3rem; color: var(--text-secondary); }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 8px 0 0;
        opacity: 1;
        visibility: visible;
        min-width: auto;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        transform: none;
    }

    .nav-dropdown-menu li a {
        font-size: 1.1rem;
        text-align: center;
        padding: 6px 16px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

    .section { padding: 100px 0; }
    .section-header { margin-bottom: 48px; }

    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 32px 24px; }

    .process-track { grid-template-columns: 1fr; gap: 36px; }
    .process-step { padding-right: 0; }

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

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links { gap: 20px; flex-wrap: wrap; justify-content: center; }
}
