/* ========================================
   Reichmann Holdings — Stylesheet
   Modern tech-finance: electric blue + slate
   ======================================== */

:root {
    /* Color palette */
    --bg-primary: #0a0f1c;
    --bg-secondary: #0c1322;
    --bg-tertiary: #111a2e;
    --bg-elevated: #131c33;
    --bg-card: rgba(30, 41, 59, 0.35);
    --bg-card-hover: rgba(51, 65, 85, 0.45);
    --border: rgba(148, 163, 184, 0.08);
    --border-strong: rgba(148, 163, 184, 0.18);
    --border-accent: rgba(96, 165, 250, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;
    --accent: #3b82f6;
    --accent-bright: #60a5fa;
    --accent-deep: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.35);
    --accent-soft: rgba(59, 130, 246, 0.08);
    --sky: #0ea5e9;
    --sky-glow: rgba(14, 165, 233, 0.25);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;

    /* Spacing */
    --container-width: 1240px;
    --section-padding: 8rem 2rem;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

img, svg {
    max-width: 100%;
    display: block;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.3s var(--ease);
    background: rgba(10, 15, 28, 0);
    backdrop-filter: blur(0);
}

.nav.scrolled {
    background: rgba(10, 15, 28, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav-logo:hover .logo-mark {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.logo-text {
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: -0.005em;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

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

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

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

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--sky-glow) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-bright);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.eyebrow-line {
    width: 6px;
    height: 6px;
    background: var(--accent-bright);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-bright);
}

.hero-title {
    font-size: clamp(2.75rem, 7.5vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.75rem;
    letter-spacing: -0.04em;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--ease-out) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.35s; }
.title-line:nth-child(2) { animation-delay: 0.5s; }
.title-line:nth-child(3) { animation-delay: 0.65s; }

.title-accent {
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 50%, var(--sky) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2.75rem;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.9s forwards;
    letter-spacing: -0.01em;
}

.hero-cta {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 1.1s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 1.6s forwards;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--accent-bright);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

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

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

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-radius: 8px;
    transition: all 0.25s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent-bright), var(--accent));
    color: #fff;
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.15) inset,
        0 0 0 1px var(--accent),
        0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.2) inset,
        0 0 0 1px var(--accent-bright),
        0 8px 28px var(--accent-glow);
}

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

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

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-color: var(--border-strong);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(96, 165, 250, 0.08);
    border-color: var(--border-accent);
    color: var(--accent-bright);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Sections - General
   ======================================== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    position: relative;
}

.section-header.center {
    text-align: center;
}

.section-number {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    color: var(--accent-bright);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.section-number::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-bright);
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.035em;
}

.section-title .accent {
    background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
}

.section-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-bottom: 1.5rem;
}

