/* style.css */

/* Custom Properties - Dark Theme Array */
:root {
    --bg-dark: #121316;
    --bg-panel: #1a1c23;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent-electric: #3e6ae1;
    --accent-hover: #2b50bd;
    --glass-bg: rgba(26, 28, 35, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

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

/* -------------------------------------
   NAVIGATION BAR
   ------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 4rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-mark {
    color: var(--accent-electric);
    margin-right: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent-electric);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-electric);
    color: #fff;
    box-shadow: 0 4px 15px rgba(62, 106, 225, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 106, 225, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.6rem 1.4rem;
}

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

/* -------------------------------------
   HERO SECTION
   ------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax subtle */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18,19,22,0.3) 0%, rgba(18,19,22,1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: -5vh;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent-electric);
    animation: drop 2s infinite cubic-bezier(0.645, 0.045, 0.355, 1);
}

@keyframes drop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* -------------------------------------
   SUITES SECTION
   ------------------------------------- */
.suites {
    padding: 8rem 4rem;
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem auto;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.suite-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.suite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-electric);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.suite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(62, 106, 225, 0.3);
}

.suite-card:hover::before {
    transform: scaleX(1);
}

.suite-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.suite-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    min-height: 65px;
}

.card-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.card-pills span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
}

.card-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.suite-card:hover .card-link {
    color: var(--accent-electric);
}

/* -------------------------------------
   FEATURES SPLIT
   ------------------------------------- */
.features {
    padding: 8rem 4rem;
    border-top: 1px solid var(--glass-border);
    background: radial-gradient(circle at right center, rgba(62,106,225,0.05) 0%, transparent 50%);
}

.feature-splitter {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 6rem;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    letter-spacing: -1px;
    margin-bottom: 3rem;
    line-height: 1.1;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 2rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background: var(--accent-electric);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-electric);
}

.feature-list strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.feature-list p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.feature-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-electric) 0%, rgba(18,19,22,0) 100%);
    filter: blur(60px);
    opacity: 0.3;
    z-index: 1;
}

.code-snippet {
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.code-snippet:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.code-snippet pre {
    color: #a1a1a6;
    font-size: 0.9rem;
    overflow-x: hidden;
}

.code-snippet span.keyword { color: #eb5757; }
.code-snippet span.string { color: #f2c94c; }

/* -------------------------------------
   FOOTER
   ------------------------------------- */
.footer {
    background: #0a0b0c;
    padding: 6rem 4rem 2rem 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 2;
    min-width: 300px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}


/* -------------------------------------
   PRODUCT CATALOG SECTIONS
   ------------------------------------- */
.catalog-section {
    padding: 5rem 4rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
}

.catalog-section:nth-child(even) {
    background: #0f1013;
}

.catalog-grid {
    max-width: 900px;
    margin: 0 auto;
}

.app-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition-smooth);
    border-radius: 8px;
    margin-bottom: 2px;
}

.app-row:hover {
    background: rgba(62, 106, 225, 0.04);
    border-color: rgba(62, 106, 225, 0.15);
}

.app-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.app-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.buy-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.price {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.checkout-btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
}

.checkout-btn:hover {
    box-shadow: 0 0 20px rgba(62, 106, 225, 0.5);
}

.feature-list code {
    background: rgba(62, 106, 225, 0.15);
    color: var(--accent-electric);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* -------------------------------------
   ANIMATIONS UTILS (used by JS)
   ------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-left {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.visible, .fade-left.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }

/* -------------------------------------
   RESPONSIVE
   ------------------------------------- */
@media (max-width: 1024px) {
    .feature-splitter {
        flex-direction: column;
        text-align: center;
    }
    .feature-list li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .navbar { padding: 1rem 2rem; }
    .nav-links { display: none; }
    .suites, .features, .footer { padding: 4rem 2rem; }
}
