:root {
    --bg: #08090c;
    --bg-raised: #11141a;
    --bg-panel: #15171c;
    --text: #f1f4f1;
    --muted: #a9b0aa;
    --dim: #6e7773;
    --line: rgba(255, 255, 255, 0.13);
    --ember: #ff8a2b;
    --teal: #48f1dd;
    --lime: #b8f056;
    --rose: #ff5c7c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --transition: 220ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(72, 241, 221, 0.06), transparent 22rem),
        radial-gradient(circle at 12% 28%, rgba(255, 138, 43, 0.13), transparent 20rem),
        radial-gradient(circle at 88% 18%, rgba(184, 240, 86, 0.08), transparent 18rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.62;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    max-width: 780px;
    font-size: 7.1rem;
    font-weight: 900;
}

h2 {
    max-width: 780px;
    font-size: 4rem;
    font-weight: 800;
}

h3 {
    font-size: 1.35rem;
}

p {
    color: var(--muted);
}

.container {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
}

.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 9, 12, 0.76);
    backdrop-filter: blur(18px);
}

.nav-container {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.logo-text {
    overflow: hidden;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 14px;
    text-transform: uppercase;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    border-color: rgba(72, 241, 221, 0.36);
    background: rgba(72, 241, 221, 0.08);
    color: #fff;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.menu-toggle .bar {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform var(--transition), opacity var(--transition);
}

.hero {
    position: relative;
    display: grid;
    min-height: 92vh;
    overflow: hidden;
    align-items: center;
    padding: 132px 0 92px;
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-shade {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 9, 12, 0.92), rgba(8, 9, 12, 0.55) 45%, rgba(8, 9, 12, 0.28)),
        linear-gradient(180deg, rgba(8, 9, 12, 0.18), rgba(8, 9, 12, 0.78));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 810px;
}

.eyebrow {
    color: var(--teal);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hero-subtitle {
    max-width: 660px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.35rem;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 13px 20px;
    text-align: center;
    text-transform: uppercase;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    border: 1px solid rgba(72, 241, 221, 0.72);
    background: linear-gradient(135deg, rgba(72, 241, 221, 0.92), rgba(184, 240, 86, 0.82));
    color: #06110f;
    box-shadow: 0 14px 44px rgba(72, 241, 221, 0.22);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.section {
    position: relative;
    z-index: 1;
    padding: clamp(76px, 10vw, 128px) 0;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: clamp(34px, 7vw, 88px);
    align-items: center;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.footer-copy p:not(.eyebrow) {
    max-width: 690px;
    margin-top: 20px;
    font-size: 1.08rem;
}

.info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.info-strip span {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 700;
    padding: 8px 13px;
}

.image-panel,
.wide-image {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: var(--bg-panel);
    box-shadow: var(--shadow);
}

.image-panel img,
.wide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-panel {
    min-height: 520px;
}

.image-panel img {
    position: absolute;
    inset: 0;
}

.image-panel::after,
.wide-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(72, 241, 221, 0.18);
    border-radius: inherit;
    pointer-events: none;
}

.image-panel figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(8, 9, 12, 0.72);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.96rem;
    font-weight: 700;
    padding: 14px;
    backdrop-filter: blur(14px);
}

.craft-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(255, 255, 255, 0.02);
}

.section-heading {
    max-width: 880px;
    margin-bottom: 38px;
}

.craft-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.wide-image {
    height: clamp(280px, 44vw, 540px);
}

.craft-cards,
.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card,
.principle,
.contact-card {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.card {
    min-height: 250px;
    padding: 24px;
}

.card-kicker {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(72, 241, 221, 0.12);
    color: var(--teal);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 22px;
}

.card h3,
.principle h3 {
    margin-bottom: 14px;
}

.principle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principle {
    min-height: 236px;
    padding: 24px;
}

.principle:nth-child(2) {
    border-color: rgba(255, 138, 43, 0.26);
}

.principle:nth-child(3) {
    border-color: rgba(184, 240, 86, 0.24);
}

.principle:nth-child(4) {
    border-color: rgba(255, 92, 124, 0.24);
}

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(72, 241, 221, 0.22);
    background:
        linear-gradient(135deg, rgba(72, 241, 221, 0.07), transparent 36%),
        #050608;
    padding: 86px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.75fr);
    gap: clamp(28px, 7vw, 88px);
    align-items: start;
}

.contact-card {
    padding: 28px;
}

.contact-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
}

.contact-row + .contact-row {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-label {
    color: var(--dim);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-row a,
.contact-row span,
.contact-row address {
    min-width: 0;
    color: #fff;
    font-style: normal;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.footer-bottom p {
    color: var(--dim);
    font-size: 0.9rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .fade-in,
    .fade-in.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 980px) {
    h1 {
        font-size: 5.4rem;
    }

    h2 {
        font-size: 3.2rem;
    }

    .section-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .image-panel {
        min-height: 420px;
    }

    .craft-cards,
    .principle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    h1 {
        font-size: 3.9rem;
    }

    h2 {
        font-size: 2.35rem;
    }

    h3 {
        font-size: 1.22rem;
    }

    .container {
        width: min(100% - 28px, 1180px);
    }

    .nav-container {
        min-height: 68px;
    }

    .logo-text {
        max-width: 190px;
        font-size: 0.96rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        right: 14px;
        left: 14px;
        display: grid;
        gap: 8px;
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 8px;
        background: rgba(8, 9, 12, 0.96);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity var(--transition), transform var(--transition);
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        border-color: rgba(255, 255, 255, 0.11);
        border-radius: 8px;
        padding: 12px 14px;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        min-height: 92vh;
        padding: 116px 0 70px;
    }

    .hero-shade {
        background:
            linear-gradient(180deg, rgba(8, 9, 12, 0.78), rgba(8, 9, 12, 0.72)),
            linear-gradient(90deg, rgba(8, 9, 12, 0.9), rgba(8, 9, 12, 0.44));
    }

    .hero-actions,
    .info-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .image-panel {
        min-height: 360px;
    }

    .craft-cards,
    .principle-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .principle {
        min-height: auto;
    }

    .contact-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 420px) {
    body {
        font-size: 17px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.16rem;
    }

    .logo-text {
        max-width: 150px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .image-panel {
        min-height: 300px;
    }

    .image-panel figcaption {
        font-size: 0.88rem;
        padding: 12px;
    }
}