.section-divider.centered {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.section-intro {
    color: var(--text-secondary);
    max-width: 640px;
    font-size: 1.0625rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.section-header.center .section-intro {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--bg-secondary);
    position: relative;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text .lead {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: -0.005em;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-card {
    padding: 1.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-bright);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    font-feature-settings: "tnum";
}

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

/* ========================================
   Services Section
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.service-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, var(--accent-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, rgba(96, 165, 250, 0.3) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: transparent;
}

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

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

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    color: var(--accent-bright);
    margin-bottom: 1.5rem;
    transition: all 0.3s var(--ease);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.08));
    border-color: var(--accent);
}

.service-icon svg {
    width: 22px;
    height: 22px;
}

.service-card h3 {
    font-size: 1.1875rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    letter-spacing: -0.005em;
}

/* ========================================
   Vision Section
   ======================================== */
.vision {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.vision::before,
.vision::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.25;
    pointer-events: none;
}

.vision::before {
    background: var(--accent-glow);
    top: -100px;
    right: -100px;
}

.vision::after {
    background: var(--sky-glow);
    bottom: -100px;
    left: -100px;
}

.vision-content {
    position: relative;
    z-index: 1;
}

.vision-quote {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
}

.vision-quote::before {
    content: '"';
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: 7rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
}

.vision-quote p {
    font-size: clamp(1.25rem, 2.3vw, 1.75rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.vision-quote footer {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--accent-bright);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value {
    text-align: center;
    padding: 1.75rem 1rem;
}

.value-number {
    font-family: var(--font-mono);
    color: var(--accent-bright);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-weight: 500;
}

.value h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.value p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.55;
    letter-spacing: -0.005em;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.contact-lead {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.contact-value {
    font-size: 1.0625rem;
    color: var(--text-primary);
    transition: color 0.25s var(--ease);
    letter-spacing: -0.01em;
    font-weight: 500;
}

a.contact-value:hover {
    color: var(--accent-bright);
}

/* Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.25rem;
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.form-group {
    margin-bottom: 1.125rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    background: rgba(10, 15, 28, 0.5);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all 0.2s var(--ease);
    outline: none;
    letter-spacing: -0.005em;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(148, 163, 184, 0.28);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(10, 15, 28, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

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

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

.form-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
    min-height: 1.5em;
    letter-spacing: -0.005em;
}

.form-note.success {
    color: var(--accent-bright);
}

.form-note.error {
    color: #f87171;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 4.5rem 0 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.9375rem;
    letter-spacing: -0.005em;
    max-width: 280px;
}

.footer-brand .nav-logo {
    margin-bottom: 0;
}

.footer-links h5 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a,
.footer-links li {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color 0.25s var(--ease);
    letter-spacing: -0.005em;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8125rem;
    letter-spacing: -0.005em;
}

.footer-tagline {
    font-family: var(--font-mono);
    color: var(--accent-bright);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ========================================
   Scroll animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 6rem 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 5rem 1.25rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .nav-container {
        padding: 0 1.25rem;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 15, 28, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform 0.35s var(--ease);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .logo-text {
        display: none;
    }

    .hero {
        padding: 5rem 1.25rem 3rem;
        min-height: 88vh;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .hero-scroll {
        display: none;
    }

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

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

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

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

    .contact-form {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .vision-quote {
        padding: 1.5rem 0;
    }
}

/* ========================================
   Light theme
   ======================================== */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-elevated: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);
    --border-accent: rgba(37, 99, 235, 0.35);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --accent: #2563eb;
    --accent-bright: #3b82f6;
    --accent-deep: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --accent-soft: rgba(59, 130, 246, 0.08);
    --sky: #0284c7;
    --sky-glow: rgba(14, 165, 233, 0.18);
}

/* Light theme component overrides */
[data-theme="light"] .nav.scrolled {
    background: rgba(248, 250, 252, 0.82);
    border-bottom-color: var(--border);
}

[data-theme="light"] .grid-overlay {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .gradient-orb {
    opacity: 0.4;
}

[data-theme="light"] .hero-eyebrow {
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent);
}

[data-theme="light"] .btn-ghost {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

[data-theme="light"] .btn-ghost:hover {
    background: rgba(59, 130, 246, 0.06);
    color: var(--accent);
    border-color: var(--border-accent);
}

[data-theme="light"] .stat-card,
[data-theme="light"] .service-card,
[data-theme="light"] .contact-form {
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .stat-card:hover,
[data-theme="light"] .service-card:hover {
    background: var(--bg-card-hover);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="light"] .form-group select option {
    background: #ffffff;
}

[data-theme="light"] .nav-toggle span {
    background: var(--text-primary);
}

[data-theme="light"] .footer-tagline,
[data-theme="light"] .footer-links h5 {
    color: var(--text-primary);
}

/* ========================================
   Theme toggle button
   ======================================== */
.theme-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
    position: relative;
    overflow: hidden;
    margin-left: 1.25rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--accent-soft);
    border-color: var(--border-accent);
    color: var(--accent-bright);
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.95);
}

.theme-icon {
    width: 17px;
    height: 17px;
    position: absolute;
    transition: opacity 0.35s var(--ease), transform 0.5s var(--ease-out);
}

/* Dark mode: show sun (action: switch to light) */
.icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.4);
}

/* Light mode: show moon (action: switch to dark) */
[data-theme="light"] .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.4);
}

[data-theme="light"] .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ========================================
   View Transitions API — circle reveal
   ======================================== */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 9999;
}

/* When transitioning to dark, OLD (light) sits on top so we can watch it shrink into the button */
html.to-dark::view-transition-old(root) {
    z-index: 9999;
}

html.to-dark::view-transition-new(root) {
    z-index: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
}

/* Responsive — theme toggle + light-mode mobile menu */
@media (max-width: 768px) {
    .theme-toggle {
        margin-left: auto;
        margin-right: 0.75rem;
    }

    [data-theme="light"] .nav-links {
        background: rgba(248, 250, 252, 0.97);
    }
}
