@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
    --color-bg: #1d1101;
    --color-surface: #2c251f;
    --color-surface-light: #3a2f24;
    --color-primary: #4c3826;
    --color-primary-light: #6b5238;
    --color-accent: #c4873a;
    --color-accent-light: #d4a45a;
    --color-text: #f0e0cc;
    --color-text-muted: #a08060;
    --color-border: rgba(76, 56, 38, 0.5);
}

html {
    scroll-behavior: smooth;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navigation ── */

.nav {
    background: rgba(29, 17, 1, 0.75);
    backdrop-filter: blur(16px);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.nav__brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    margin-right: auto;
    letter-spacing: 0.02em;
}

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

.nav__links a {
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
    color: var(--color-text);
    background: rgba(76, 56, 38, 0.3);
}

.nav__links a.router-link-active {
    color: var(--color-accent);
    background: rgba(196, 135, 58, 0.12);
}

/* ── Hero (Home) ── */

.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
}

.hero__video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0.15;
}

.hero__video-icon {
    font-size: 4rem;
    color: var(--color-accent);
}

.hero__video-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

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

.hero__tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--color-accent);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text-muted);
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero__cta {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: var(--color-accent);
    color: var(--color-bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.hero__cta:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
}

/* ── Home Teaser ── */

.home-teaser {
    padding: 5rem 2rem;
    background: rgba(44, 37, 31, 0.4);
    border-top: 1px solid var(--color-border);
}

.home-teaser__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.home-teaser__item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.home-teaser__icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.home-teaser__item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.home-teaser__item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ── Products ── */

.products {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.products__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.products__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.products__intro {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.product-card {
    background: rgba(44, 37, 31, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.product-card__video {
    aspect-ratio: 16/10;
    background: rgba(29, 17, 1, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.product-card__video-icon {
    font-size: 2rem;
    color: var(--color-primary-light);
}

.product-card__video span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
}

.product-card__info {
    padding: 1.5rem;
}

.product-card__name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.product-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.product-card__status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(196, 135, 58, 0.15);
    color: var(--color-accent);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ── Story ── */

.story {
    padding: 4rem 2rem;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}

.story__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 3.5rem;
}

.story__timeline {
    position: relative;
    padding-left: 2.5rem;
}

.story__timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.story__block {
    position: relative;
    margin-bottom: 3rem;
}

.story__block:last-child {
    margin-bottom: 0;
}

.story__block-marker {
    position: absolute;
    left: -2.15rem;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid var(--color-bg);
}

.story__block-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.6rem;
}

.story__block-content p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.story__closing {
    margin-top: 4rem;
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.story__closing-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-accent);
    font-style: italic;
}

/* ── Toast (kept from template) ── */

.a_o_toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.6rem;
    z-index: 9999;
    pointer-events: none;
    max-width: 360px;
}

.a_o_toast .o_toast {
    padding: 0.8rem 1.25rem;
    background: rgba(29, 17, 1, 0.9);
    backdrop-filter: blur(12px);
    color: var(--color-text);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    pointer-events: auto;
    animation: toast_slide_in 0.3s ease forwards;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.a_o_toast .o_toast.info {
    border-color: rgba(66, 153, 225, 0.4);
    background: rgba(43, 108, 176, 0.6);
}

.a_o_toast .o_toast.success {
    border-color: rgba(72, 187, 120, 0.4);
    background: rgba(39, 103, 73, 0.6);
}

.a_o_toast .o_toast.warning {
    border-color: rgba(237, 137, 54, 0.4);
    background: rgba(151, 90, 22, 0.6);
}

.a_o_toast .o_toast.error {
    border-color: rgba(252, 129, 129, 0.4);
    background: rgba(155, 44, 44, 0.6);
}

.a_o_toast .o_toast.expired {
    opacity: 0;
    display: none;
    transform: translateX(100%);
    pointer-events: none;
}

@keyframes toast_slide_in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Responsive ── */

@media (max-width: 640px) {
    .nav {
        padding: 0 1rem;
    }
    .nav__links a {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }
    .hero {
        padding: 3rem 1.5rem;
    }
    .products {
        padding: 3rem 1.5rem;
    }
    .story {
        padding: 3rem 1.5rem;
    }
    .products__grid {
        grid-template-columns: 1fr;
    }
}
