/* ============================================
   Melodic Development - Site Styles
   ============================================ */

/* ---- Design Tokens ---- */
:root {
    --color-black: #0a0a0b;
    --color-gray-900: #18181b;
    --color-gray-800: #27272a;
    --color-gray-700: #3f3f46;
    --color-gray-600: #52525b;
    --color-gray-500: #71717a;
    --color-gray-400: #a1a1aa;
    --color-gray-300: #d4d4d8;
    --color-gray-200: #e4e4e7;
    --color-gray-100: #f4f4f5;
    --color-gray-50: #fafafa;
    --color-white: #ffffff;

    /* Brand palette — sourced directly from the Melodic logo mark */
    --brand-magenta: #ff0082;
    --brand-purple: #49216d;
    --brand-azure: #009dd9;

    --color-primary: #d6006a;        /* accessible magenta for text/UI on light */
    --color-primary-light: #ff5bae;
    --color-primary-dark: #49216d;   /* deep brand purple */
    --color-accent: #009dd9;
    --color-accent-light: #5ec9ee;

    /* Semantic theme tokens — dark theme */
    --bg: #0b0814;            /* page background (matches the dark hero's deep end) */
    --bg-alt: #100b1c;        /* alternating section bands */
    --surface: #161020;       /* cards, inputs, raised panels */
    --surface-2: #221a33;     /* chips, hover fills, nested surfaces */
    --surface-3: #2c2340;     /* strongest hover fill */
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #ECEAF3;          /* primary text (~14:1 on surface) */
    --text-muted: #ABA4BE;    /* secondary text (~7:1) */
    --text-faint: #948CA9;    /* meta / least-important (~5:1) */

    --gradient-primary: linear-gradient(120deg, #ff0082 0%, #b3179c 45%, #009dd9 100%);
    --gradient-dark: linear-gradient(165deg, #2a1247 0%, #160b2b 55%, #0a0613 100%);
    --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 0, 130, 0.18) 0%, transparent 70%);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --font-logo: 'Montserrat', system-ui, sans-serif;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(255, 0, 130, 0.18);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--color-gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gray-400); }

/* ---- Utility Classes ---- */
.page {
    display: flex;
    flex-direction: column;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(255, 0, 130, 0.1) 0%, rgba(0, 157, 217, 0.1) 100%);
    border: 1px solid rgba(255, 0, 130, 0.18);
    margin-bottom: 1rem;
}

.section-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.section-header {
    max-width: 640px;
    margin: 3rem auto;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 1rem;
}

.section-header p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 0, 130, 0.1) 0%, rgba(0, 157, 217, 0.1) 100%);
    border-radius: var(--radius-md);
    color: var(--color-primary);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(255, 0, 130, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 130, 0.4);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-alt);
    border-color: var(--border-strong);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- Header ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-melodic {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
}

.logo-development {
    font-family: var(--font-logo);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--text);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav a.active {
    color: var(--color-primary);
}

.nav-projects {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border);
}

.nav-projects a {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-projects a:hover {
    background: var(--surface-2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .btn {
    padding: 0.625rem 1.25rem;
    box-shadow: 0 2px 8px rgba(255, 0, 130, 0.25);
}

.header-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 0, 130, 0.35);
}

/* ---- Main ---- */
.main {
    flex: 1;
}

/* ---- Footer ---- */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-brand .logo-melodic {
    color: var(--color-white);
}

.footer-brand .logo-development {
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-gray-400);
    max-width: 280px;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-gray-800);
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-gray-700);
    color: var(--color-white);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem 1.5rem;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-col a,
.footer-col span {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-gray-400);
    padding: 0.375rem 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-white);
}

.footer-meta {
    font-size: 0.875rem !important;
    color: var(--text-faint) !important;
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
}

.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-faint);
}

/* ---- Hero Section (reusable) ---- */
.hero-section {
    position: relative;
    background:
        radial-gradient(ellipse 55% 60% at 16% -10%, rgba(255, 0, 130, 0.38) 0%, transparent 62%),
        radial-gradient(ellipse 55% 65% at 88% 0%, rgba(0, 157, 217, 0.30) 0%, transparent 60%),
        var(--gradient-dark);
    padding: 6.5rem 2rem 5.5rem;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 25%, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 80% at 50% 25%, #000 0%, transparent 78%);
    pointer-events: none;
}

.hero-section-content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.hero-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    margin-bottom: 1.5rem;
}

.hero-section-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px rgba(255, 0, 130, 0.8);
}

.hero-section-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5.5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #ffffff;
    margin: 0 0 1.5rem;
}

