/* ==========================================================================
   Vista Phx — Styles
   ========================================================================== */

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

:root {
    --bg-primary: #08080e;
    --bg-secondary: #0e0e18;
    --bg-card: #111120;
    --bg-card-hover: #16162a;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    --accent: #0088cc;
    --accent-light: #33aaee;
    --accent-glow: rgba(0, 136, 204, 0.15);
    --accent-glow-strong: rgba(0, 136, 204, 0.3);

    --text-primary: #ededf4;
    --text-secondary: #9999b0;
    --text-muted: #6a6a82;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

.section {
    padding: 120px 0;
    position: relative;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
    background: rgba(8, 8, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s ease;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-outline-sm {
    padding: 8px 20px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    padding: 20px 24px 30px;
    background: rgba(8, 8, 14, 0.95);
    backdrop-filter: blur(20px);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.mobile-link:hover {
    color: var(--text-primary);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 40%, rgba(0, 136, 204, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 30% 60%, rgba(0, 68, 148, 0.06) 0%, transparent 60%),
        linear-gradient(to bottom, transparent 60%, var(--bg-primary) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(0, 136, 204, 0.08);
    border: 1px solid rgba(0, 136, 204, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.6); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 136, 204, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, #004494 0%, #33aaee 50%, #004494 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #005fa3 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.35);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

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

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; height: 60px; }
    50% { opacity: 1; height: 40px; }
}

/* ---------- Announcement ---------- */
.announcement {
    padding-top: 80px;
}

.announcement-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.announcement-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
}

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

.announcement-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
}

.announcement-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    line-height: 1.2;
}

.announcement-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.announcement-btn {
    margin-top: 12px;
}

.announcement-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
}

/* ---------- Section Header ---------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ---------- Products ---------- */
.products {
    background: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.product-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-image {
    padding: 32px 32px 0;
    height: 260px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.product-img {
    width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 10px;
    object-fit: contain;
}

.product-info {
    padding: 28px 32px 36px;
}

.product-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.product-badge.badge-legacy {
    color: var(--text-secondary);
    background: rgba(136, 136, 160, 0.1);
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.product-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.25s ease;
}

.product-link:hover {
    gap: 12px;
}

.product-link .btn-arrow {
    width: 16px;
    height: 16px;
}

/* ---------- Prior Generations ---------- */
.prior-generations {
    margin-top: 100px;
    padding-top: 80px;
    border-top: 1px solid var(--border);
}

.prior-generations .section-header {
    margin-bottom: 48px;
}

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

.legacy-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: all 0.35s var(--ease-out);
    cursor: pointer;
}

.legacy-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.legacy-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.legacy-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.legacy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.25s ease;
}

.legacy-card:hover .legacy-link {
    gap: 12px;
}

.legacy-link .btn-arrow {
    width: 14px;
    height: 14px;
}

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

@media (max-width: 768px) {
    .legacy-grid {
        grid-template-columns: 1fr;
    }

    .prior-generations {
        margin-top: 64px;
        padding-top: 56px;
    }
}

/* ---------- Vision ---------- */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.vision-content {
    padding-top: 20px;
}

.vision-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.vision-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: all 0.35s var(--ease-out);
}

.value-card:hover {
    border-color: rgba(0, 136, 204, 0.15);
    background: var(--bg-card-hover);
}

.value-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

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

.value-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.value-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------- CTA / Contact ---------- */
.cta {
    background: var(--bg-secondary);
}

.cta-card {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), transparent 50%, rgba(0, 136, 204, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.cta-actions {
    margin-bottom: 20px;
}

.cta-email {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

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

.footer-bottom {
    text-align: center;
}

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

/* ---------- Animations ---------- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

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

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .announcement-card {
        padding: 40px 24px;
    }

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

    .cta-card {
        padding: 48px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 48px;
    }

    .products-grid {
        max-width: 100%;
    }

    .product-info {
        padding: 20px 24px 28px;
    }

    .product-image {
        padding: 24px 24px 0;
    }
}

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

    .section {
        padding: 64px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}
