@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #05060a;
    --bg-alt: #0d101a;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-light: rgba(255, 255, 255, 0.16);
    --text: #f7f8ff;
    --muted: #a6b1d5;
    --accent: #7cffcb;
    --accent-alt: #74f2ff;
    --danger: #ff6b6b;
    --warning: #ffd166;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 10px;
    --shadow-soft: 0 25px 55px rgba(4, 8, 20, 0.45);
    --shadow-card: 0 16px 40px rgba(3, 5, 12, 0.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    background: radial-gradient(circle at 10% 20%, rgba(124, 255, 203, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(116, 242, 255, 0.12) 0%, transparent 45%),
                var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    color-scheme: dark;
    padding-bottom: 4rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-alt);
}

img {
    max-width: 100%;
    display: block;
}

main {
    width: min(1200px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding-top: clamp(2rem, 5vw, 3.5rem);
}

@media (max-width: 640px) {
    main {
        width: min(700px, calc(100% - 1.5rem));
        padding-top: 2.5rem;
    }
}

.page-shell {
    width: min(960px, 92%);
    margin: 0 auto;
    padding: 4rem 0;
}

.page-shell.narrow {
    width: min(520px, 92%);
}

.page-shell.wide {
    width: min(1200px, 94%);
}

.page-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-hero h1 {
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    margin-bottom: 0.8rem;
}

.page-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
}

.glass-panel,
.form-panel,
.content-card {
    background: var(--panel);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.content-card h1,
.content-card h2,
.content-card h3 {
    margin-top: 1.5rem;
}

.content-card h1:first-child,
.content-card h2:first-child,
.content-card h3:first-child {
    margin-top: 0;
}

.content-card p,
.content-card li {
    color: var(--muted);
}

.content-card ul,
.content-card ol {
    margin: 0 0 1.2rem 1.5rem;
    display: grid;
    gap: 0.6rem;
}

.form-panel form,
.stacked-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input:not([type='checkbox']):not([type='radio']),
textarea,
select {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(124, 255, 203, 0.25);
}

label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--muted);
}

.empty-state {
    text-align: center;
    padding: 3rem;
}

.empty-state h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: rgba(124, 255, 203, 0.15);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Global layout helpers */
.section {
    padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.2rem, 4vw, 2.25rem);
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(124, 255, 203, 0.04), rgba(116, 242, 255, 0.02));
    box-shadow: 0 30px 60px rgba(5, 10, 20, 0.35);
}

.section + .section {
    margin-top: clamp(2rem, 6vw, 3rem);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-eyebrow {
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    font-size: 0.8rem;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    font-weight: 600;
}

.section-blurb {
    color: var(--muted);
    max-width: 640px;
    margin: 0.8rem auto 0;
    line-height: 1.5;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: var(--panel);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 30px 50px rgba(3, 5, 12, 0.6);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(124, 255, 203, 0.1);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(120deg, var(--accent), var(--accent-alt));
    color: #03110f;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 2.4rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 18px 35px rgba(124, 255, 203, 0.35);
}

.button:hover {
    transform: translateY(-3px) scale(1.01);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    box-shadow: none;
}

/* Header */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(135deg, rgba(6, 10, 25, 0.95), rgba(18, 28, 52, 0.85));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(4, 6, 18, 0.55);
    backdrop-filter: blur(12px);
}

