/* ========================================
   AZTRA - Landing Page Styles
   ======================================== */

/* --- Custom Properties --- */
:root {
    --bg-primary: #FFFFFF;
    --bg-alt: #F7F8FC;
    --bg-dark: #0F1729;
    --bg-dark-alt: #0A1628;
    --text-primary: #0F1729;
    --text-secondary: #6B7280;
    --text-light: #FFFFFF;
    --accent: #0055FF;
    --accent-hover: #003DB3;
    --accent-glow: rgba(0, 85, 255, 0.4);
    --accent-light: rgba(0, 85, 255, 0.08);
    --gradient: linear-gradient(135deg, #0055FF, #00AAFF);
    --border: #E5E7EB;
    --card-bg: rgba(255, 255, 255, 0.7);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 4px 20px var(--accent-glow);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: var(--text-light);
    border: 2px solid var(--accent);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn--glow {
    box-shadow: var(--shadow-accent);
}

.btn--glow:hover {
    box-shadow: 0 6px 30px var(--accent-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.header__logo:hover img {
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 36px;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--accent);
}

.nav__link:hover::after {
    width: 100%;
}

.header__cta {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    overflow: hidden;
    padding-top: 72px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero__orb--1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 85, 255, 0.15);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero__orb--2 {
    width: 300px;
    height: 300px;
    background: rgba(0, 170, 255, 0.1);
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-light);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.4s forwards;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero__actions {
    display: flex;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.8s forwards;
}

.hero__actions .btn--ghost {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero__actions .btn--ghost:hover {
    color: var(--text-light);
    border-color: var(--accent);
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards;
}

.hero__visual-logo {
    width: 350px;
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0, 85, 255, 0.3));
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.hero__scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- Why Aztra --- */
.why {
    padding: 120px 0;
    background: var(--bg-primary);
}

.why__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.why__card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.why__card--large {
    grid-row: span 2;
    background: var(--bg-dark);
    border-color: transparent;
}

.why__card--large .why__card-icon {
    color: var(--accent);
}

.why__card--large .why__card-title {
    color: var(--text-light);
}

.why__card--large .why__card-text {
    color: rgba(255, 255, 255, 0.6);
}

.why__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.why__card-icon {
    width: 56px;
    height: 56px;
    color: var(--accent);
    margin-bottom: 24px;
}

.why__card-icon svg {
    width: 100%;
    height: 100%;
}

.why__card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.why__card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Products --- */
.products {
    padding: 120px 0;
    background: var(--bg-alt);
}

.products__carousel {
    position: relative;
}

.products__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0 40px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.products__track::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 calc(25% - 18px);
    min-width: 280px;
    scroll-snap-align: start;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent);
    border-color: var(--accent);
}

.product-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent);
    color: var(--text-light);
    border-radius: var(--radius-full);
}

.badge--new {
    background: #00CC88;
}

.product-card__image {
    height: 260px;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
}

.product-card__image svg {
    width: 160px;
    height: 160px;
}

.product-card__image img {
    height: 220px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

.product-card__flavors {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 24px 20px;
}

.flavor-btn {
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    cursor: pointer;
    transition: var(--transition);
}

.flavor-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.flavor-btn.is-active {
    color: var(--text-light);
    background: var(--accent);
    border-color: var(--accent);
}

.product-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-card__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__stats {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.product-card__stat {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.product-card__stat strong {
    color: var(--accent);
    font-weight: 700;
}

.products__nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.products__nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.products__nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.products__nav-btn svg {
    width: 20px;
    height: 20px;
}

/* --- Essence --- */
.essence {
    padding: 120px 0;
    background: var(--bg-primary);
}

.essence__inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.essence__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.essence__text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.essence__stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.essence__stat {
    padding: 28px 32px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(30px);
}

.essence__stat:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.essence__stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.essence__stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--bg-dark);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-light);
    margin-bottom: 16px;
}

.contact__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.contact__detail svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact__social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.contact__social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.contact__social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 85, 255, 0.1);
}

.contact__social-link svg {
    width: 18px;
    height: 18px;
}

/* --- Form --- */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__group {
    position: relative;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.form__group input:focus,
.form__group textarea:focus {
    border-color: var(--accent);
    background: rgba(0, 85, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.15);
}

.form__group label {
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    transition: var(--transition);
}

.form__group input:focus + label,
.form__group input:not(:placeholder-shown) + label,
.form__group textarea:focus + label,
.form__group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg-dark);
    padding: 0 6px;
}

.form__error {
    display: block;
    font-size: 0.8rem;
    color: #FF4444;
    margin-top: 6px;
    min-height: 18px;
}

.form__group.error input,
.form__group.error textarea {
    border-color: #FF4444;
}

/* --- Form Success State --- */
.btn__success {
    display: none;
}

.btn--success .btn__text {
    display: none;
}

.btn--success .btn__success {
    display: inline;
}

.btn--success {
    background: #00CC88;
    border-color: #00CC88;
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark-alt);
    padding-top: 60px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-bottom: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
}

.footer__logo img {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

.footer__logo:hover img {
    opacity: 0.8;
}

.footer__nav {
    display: flex;
    gap: 32px;
}

.footer__nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.footer__nav a:hover {
    color: var(--text-light);
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    transition: var(--transition);
}

.footer__social a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.footer__social a svg {
    width: 16px;
    height: 16px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer__bottom p {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll--right {
    transform: translateX(30px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        display: none;
    }

    .hero__scroll-indicator {
        display: none;
    }

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

    .why__card--large {
        grid-row: auto;
    }

    .essence__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .essence__stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .essence__stat {
        flex: 1;
        min-width: 200px;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .product-card {
        flex: 0 0 calc(50% - 12px);
        min-width: 260px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav__link {
        font-size: 1.1rem;
    }

    .header__cta {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .why {
        padding: 80px 0;
    }

    .why__card {
        padding: 28px;
    }

    .products {
        padding: 80px 0;
    }

    .product-card {
        flex: 0 0 85%;
        min-width: unset;
    }

    .essence {
        padding: 80px 0;
    }

    .essence__stats {
        flex-direction: column;
    }

    .essence__stat {
        min-width: unset;
    }

    .contact {
        padding: 80px 0;
    }

    .footer__nav {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* Overlay for mobile nav */
.nav-overlay {
    display: none;
}

@media (max-width: 640px) {
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}