.hero-section-lead {
    font-size: 1.25rem;
    line-height: 1.65;
    color: var(--color-gray-400);
    max-width: 620px;
    margin: 0 auto;
}

/* ---- CTA Sections ---- */
.cta-dark {
    position: relative;
    background:
        radial-gradient(ellipse 60% 70% at 50% 120%, rgba(255, 0, 130, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% -10%, rgba(0, 157, 217, 0.2) 0%, transparent 55%),
        var(--gradient-dark);
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.cta-dark .cta-content {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.cta-dark h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 1rem;
}

.cta-dark p {
    font-size: 1.25rem;
    color: var(--color-gray-400);
    margin: 0 0 2rem;
}

.cta-light {
    background: var(--bg-alt);
    padding: 6rem 2rem;
    text-align: center;
}

.cta-light .cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-light h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem;
}

.cta-light p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
}

/* ============================================
   HOME PAGE
   ============================================ */
.hero {
    position: relative;
    padding: 7rem 0 7.5rem;
    background: var(--gradient-dark);
    overflow: hidden;
    isolation: isolate;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Aurora blobs that drift slowly behind the hero */
.hero-bg {
    position: absolute;
    inset: -30% -10%;
    background:
        radial-gradient(ellipse 42% 50% at 18% 22%, rgba(255, 0, 130, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 45% 55% at 82% 28%, rgba(0, 157, 217, 0.42) 0%, transparent 60%),
        radial-gradient(ellipse 40% 45% at 60% 85%, rgba(73, 33, 109, 0.6) 0%, transparent 65%);
    filter: blur(10px);
    pointer-events: none;
    z-index: -1;
    animation: aurora-drift 22s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(2%, -2%, 0) scale(1.08); }
    100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}

/* Fine grid texture */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 0%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 0%, transparent 80%);
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-gray-200);
    margin-bottom: 1.75rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin: 0 0 1.5rem;
}

.hero h1 .accent {
    background: linear-gradient(110deg, #ff4da6 0%, #c77dff 40%, #38c6f4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.1875rem;
    line-height: 1.65;
    color: var(--color-gray-400);
    margin: 0 0 2.25rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    width: 100%;
    max-width: 480px;
    background: var(--color-gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero-card-header {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--color-gray-800);
    border-bottom: 1px solid var(--color-gray-700);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.hero-code {
    margin: 0;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-gray-300);
    overflow-x: auto;
}

.hero-code .keyword { color: #c084fc; }
.hero-code .string { color: #86efac; }
.hero-code .function { color: #60a5fa; }
.hero-code .property { color: #fbbf24; }
.hero-code .boolean { color: #f472b6; }

/* Framework / Components / PHP sections */
.framework { padding: 6rem 2rem; background: var(--surface); }
.components { padding: 6rem 2rem; background: var(--bg-alt); }
.php-section { padding: 6rem 2rem; background: var(--surface); }

.framework-inner,
.components-inner,
.php-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.framework-content h2,
.components-content h2,
.php-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 1rem;
}

.framework-content > p,
.components-content > p,
.php-content > p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 2rem;
}

.framework-features {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.framework-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--text);
}

.framework-features svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.framework-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.framework-code-wrapper {
    display: flex;
    justify-content: flex-end;
}

.framework-card {
    width: 100%;
    max-width: 500px;
    background: var(--color-gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.framework-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--color-gray-800);
    border-bottom: 1px solid var(--color-gray-700);
}

.file-name {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-faint);
}

.framework-code {
    margin: 0;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--color-gray-300);
    overflow-x: auto;
}

.framework-code .decorator { color: #fbbf24; }
.framework-code .keyword { color: #c084fc; }
.framework-code .string { color: #86efac; }
.framework-code .function { color: #60a5fa; }
.framework-code .property { color: #93c5fd; }
.framework-code .class { color: #67e8f9; }
.framework-code .number { color: #f472b6; }
.framework-code .tag { color: #f87171; }
.framework-code .attr { color: #a5b4fc; }

/* ============================================
   SERVICES PAGE
   ============================================ */
.offerings {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(340px, 1fr));
    gap: 1.5rem;
}

.offering-card {
    position: relative;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.offering-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.offering-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 0, 130, 0.1) 0%, rgba(0, 157, 217, 0.1) 100%);
    border-radius: var(--radius-md);
    color: var(--color-primary);
}

.offering-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.75rem;
}

.offering-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Specialties */
.specialties {
    background: var(--color-gray-900);
    padding: 2rem;
}

.specialties-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.specialties .section-header { margin-bottom: 3rem; }
.specialties .section-label { color: var(--color-accent-light); }

.specialties h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 1rem;
}

.specialties .section-header p {
    font-size: 1.125rem;
    color: var(--color-gray-400);
    margin: 0;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.specialty-item {
    background: var(--color-gray-800);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-700);
}

.specialty-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 0.5rem;
}

.specialty-item p {
    font-size: 0.9375rem;
    color: var(--color-gray-400);
    margin: 0;
}

/* Process */
.process { padding: 6rem 2rem; }

.process-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.process .section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.process h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step { text-align: center; }

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.75rem;
}

.step p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.project-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.project-card.featured {
    grid-column: 1 / -1;
    padding: 2.5rem;
    background: var(--gradient-dark);
    border: none;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 0, 130, 0.1) 0%, rgba(0, 157, 217, 0.1) 100%);
    border-radius: var(--radius-md);
    color: var(--color-primary);
}

.project-icon.small {
    width: 40px;
    height: 40px;
}

.project-card.featured .project-icon {
    width: 56px;
    height: 56px;
    background: none;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.project-link:hover {
    background: var(--color-gray-200);
    color: var(--text);
}

.project-card.featured .project-link {
    background: var(--color-gray-800);
    color: var(--color-gray-400);
}

.project-card.featured .project-link:hover {
    background: var(--color-gray-700);
    color: var(--color-white);
}

.project-card h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 1rem;
}

.project-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.project-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-gray-400);
    margin: 0 0 1.5rem;
}

