@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@500&display=swap");

/* nosterCodes homepage — portfolio layout on the nosterCodes palette */

:root {
    --ink: #f8fafc;
    --muted: #a8b3c7;
    --soft: #d9e2f1;
    --paper: #07111f;
    --paper-elevated: #0b1627;
    --panel: #111c2e;
    --panel-hover: #162742;
    --line: #22344f;
    --line-strong: #315174;
    --accent: #2563eb;
    --accent-strong: #60a5fa;
    --accent-alt: #22c55e;
    --accent-alt-soft: rgba(34, 197, 94, 0.14);
    --deep: #020617;
    --shadow: rgba(2, 6, 23, 0.48);
    --blue-shadow: rgba(37, 99, 235, 0.26);
    --container: 1180px;
    --display: "Space Grotesk", Archivo, Arial, sans-serif;
    --body: Archivo, Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    background: var(--deep);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(37, 99, 235, 0.16), transparent 60%),
        var(--deep);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

/* Ticker */

.ticker {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    gap: 48px;
    padding: 8px 0;
    animation: ticker 48s linear infinite;
}

.ticker-track span::before {
    content: "●";
    margin-right: 10px;
    color: var(--accent-alt);
}

@keyframes ticker {
    to { transform: translateX(-50%); }
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(14px);
    transition: border-color 0.2s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 64px;
}

.brand-mark {
    height: 34px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--ink);
    background: var(--panel);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: none;
    color: var(--ink);
    padding: 6px 10px;
    font: inherit;
    cursor: pointer;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 10px 30px var(--blue-shadow);
    transition: transform 0.15s, background 0.15s;
}

.button:hover {
    transform: translateY(-1px);
    background: #1d4ed8;
}

.button-ghost {
    border-color: var(--line-strong);
    background: transparent;
    box-shadow: none;
}

.button-ghost:hover {
    background: var(--panel);
}

.button-small {
    padding: 8px 14px;
    font-size: 0.82rem;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--soft);
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
}

.icon-button:hover {
    background: var(--panel);
}

/* Shared section bits */

.section {
    padding: 96px 0 0;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--accent-strong);
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--display);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.section-lede {
    max-width: 640px;
    margin-top: 12px;
    color: var(--muted);
}

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge-open {
    border-color: rgba(34, 197, 94, 0.5);
    background: var(--accent-alt-soft);
    color: #86efac;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.tag {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--soft);
    font-size: 0.76rem;
    font-weight: 600;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
    padding-top: 56px;
}

.hero-photo {
    position: relative;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: 8% 6% -4%;
    background: radial-gradient(circle at 50% 40%, rgba(37, 99, 235, 0.55), rgba(34, 197, 94, 0.18) 45%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.hero-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.hero-status {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(8px);
    font-size: 0.82rem;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-alt);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.25rem);
}

.hero-lead {
    margin-top: 18px;
    font-family: var(--display);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 600;
    color: var(--soft);
    line-height: 1.3;
}

.hero-text {
    margin-top: 16px;
    max-width: 600px;
    color: var(--muted);
}

.hero-text a {
    color: var(--ink);
    text-decoration-color: var(--accent-strong);
    text-underline-offset: 3px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

/* Stats */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 72px;
    border-top: 1px solid var(--line);
}

.stat {
    padding: 22px 20px 0 0;
}

.stat + .stat {
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

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

.stat strong {
    display: block;
    margin-top: 6px;
    font-family: var(--display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1;
}

/* Work cases */

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    margin-top: 36px;
}

.case {
    display: block;
    text-decoration: none;
}

.case-wide {
    grid-column: 1 / -1;
}

.case-wide .case-media {
    aspect-ratio: 2 / 1;
}

.case-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper-elevated);
}

.case-media img {
    transition: transform 0.5s ease;
}

.case-media .shot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.case-media .logo {
    width: 46%;
    max-height: 46%;
    object-fit: contain;
}

.case:hover .case-media img {
    transform: scale(1.04);
}