.navbar {
    width: min(1200px, 94%);
    margin: 0.5rem auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-lg);
    background: rgba(8, 12, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.navbar nav {
    position: relative;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark img {
    height: clamp(48px, 5vw, 72px);
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a:focus-visible,
nav a.active {
    background: rgba(124, 255, 203, 0.18);
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 99px;
}

@media (max-width: 900px) {
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1.5rem clamp(1.2rem, 6vw, 2rem);
        flex-direction: column;
        background: rgba(5, 6, 10, 0.97);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 25px 55px rgba(2, 4, 10, 0.65);
        display: none;
        gap: 0.75rem;
    }
    nav ul li {
        width: 100%;
    }
    nav ul a {
        width: 100%;
        display: block;
        padding: 0.8rem 0;
    }
    nav ul.active {
        display: flex;
    }
    .nav-toggle {
        display: flex;
        padding: 0.35rem;
    }
    .nav-toggle span {
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hero */
.hero {
    min-height: 70vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: clamp(2rem, 5vw, 3.5rem);
    padding-top: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.2rem;
}

.hero p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-chip {
    align-self: flex-start;
    letter-spacing: 0.25em;
    font-size: 0.72rem;
}

.quick-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.quick-points li {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.hero-pill-row li {
    border-color: rgba(124, 255, 203, 0.35);
    color: var(--text);
}

.hero .stat-group {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.metric {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.metric strong {
    display: block;
    font-size: 1.4rem;
}

.metric span {
    color: var(--muted);
    font-size: 0.85rem;
}

.hero-metrics .metric {
    background: linear-gradient(135deg, rgba(124, 255, 203, 0.2), rgba(116, 242, 255, 0.12));
    border-color: rgba(255, 255, 255, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 2rem;
}

.hero-visual {
    position: relative;
    min-height: 340px;
}

.hero-visual-card {
    width: 100%;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-visual-card img {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    height: 260px;
    width: 100%;
}

.hero-visual-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-visual-caption {
    background: rgba(3, 12, 18, 0.65);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-visual-caption span {
    color: var(--muted);
    font-size: 0.85rem;
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: -20% -10%;
    background: radial-gradient(circle, rgba(124, 255, 203, 0.3), transparent 65%);
    filter: blur(40px);
    z-index: -1;
}

.hero-visual .glow-card {
    height: 100%;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(124, 255, 203, 0.18), rgba(116, 242, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Services */
.service-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--muted);
}

.service-card ul {
    list-style: none;
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
}

.service-card ul li {
    position: relative;
    padding-left: 1.2rem;
}

.service-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--accent);
}

/* Portfolio grid */
.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portfolio-card {
    border-radius: var(--radius-md);
    background: var(--panel);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-card img.logo {
    height: 60px;
    object-fit: contain;
}

.portfolio-card .gallery {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.portfolio-card .gallery img {
    flex: 1 1 120px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo orbit */
.logo-orbit-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 3rem;
}

.logo-orbit {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    background: var(--panel);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.75rem 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    min-height: 190px;
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: max-content;
    will-change: transform;
    animation: logo-marquee var(--marquee-duration, 40s) linear infinite;
}

.logo-orbit .logo-node {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    flex: 0 0 110px;
    animation: logo-rock 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.logo-orbit .logo-node img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
}

.logo-orbit::before,
.logo-orbit::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70px;
    z-index: 2;
    pointer-events: none;
}

.logo-orbit::before {
    left: 0;
    background: linear-gradient(90deg, rgba(5, 6, 10, 0.85), transparent);
}

.logo-orbit::after {
    right: 0;
    background: linear-gradient(270deg, rgba(5, 6, 10, 0.85), transparent);
}

@keyframes logo-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes logo-rock {
    0% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
    100% { transform: translateY(0) rotate(-2deg); }
}

/* Tables */
.table-card {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table-card th, .table-card td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-card th {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.table-card tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Forms */
.form-grid {
    display: grid;
    gap: 1.2rem;
}

.form-grid label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-family: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-pill {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Admin layout */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.admin-panel {
    background: var(--panel);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-panel h3 {
    margin-bottom: 1.2rem;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-card {
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-card .card-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

button.danger {
    background: rgba(255, 107, 107, 0.15);
    color: #ffb3b3;
    box-shadow: none;
}

button.danger:hover {
    background: rgba(255, 107, 107, 0.35);
}

/* Portfolio page */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-pill {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.filter-pill.active,
.filter-pill:hover {
    background: rgba(124, 255, 203, 0.12);
    border-color: var(--accent);
}

/* Footer */
footer {
    padding: 3rem 0 2rem;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Utility */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-copy {
        align-items: center;
    }
    .hero .form-actions {
        justify-content: center;
    }
    .quick-points {
        justify-content: center;
    }
    .metric-grid {
        width: 100%;
    }
    .hero-visual-card {
        padding: 1.3rem;
    }
    .hero-visual-card img {
        height: 220px;
    }
}

@media (max-width: 540px) {
    .form-actions .button,
    .form-actions .button.secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .logo-orbit {
        max-width: 100%;
        padding: 1.2rem 0.8rem;
    }
    .logo-track {
        gap: 0.9rem;
    }
    .logo-orbit .logo-node {
        width: 86px;
        height: 86px;
        flex: 0 0 86px;
    }
    .hero .stat-group {
        flex-direction: column;
        gap: 1rem;
    }
    .brand-mark {
        gap: 0.5rem;
    }
    .brand-mark img {
        height: 48px;
        max-width: 130px;
    }
    .brand-mark strong {
        font-size: 1rem;
    }
}