.project-card > p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-stats .stat {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-300);
    padding: 0.5rem 1rem;
    background: var(--color-gray-800);
    border-radius: var(--radius-full);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    padding: 0.375rem 0.75rem;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.project-card.featured .project-tech span {
    background: var(--color-gray-800);
    color: var(--color-gray-300);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.story { padding: 6rem 2rem; }

.story-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.story-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.5rem;
}

.story-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

.story-content p:last-child { margin-bottom: 0; }

.story-content .signature {
    font-style: italic;
    margin-top: 1.5rem;
}

.story-content .signature-name {
    font-weight: 600;
    color: var(--text);
    margin-top: 0.5rem;
}

.story-values h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.value {
    padding: 1.25rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
}

.value h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.value p {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

/* Team */
.team {
    background: var(--bg-alt);
    padding: 6rem 2rem;
}

.team-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.team-grid {
    display: flex;
    justify-content: center;
}

.team-member {
    text-align: center;
    max-width: 480px;
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--color-white);
}

.team-member h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.25rem;
}

.member-role {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.team-member p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 1rem;
    text-align: left;
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.member-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-faint);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.member-links a:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.connect-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition-fast);
}

.connect-link:hover {
    background: var(--bg-alt);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ============================================
   TESTIMONIALS PAGE
   ============================================ */
.testimonials {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.testimonial-card.featured {
    grid-column: 1 / -1;
    background: var(--gradient-dark);
    border: none;
    padding: 3rem;
}

.quote-icon {
    color: var(--color-primary-light);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.testimonial-card blockquote {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 2rem;
    flex: 1;
}

.testimonial-card.featured blockquote {
    font-size: 1.375rem;
    color: var(--color-gray-300);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 0, 130, 0.2) 0%, rgba(0, 157, 217, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-primary);
}

.testimonial-card.featured .author-avatar {
    background: var(--color-gray-800);
    color: var(--color-primary-light);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text);
}

.testimonial-card.featured .author-name {
    color: var(--color-white);
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-faint);
}

.testimonial-card.featured .author-title {
    color: var(--color-gray-400);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact { padding: 6rem 2rem; }

.contact-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-faint);
    margin: 0 0 1.5rem;
}

.required-indicator {
    color: var(--color-primary);
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-row .form-group { min-width: 0; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-sizing: border-box;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 130, 0.1);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #dc2626;
    background: #fef2f2;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.field-error {
    font-size: 0.8125rem;
    color: #dc2626;
    margin: 0.5rem 0 0;
}

.form-status { font-size: 0.875rem; margin: 0.75rem 0 0; }
.form-status--success { color: #15803d; }
.form-status--error { color: #dc2626; }

.contact .btn-lg { width: 100%; }

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--gradient-dark);
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 0.75rem;
}

.info-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-400);
    margin: 0 0 1.5rem;
}

.info-card .btn-ghost {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-gray-600);
}

.info-card .btn-ghost:hover {
    background: var(--color-gray-800);
    border-color: var(--text-faint);
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem;
}

.detail a,
.detail p {
    font-size: 1rem;
    color: var(--text);
    margin: 0;
}

.detail a {
    color: var(--color-primary);
    font-weight: 500;
}

