/* ===========================
   Stack Craft Digital — Glass
   =========================== */

:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --color-bg: #050507;
    --color-text: #f5f5f7;
    --color-text-secondary: rgba(245, 245, 247, 0.6);
    --color-text-tertiary: rgba(245, 245, 247, 0.35);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --accent: #7c6aef;
    --accent-glow: rgba(124, 106, 239, 0.25);
    --teal: #2dd4bf;
    --radius: 20px;
    --radius-sm: 12px;
    --container: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Ambient background glow */
body::before {
    content: '';
    position: fixed;
    top: -40%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(124, 106, 239, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    right: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

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

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

ul {
    list-style: none;
}

/* --- Layout --- */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 32px);
    max-width: 660px;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
}

.nav__logo {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.nav__logo span {
    color: var(--color-text-secondary);
    font-weight: 400;
}

.nav__links {
    display: flex;
    gap: 24px;
}

.nav__link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.3s;
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-text);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--teal);
    padding: 8px 20px;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.15);
    border-radius: 100px;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--color-text);
}

.hero__title-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    max-width: 480px;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --- Countdown --- */
.countdown {
    display: flex;
    gap: 12px;
    margin: 12px 0 8px;
}

.countdown__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100px;
    padding: 22px 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.4s, border-color 0.4s;
}

.countdown__block:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.countdown__number {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
}

.countdown__label {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-tertiary);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn--primary {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn--primary:hover {
    background: #fff;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* --- Features Section --- */
.features {
    padding: 0 0 120px;
    position: relative;
    z-index: 1;
}

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

.feature-card {
    padding: 40px 28px;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.4s, border-color 0.4s, transform 0.4s;
}

.feature-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(124, 106, 239, 0.1);
    border: 1px solid rgba(124, 106, 239, 0.15);
    color: var(--accent);
    margin-bottom: 24px;
}

.feature-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card__desc {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* --- Page Header (Products) --- */
.page-header {
    padding: 140px 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

.page-header__subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    max-width: 420px;
    margin: 0 auto;
}

/* --- Filter Tabs --- */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 32px 0 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-tab {
    padding: 9px 20px;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab:hover {
    color: var(--color-text);
    background: var(--glass-bg);
}

.filter-tab--active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border-color: var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- Products Grid --- */
.products {
    padding-bottom: 120px;
    position: relative;
    z-index: 1;
}

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

/* --- Product Card --- */
.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.4s, border-color 0.4s, transform 0.4s;
}

.product-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
}

.product-card__image svg {
    width: 100%;
    height: 100%;
}

.product-card__body {
    padding: 24px;
}

.product-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.product-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

/* --- Contact Section --- */
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
}

.contact__outer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.contact__heading {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.contact__intro {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.contact__card {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 24px 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.4s, border-color 0.4s, transform 0.4s;
    text-decoration: none;
    color: inherit;
}

.contact__card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.contact__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(124, 106, 239, 0.1);
    border: 1px solid rgba(124, 106, 239, 0.15);
    color: var(--accent);
}

.contact__card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.contact__card-label {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-tertiary);
}

.contact__card-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact__card-arrow {
    flex-shrink: 0;
    color: var(--color-text-tertiary);
    transition: color 0.3s, transform 0.3s;
}

.contact__card:hover .contact__card-arrow {
    color: var(--color-text);
    transform: translateX(3px);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 32px 0;
    position: relative;
    z-index: 1;
}

.footer__inner {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    font-weight: 400;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav {
        top: 12px;
        width: calc(100% - 24px);
    }

    .nav__inner {
        height: 48px;
        padding: 0 20px;
    }

    .hero {
        min-height: auto;
        padding: 130px 0 60px;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .countdown {
        gap: 8px;
    }

    .countdown__block {
        width: 76px;
        padding: 16px 0;
        border-radius: 14px;
    }

    .countdown__number {
        font-size: 1.6rem;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 28px 24px;
    }

    .page-header {
        padding: 120px 0 10px;
    }

    .products__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-tabs {
        padding: 24px 0 28px;
    }
}

@media (max-width: 480px) {
    .countdown {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 200px;
    }

    .countdown__block {
        width: 100%;
    }

    .nav__links {
        gap: 16px;
    }

    .nav__logo {
        font-size: 0.85rem;
    }
}
