
/* ==============================
   CODED — Design system
   ============================== */

:root {
    --black: #000000;
    --white: #ffffff;
    --charcoal: #111111;
    --surface: #181818;
    --off-white: #f5f5f3;
    --muted: #ababab;
    --accent: #d0bcff;
    --border: #2c2c2c;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid #8b5cf6;
    outline-offset: 5px;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--accent);
    color: var(--black);
}

.container {
    width: min(var(--max-width), calc(100% - 96px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    background: var(--white);
    color: var(--black);
    padding: 12px 20px;
}

.skip-link:focus {
    top: 12px;
}


/* ==============================
   Navigation
   ============================== */

.site-header {
    background: var(--black);
    border-bottom: 1px solid var(--border);
}

.navigation {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Crop the empty space surrounding
   the original square logo. */

.brand {
    position: relative;
    display: block;
    width: 120px;
    height: 76px;
    flex-shrink: 0;
    overflow: hidden;
}

.brand img {
    position: absolute;
    width: 232px;
    height: 232px;
    max-width: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

nav a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent);
}

nav .nav-contact {
    color: var(--white);
}


/* ==============================
   Hero
   ============================== */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse at 90% 30%,
        rgba(139, 92, 246, 0.09),
        transparent 55%
    );
}

.hero-content {
    position: relative;
    padding-top: 125px;
    padding-bottom: 35px;
    animation: entrance 0.8s ease both;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.accent-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

h1 {
    font-size: clamp(48px, 6.8vw, 100px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.055em;
    max-width: 1100px;
}

h1 span {
    color: var(--accent);
}

.hero-description {
    color: var(--muted);
    font-size: clamp(17px, 2vw, 21px);
    max-width: 570px;
    margin-top: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 4px;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--white);
    color: var(--black);
}

.button-primary:hover {
    background: var(--accent);
}

.button-outline {
    border-color: #555555;
    color: var(--white);
}

.button-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--border);
    margin-top: 100px;
    padding-top: 20px;
    color: #999999;
    font-size: 12px;
}


/* ==============================
   Shared sections
   ============================== */

.section {
    padding-block: 110px;
}

.section-label {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 25px;
}

h2 {
    font-size: clamp(36px, 5vw, 65px);
    line-height: 1.12;
    letter-spacing: -0.045em;
    font-weight: 600;
}

h3 {
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.section-intro {
    color: var(--muted);
    max-width: 620px;
    margin-top: 22px;
}


/* ==============================
   About
   ============================== */

.section-light {
    background: var(--off-white);
    color: var(--black);
}

.section-light .section-label {
    color: #625181;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.about-copy {
    padding-top: 38px;
}

.about-copy p {
    color: #555555;
    margin-bottom: 20px;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.about-copy .large-copy {
    color: var(--black);
    font-size: 23px;
    line-height: 1.5;
    font-weight: 500;
}


/* ==============================
   Services
   ============================== */

.section-dark {
    background: var(--charcoal);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 50px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px;
    min-height: 280px;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.service-card:hover {
    border-color: #76638e;
    transform: translateY(-5px);
}

.card-number {
    display: block;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 45px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--muted);
    font-size: 15px;
}


/* ==============================
   Products
   ============================== */

.section-products {
    background: var(--black);
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 50px;
    border: 1px solid var(--border);
}

.product-visual {
    position: relative;
    min-height: 340px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 50% 80%,
            rgba(139, 92, 246, 0.13),
            transparent 65%
        ),
        #0d0d0f;
}

.product-category {
    position: absolute;
    top: 25px;
    left: 25px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.product-wordmark {
    font-size: clamp(65px, 9vw, 115px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -6px;
}

.product-wordmark span {
    color: var(--accent);
}

.product-tagline {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 2px;
    margin-top: 12px;
}

.product-info {
    background: var(--charcoal);
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 22px;
}

.product-info h3 {
    font-size: 36px;
    margin-bottom: 18px;
}

.product-info p {
    color: var(--muted);
    margin-bottom: 15px;
}

.product-info p:last-child {
    margin-bottom: 0;
}


/* ==============================
   Contact
   ============================== */

.section-contact {
    background: var(--off-white);
    color: var(--black);
}

.section-contact .section-label {
    color: #625181;
}

.section-contact .section-intro {
    color: #555555;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-size: clamp(21px, 3.5vw, 36px);
    font-weight: 500;
    border-bottom: 1px solid #999999;
    margin-top: 35px;
    padding-bottom: 8px;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: #625181;
}


/* ==============================
   Footer
   ============================== */

.site-footer {
    background: var(--black);
    padding-block: 45px;
}

.footer-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    color: var(--white);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.site-footer p:not(.footer-brand),
.site-footer a {
    color: var(--muted);
    font-size: 12px;
}

.footer-right {
    text-align: right;
}

.footer-right a:hover {
    color: var(--accent);
}


/* ==============================
   Animation
   ============================== */

@keyframes entrance {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==============================
   Tablet
   ============================== */

@media (max-width: 900px) {

    .container {
        width: calc(100% - 64px);
    }

    .hero-content {
        padding-top: 90px;
    }

    .section {
        padding-block: 80px;
    }

    .about-grid {
        gap: 35px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .card-number {
        margin-bottom: 25px;
    }

    .product-info {
        padding: 30px;
    }
}


/* ==============================
   Mobile
   ============================== */

@media (max-width: 600px) {

    .container {
        width: calc(100% - 40px);
    }

    .navigation {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding-block: 10px 20px;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    nav a {
        font-size: 13px;
    }

    .hero-content {
        padding-top: 75px;
    }

    h1 {
        font-size: clamp(40px, 10vw, 60px);
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 1.3px;
    }

    .hero-description {
        margin-top: 25px;
    }

    .hero-actions {
        gap: 12px;
    }

    .button {
        width: 100%;
    }

    .hero-footer {
        margin-top: 65px;
        font-size: 10px;
    }

    .section {
        padding-block: 65px;
    }

    .about-grid,
    .product-card {
        grid-template-columns: 1fr;
    }

    .about-copy {
        padding-top: 0;
    }

    .about-copy .large-copy {
        font-size: 20px;
    }

    .services-grid,
    .product-card {
        margin-top: 30px;
    }

    .service-card {
        padding: 25px;
    }

    .product-visual {
        min-height: 280px;
    }

    .product-info {
        padding: 25px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        text-align: left;
    }
}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