.detail a:hover {
    text-decoration: underline;
}

/* ============================================
   WORK PAGE
   ============================================ */
.work-disclaimer {
    max-width: 800px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.cases {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.cases-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.case-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
}

.case-card:nth-child(even) { direction: rtl; }
.case-card:nth-child(even) > * { direction: ltr; }

.case-image {
    height: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
}

.case-image.fintech { background: linear-gradient(135deg, #ff0082 0%, #009dd9 100%); }
.case-image.healthcare { background: linear-gradient(135deg, #009dd9 0%, #49216d 100%); }
.case-image.logistics { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.case-image.languagebird { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.case-image.saas { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }

.case-content {
    padding: 2.5rem 2.5rem 2.5rem 0;
    display: flex;
    flex-direction: column;
}

.case-card:nth-child(even) .case-content {
    padding: 2.5rem 0 2.5rem 2.5rem;
}

.case-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.case-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem;
}

.case-content > p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.case-results {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.result { display: flex; flex-direction: column; }

.result-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.result-label {
    font-size: 0.8125rem;
    color: var(--text-faint);
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.case-tech span {
    padding: 0.375rem 0.75rem;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.case-link:hover {
    text-decoration: underline;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: calc(100vh - 200px);
}

.error-content {
    max-width: 480px;
}

.error-code {
    display: block;
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-content h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem;
}

.error-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nav { display: none; }
    .mobile-nav-toggle { display: block; }

    .hero {
        padding: 5rem 0 5.5rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-visual { display: none; }

    .framework-inner,
    .components-inner,
    .php-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .framework-code-wrapper { justify-content: center; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .offerings-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

@media (max-width: 900px) {
    .story-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .case-card,
    .case-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .case-image { min-height: 200px; }

    .case-content,
    .case-card:nth-child(even) .case-content {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .header-inner { padding: 0.875rem 1.25rem; }

    .hero { padding: 4rem 0 4.5rem; }
    .hero-inner { padding: 0 1.25rem; }

    .framework,
    .components,
    .php-section {
        padding: 4rem 1.25rem;
    }

    .cta-dark,
    .cta-light {
        padding: 4rem 1.25rem;
    }

    .hero-section { padding: 4rem 1.25rem; }

    .offerings,
    .specialties,
    .process {
        padding: 4rem 1.25rem;
    }

    .process-steps { grid-template-columns: 1fr; }

    .projects { padding: 4rem 1.25rem; }

    .project-card.featured { padding: 2rem; }

    .project-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .story,
    .team {
        padding: 4rem 1.25rem;
    }

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

    .testimonials { padding: 4rem 1.25rem; }
    .testimonial-card.featured { padding: 2rem; }

    .contact { padding: 4rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 1.75rem; }

    .cases { padding: 4rem 1.25rem; }

    .case-results {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-inner { padding: 3rem 1.25rem; }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .footer-bottom-inner { padding: 1.25rem; }
}

/* ---- Mobile Nav Overlay ---- */
.nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    z-index: 200;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
}

.nav.mobile-open .nav-projects {
    flex-direction: column;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.nav.mobile-open a {
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
}

.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* ============================================
   Products Page
   ============================================ */
.products-page {
    padding-bottom: 2rem;
}

.product-category {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
}

.product-category .category-head {
    max-width: 640px;
    margin-bottom: 2.5rem;
}

.product-category .category-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.product-category .category-head p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ---- Spotlight product card ---- */
.product-card.spotlight {
    display: grid;
    grid-template-columns: 220px 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.product-card.spotlight:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--color-gray-200));
    box-shadow:
        0 18px 40px -12px color-mix(in srgb, var(--brand) 45%, transparent),
        var(--shadow-lg);
}

.product-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background:
        radial-gradient(120% 90% at 30% 0%, color-mix(in srgb, var(--brand-2) 32%, transparent) 0%, transparent 60%),
        linear-gradient(160deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #000) 100%);
}

.product-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.product-logo svg {
    border-radius: 16px;
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.product-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.product-status.live {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(110, 231, 183, 0.35);
}

.product-status.live::before {
    box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.25);
}

.product-status.soon {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(252, 211, 77, 0.35);
}

.product-body {
    padding: 2.25rem 2.25rem 2rem;
}

.product-body h3 {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}

.product-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0 0 0.9rem;
}

.product-desc {
    font-size: 0.9875rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    max-width: 56ch;
}

.product-desc code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--surface-2);
    color: var(--text);
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-sm);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-tags span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-disabled {
    cursor: default;
    color: var(--text-faint);
    background: var(--surface-2);
    border-color: var(--border-strong);
}

.btn-disabled:hover {
    transform: none;
    background: var(--surface-2);
}

/* ---- Open Source category ---- */
.product-category.open-source {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.oss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.oss-card {
    display: block;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.oss-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.oss-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 0, 130, 0.12) 0%, rgba(0, 157, 217, 0.12) 100%);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.oss-card h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.4rem;
}

.oss-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

.oss-footer {
    margin-top: 2rem;
}

/* ---- Home: products teaser ---- */
.home-products {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.home-products .product-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.product-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.product-pill:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.product-pill svg { flex-shrink: 0; border-radius: 12px; }

.product-pill .pill-text { display: flex; flex-direction: column; line-height: 1.3; }
.product-pill .pill-name { font-weight: 600; color: var(--text); }
.product-pill .pill-meta { font-size: 0.8125rem; color: var(--text-faint); }

/* ============================================
   Moderate refresh — shared polish
   ============================================ */

/* Accessible focus rings for keyboard users */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* A touch more depth + lift on the existing project cards */
.project-card:not(.featured):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Scroll reveal (progressive enhancement; only active when JS adds .js) */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .btn-primary:hover,
    .project-card:hover,
    .product-card.spotlight:hover,
    .oss-card:hover,
    .product-pill:hover {
        transform: none;
    }
}

/* ---- Products responsive ---- */
@media (max-width: 760px) {
    .product-card.spotlight {
        grid-template-columns: 1fr;
    }

    .product-brand {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
    }

    .product-body {
        padding: 1.75rem 1.5rem;
    }

    .product-category {
        padding: 2.5rem 1.25rem;
    }

    .home-products {
        padding: 4rem 1.25rem;
    }
}

/* Brand accent bar on spotlight product cards */
.product-card.spotlight { position: relative; }

.product-card.spotlight::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card.spotlight:hover::after { opacity: 1; }

/* ---- Dark hero refinements ---- */
.hero .btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.hero .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero .hero-card {
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 0, 130, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg { animation: none; }
}

/* ============================================
   Dark theme — surface/contrast corrections
   ============================================ */
:root { color-scheme: dark; }

body { background: var(--bg); }

/* Header: dark glass instead of white */
.header {
    background: rgba(11, 8, 20, 0.72);
    border-bottom: 1px solid var(--border);
}

/* Brand labels need a light tone on dark surfaces */
.section-label { color: var(--color-primary-light); }

/* Product spotlight tagline: dark brand colors are invisible on dark,
   so use each product's lighter accent */
.product-tagline { color: var(--brand-2); }

/* Icon tiles pop a little brighter on dark */
.oss-icon { color: var(--color-primary-light); }

/* Small icon buttons on cards */
.project-link { background: var(--surface-2); color: var(--text-muted); }
.project-link:hover { background: var(--surface-3); color: var(--text); }

/* Card elevation reads via border + a deeper shadow on dark */
.project-card:not(.featured):hover,
.oss-card:hover,
.product-pill:hover {
    box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.7);
    border-color: var(--border-strong);
}
.project-card.featured { border: 1px solid var(--border); }

/* Footer: tie into the brand-dark rather than neutral charcoal */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

/* Forms */
.form-group input,
.form-group select,
.form-group textarea {
    color: var(--text);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.10);
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23948CA9' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.form-status--success { color: #4ade80; }
.form-status--error,
.field-error { color: #f87171; }

/* ============================================
   Home: stack intro, products CTA, follow/newsletter
   ============================================ */
.stack-intro { margin-top: 2rem; }

.home-products-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.follow {
    padding: 5rem 2rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.follow-inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.follow-inner .section-label { margin-bottom: 1rem; }

.follow-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 0.75rem;
}

.follow-inner > p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 1.75rem;
}

.subscribe-form {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.subscribe-form input {
    flex: 1 1 280px;
    min-width: 0;
    max-width: 340px;
    padding: 0.8rem 1.1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.subscribe-form input::placeholder { color: var(--text-faint); }

.subscribe-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 130, 0.14);
}

.subscribe-form .btn { flex: 0 0 auto; }

.subscribe-status {
    font-size: 0.9rem;
    margin: 1rem 0 0;
    color: var(--text-muted);
}
.subscribe-status.is-error { color: #f87171; }
.subscribe-status.is-success { color: #4ade80; }

.follow-links {
    display: flex;
    gap: 1.75rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.follow-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary-light);
}

.follow-links a:hover { color: var(--text); }

/* Open-source status badge variant (neutral glass) */
.product-status.oss {
    color: #ECEAF3;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.product-status.oss::before {
    background: #ECEAF3;
    box-shadow: none;
}
