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

:root {
    color-scheme: light dark;

    /* Core palette (light) */
    --ink: #0b0c0f;
    --paper: #fbfaf7;
    --accent: #ff6b35;
    --muted: #5f6066;
    --border: #e3e1da;
    --shadow: rgba(0, 0, 0, 0.10);

    /* Typography */
    --font-sans: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-serif: 'Crimson Pro', Georgia, serif;

    /* Layout */
    --container: 1120px;
    --radius-1: 12px;
    --radius-2: 16px;
    --radius-3: 24px;
    --overlay-bg: rgba(255, 255, 255, 0.88);
    --overlay-border: rgba(255, 255, 255, 0.40);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-12: 6rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f4f4f2;
        --paper: #0b0c0f;
        --muted: #a7a9b1;
        --border: #242833;
        --shadow: rgba(0, 0, 0, 0.55);
        --overlay-bg: rgba(11, 12, 15, 0.60);
        --overlay-border: rgba(255, 255, 255, 0.14);
    }
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

/* Ambient Background Effect */
.ambient-layer {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(255, 107, 53, 0.08) 0%, transparent 52%),
        radial-gradient(circle at 78% 72%, rgba(255, 107, 53, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 70% 15%, rgba(255, 107, 53, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
    filter: saturate(1.05);
    animation: ambientShift 14s var(--ease-out) infinite alternate;
}

.ambient-layer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.04) 0px, rgba(0, 0, 0, 0.04) 1px, transparent 1px, transparent 6px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 1px, transparent 1px, transparent 8px);
    opacity: 0.12;
    mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
    .ambient-layer::before {
        opacity: 0.08;
        mix-blend-mode: screen;
    }
}

@keyframes ambientShift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(0, -12px, 0) scale(1.02);
    }
}

/* Container */
.container {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding:
        calc(var(--space-5) + env(safe-area-inset-top)) calc(var(--space-5) + env(safe-area-inset-right)) calc(var(--space-5) + env(safe-area-inset-bottom)) calc(var(--space-5) + env(safe-area-inset-left));
    min-height: calc(var(--vh, 1vh) * 100);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* Header */
.header {
    padding: var(--space-3) 0;
}

.wordmark {
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: var(--ink);
    position: relative;
    display: inline-block;
}

.wordmark::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .wordmark:hover::after {
        transform: scaleX(1);
    }
}

/* Hero Banner Section */
.hero-banner {
    width: 100%;
    animation: fadeIn 0.6s var(--ease-out);
}

.banner-container {
    position: relative;
    width: 100%;
    height: clamp(320px, 42vw, 560px);
    overflow: hidden;
    border-radius: var(--radius-2);
    box-shadow: 0 18px 60px var(--shadow), 0 6px 18px rgba(0, 0, 0, 0.06);
    isolation: isolate;
    background: #000;
}

.banner-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.65;
    pointer-events: none;
    z-index: 1;
}

.banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* clip-path removed */
    transform: scale(1.01);
    z-index: 0;
}

@media (hover: hover) and (pointer: fine) {
    .banner-image {
        transition: transform 0.9s var(--ease-out);
        will-change: transform;
    }

    .banner-container:hover .banner-image {
        transform: scale(1.045);
    }
}

.banner-overlay {
    position: absolute;
    top: 50%;
    left: clamp(var(--space-4), 4vw, var(--space-6));
    transform: translateY(-50%);
    padding: var(--space-5) var(--space-6);
    background: var(--overlay-bg);
    border-radius: var(--radius-1);
    border: 1px solid var(--overlay-border);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
    max-width: 460px;
    z-index: 2;
}

@supports (backdrop-filter: blur(1px)) {
    .banner-overlay {
        backdrop-filter: blur(12px);
    }
}

.banner-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.2vw, 4.25rem);
    font-weight: 600;
    line-height: 1.06;
    margin-bottom: var(--space-2);
    letter-spacing: -0.035em;
    color: var(--ink);
}

.banner-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--muted);
    font-weight: 450;
    letter-spacing: 0.01em;
}

.hero-tagline {
    margin-top: var(--space-6);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--muted);
    font-weight: 350;
    line-height: 1.85;
    max-width: 60ch;
}

/* Footer Section */
.footer {
    margin-top: auto;
    padding: var(--space-8) 0 calc(var(--space-4) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.copyright,
.credit {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 450;
}

.credit a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    position: relative;
}

.credit a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .credit a:hover {
        color: var(--accent);
    }

    .credit a:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding:
            calc(var(--space-4) + env(safe-area-inset-top)) calc(var(--space-4) + env(safe-area-inset-right)) calc(var(--space-4) + env(safe-area-inset-bottom)) calc(var(--space-4) + env(safe-area-inset-left));
        gap: var(--space-6);
    }

    .banner-container {
        height: 70vh;
        min-height: 480px;
        max-height: 700px;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        border-radius: 0;
    }

    .banner-image {
        transform: none;
    }

    .banner-container::after {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
        opacity: 1;
    }

    .banner-overlay {
        position: absolute;
        top: auto;
        bottom: var(--space-5);
        left: var(--space-4);
        right: var(--space-4);
        transform: none;
        margin-top: 0;
        width: auto;
        max-width: none;
        padding: var(--space-5);
        background: var(--overlay-bg);
        border: 1px solid var(--overlay-border);
        backdrop-filter: blur(16px);
    }

    @media (prefers-color-scheme: dark) {
        .banner-overlay {
            background: rgba(11, 12, 15, 0.85);
        }
    }

    .banner-title {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .hero-tagline {
        margin-top: var(--space-5);
    }
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}

/* Subtle Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ambient-layer {
        animation: none;
    }

    .hero-banner {
        animation: none;
    }

    * {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Content Sections */
.content-section {
    margin: var(--space-6) 0;
    padding: var(--space-5) 0;
}

.content-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--ink);
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-5);
}

.feature-item {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-1);
    padding: var(--space-4);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.feature-item p {
    color: var(--muted);
    line-height: 1.7;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

/* Selection */
::selection {
    background: var(--accent);
    color: white;
}

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}