.media-health { background: radial-gradient(circle at 70% 20%, rgba(96, 165, 250, 0.35), transparent 60%), #0b1627; }
.media-marketing { background: radial-gradient(circle at 30% 80%, rgba(34, 197, 94, 0.32), transparent 60%), #0b1627; }
.media-search { background: linear-gradient(135deg, #111c2e, #07111f); }

.demo-title {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
}

.demo-title small {
    display: block;
    margin-top: 10px;
    color: var(--accent-strong);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.case-meta {
    padding-top: 16px;
}

.case-meta .eyebrow {
    margin-bottom: 6px;
    color: var(--accent-alt);
}

.case-meta h3 {
    font-size: 1.35rem;
    line-height: 1.25;
    transition: color 0.15s;
}

.case:hover h3 {
    color: var(--accent-strong);
}

.case-url {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.74rem;
}

/* Products */

.product-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}

.product-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.product-tile:hover {
    border-color: var(--line-strong);
    background: var(--panel);
}

.product-tile::after {
    content: "↗";
    position: absolute;
    top: 18px;
    right: 20px;
    color: var(--muted);
}

.product-tile img {
    height: 56px;
    width: auto;
    object-fit: contain;
    object-position: left;
}

.product-tile h3 {
    font-size: 1.25rem;
}

.product-tile p {
    color: var(--muted);
    font-size: 0.95rem;
}

.product-feature {
    grid-row: span 2;
    justify-content: space-between;
    background:
        radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.3), transparent 55%),
        var(--paper);
}

.product-feature img {
    height: 72px;
}

.product-feature h3 {
    font-size: 1.8rem;
}

.product-stack {
    display: grid;
    gap: 16px;
}

/* Services list (numbered) */

.service-list {
    margin-top: 36px;
    border-top: 1px solid var(--line);
    list-style: none;
}

.service-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.service-num {
    color: var(--accent-strong);
    font-family: var(--mono);
    font-size: 0.85rem;
}

.service-item h3 {
    font-size: 1.35rem;
}

.service-item p {
    color: var(--muted);
}

/* Team / timeline */

.team-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    margin-top: 36px;
}

.timeline {
    list-style: none;
    border-left: 1px solid var(--line-strong);
}

.timeline li {
    position: relative;
    padding: 0 0 32px 26px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--accent-strong);
    background: var(--deep);
}

.timeline h3 {
    font-size: 1.3rem;
}

.timeline .role {
    display: block;
    margin-top: 2px;
    color: var(--accent-strong);
    font-weight: 600;
    font-size: 0.92rem;
}

.timeline p {
    margin-top: 10px;
    color: var(--muted);
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration-color: var(--accent-strong);
    text-underline-offset: 4px;
}

.partner-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.partner-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 25%;
}

.partner-body {
    padding: 24px;
}

.partner-body h3 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.partner-body p {
    color: var(--muted);
}

.partner-body p + p {
    margin-top: 12px;
}

.partner-body details summary {
    margin-top: 12px;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

/* Work together */

.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.mode {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.mode-featured {
    border-color: var(--accent);
    box-shadow: 0 20px 50px var(--blue-shadow);
}

.mode-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mode h3 {
    font-size: 1.2rem;
}

.mode .best {
    color: var(--muted);
    font-size: 0.92rem;
}

.mode .best strong {
    color: var(--soft);
}

.mode ul {
    display: grid;
    gap: 8px;
    list-style: none;
    font-size: 0.92rem;
}

.mode li::before {
    content: "→";
    margin-right: 8px;
    color: var(--accent-alt);
}

.mode .button {
    align-self: flex-start;
    margin-top: auto;
}

.contact-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 20px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    color: var(--muted);
}

.contact-strip a {
    color: var(--ink);
    font-weight: 700;
}

/* More links */

.more-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.more-list a {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    text-decoration: none;
    transition: background 0.2s;
}

.more-list a:hover {
    background: var(--panel);
}

.more-list strong {
    display: block;
    font-family: var(--display);
    font-size: 1.1rem;
}

.more-list span {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Footer */

.site-footer {
    margin-top: 120px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 36px 0;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.site-footer small {
    max-width: 440px;
    color: var(--muted);
}

.footer-connect {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-connect a {
    color: var(--soft);
    font-size: 0.86rem;
    text-decoration: none;
}

.footer-connect a:hover {
    color: var(--accent-strong);
}

/* Reveal on scroll */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track,
    .pulse { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */

@media (max-width: 960px) {
    .nav-toggle { display: block; }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        padding: 12px 16px 18px;
        border-bottom: 1px solid var(--line);
        background: var(--deep);
    }

    .site-nav.is-open { display: block; }

    .nav-links { flex-direction: column; }

    .header-cta { display: none; }

    .hero,
    .team-grid,
    .product-layout {
        grid-template-columns: 1fr;
    }

    .hero { gap: 36px; }

    .hero-photo { max-width: 420px; }

    .mode-grid,
    .more-list {
        grid-template-columns: 1fr;
    }

    .service-item {
        grid-template-columns: 48px 1fr;
    }

    .service-item p { grid-column: 2; }
}

@media (max-width: 640px) {
    .section { padding-top: 72px; }

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

    .stat:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

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