/* ═══════════════════════════════════════════════════════════
   GLASSS — Light Glassmorphism Design System
   Font: Roboto
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400&display=swap');

/* ─── TOKENS ─── */
:root {
    --bg-deep:       #eef2ff;
    --glass-bg:      rgba(255, 255, 255, 0.55);
    --glass-bg-2:    rgba(255, 255, 255, 0.72);
    --glass-bg-3:    rgba(255, 255, 255, 0.88);
    --glass-blur:    blur(24px) saturate(180%);
    --glass-border:  1px solid rgba(255, 255, 255, 0.70);
    --glass-border-2:1px solid rgba(255, 255, 255, 0.90);
    --glass-shadow:  0 8px 40px rgba(99, 120, 200, 0.14), inset 0 1px 0 rgba(255,255,255,0.80);

    --ink:    #0f172a;
    --ink-2:  #374151;
    --ink-3:  #6b7280;
    --blue:   #3b82f6;
    --blue-2: #2563eb;
    --blue-light: rgba(59,130,246,0.12);

    --prism: linear-gradient(90deg,
        #f87171, #fb923c, #facc15, #4ade80,
        #22d3ee, #60a5fa, #a78bfa, #f87171
    );

    --font: 'Roboto', system-ui, sans-serif;
    --radius:    12px;
    --radius-lg: 20px;
    --radius-pill: 100px;
}

/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    overflow-x: hidden;
}

/* ─── LIGHT AMBIENT MESH ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 70% 60% at 10% 10%,  rgba(147,197,253,0.55) 0%, transparent 65%),
        radial-gradient(ellipse 55% 50% at 92% 8%,   rgba(196,181,253,0.45) 0%, transparent 60%),
        radial-gradient(ellipse 65% 55% at 80% 90%,  rgba(110,231,183,0.35) 0%, transparent 65%),
        radial-gradient(ellipse 50% 45% at 10% 88%,  rgba(253,186,116,0.30) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 55% 48%,  rgba(167,139,250,0.20) 0%, transparent 55%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(145deg, #e8eeff 0%, #f0f4ff 50%, #ede9ff 100%);
    pointer-events: none;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
    font-family: var(--font);
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.display-3 {
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: #fff;
}

.display-4 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--ink);
}


/* ─── NAVBAR ─── */
.navbar {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border-bottom: var(--glass-border) !important;
    padding: 0.85rem 0 !important;
    box-shadow: 0 2px 20px rgba(99,120,200,0.08) !important;
}

.navbar-brand-img { height: 34px !important; }

.nav-link {
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-2) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.15s;
}

.nav-link:hover, .nav-link.active { color: var(--blue) !important; }

/* --- DROPDOWN --- */ .dropdown-menu { background: rgba(255,255,255,0.65) !important; backdrop-filter: blur(24px) saturate(180%) !important; -webkit-backdrop-filter: blur(24px) saturate(180%) !important; border: 1px solid rgba(255,255,255,0.70) !important; border-radius: var(--radius) !important; box-shadow: 0 8px 40px rgba(99, 120, 200, 0.14), inset 0 1px 0 rgba(255,255,255,0.80) !important; padding: 0.5rem !important; min-width: 180px; margin-top: 0.5rem !important; } .dropdown-menu::before, .dropdown-menu::after { display: none !important; } .dropdown-item { font-family: var(--font); font-size: 0.85rem; font-weight: 500; color: var(--ink-2) !important; border-radius: 8px; padding: 0.65rem 1rem; margin: 2px 0; transition: background 0.15s, color 0.15s; white-space: nowrap; } .dropdown-item:hover, .dropdown-item.active { background: var(--blue-light) !important; color: var(--blue) !important; } .dropdown-toggle::after { margin-left: 0.5rem; opacity: 0.6; }

/* ─── PRODUCT TABS ─── */
.product-tabs-bar {
    position: sticky;
    top: 67px;
    z-index: 1020;
    display: flex;
    background: rgba(255,255,255,0.60) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border-bottom: var(--glass-border);
    padding: 0 2rem;
}

.product-tab {
    font-family: var(--font);
    font-size: 0.80rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-3);
    padding: 0.85rem 1.4rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.product-tab:hover { color: var(--blue); border-bottom-color: rgba(59,130,246,0.3); }
.product-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ─── HERO ─── */
#top.hero-video {
    height: 100vh;
    min-height: 720px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

#top.hero-video video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(15,23,42,0) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 100%;
    padding: 2rem 5vw;
    background: rgba(2,8,20,0.30);
    backdrop-filter: blur(4px) saturate(110%);
    -webkit-backdrop-filter: blur(4px) saturate(110%);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-content-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4vw;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 4vw;
}

.hero-right .hero-subtitle { margin: 0; }

@media (max-width: 768px) {
    .hero-content-inner { flex-direction: column; gap: 1.5rem; }
    .hero-right { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; }
}

.hero-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.hero-label::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: #93c5fd;
    flex-shrink: 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: rgba(255,255,255,0.95);
    max-width: 500px;
    margin: 1.5rem 0 2.75rem;
    line-height: 1.65;
}

/* ─── BUTTONS ─── */
.btn {
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: var(--radius-pill);
    padding: 0.85rem 1.75rem;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59,130,246,0.40);
}

.btn-primary:hover {
    background: var(--blue-2);
    box-shadow: 0 8px 28px rgba(59,130,246,0.55);
    transform: translateY(-2px);
    color: #fff;
}

/* Ghost for hero dark context */
.btn-accent {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(12px);
}

.btn-accent:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.45);
}

.btn-outline-primary {
    background: var(--glass-bg) !important;
    color: var(--blue) !important;
    border: 1px solid rgba(59,130,246,0.35) !important;
    backdrop-filter: blur(12px);
}

.btn-outline-primary:hover {
    background: rgba(59,130,246,0.10) !important;
    border-color: var(--blue) !important;
    transform: translateY(-1px);
}

/* ─── SECTION LABEL ─── */
.section-label {
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blue);
    flex-shrink: 0;
}

/* ─── SECTIONS ─── */
section { padding: 110px 0; position: relative; }
#top.hero-video { padding: 0; }

section.bg-light {
    background: rgba(255,255,255,0.25) !important;
    border-top:  var(--glass-border);
    border-bottom: var(--glass-border);
}

section.bg-dark { background: transparent !important; }

/* ─── GLASS CARDS ─── */
.card-glass {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 2.5rem !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: background 0.28s, border-color 0.28s, transform 0.28s, box-shadow 0.28s !important;
    box-shadow: var(--glass-shadow) !important;
}

/* Blue top edge on hover — disabled */
.card-glass::before { display: none; }

/* Shimmer sweep */
.card-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.45) 50%,
        transparent 70%
    );
    transform: translateX(-120%);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.card-glass:hover {
    background: var(--glass-bg-2) !important;
    border-color: rgba(255,255,255,0.90) !important;
    transform: translateY(-5px) !important;
    box-shadow:
        0 20px 60px rgba(99,120,200,0.18),
        0 0 0 1px rgba(255,255,255,0.80),
        inset 0 1px 0 rgba(255,255,255,0.95) !important;
}

.card-glass:hover::before { opacity: 1; }
.card-glass:hover::after  { transform: translateX(200%); }

.card-glass img {
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.50);
    box-shadow: 0 4px 16px rgba(99,120,200,0.10);
    width: 100%;
    display: block;
}

.card-glass h2, .card-glass h3 {
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 0.65rem;
    line-height: 1.2;
}

.card-glass p {
    color: var(--ink-2);
    font-size: 0.95rem;
    line-height: 1.65;
    flex-grow: 1;
    margin: 0;
}

/* ─── BADGES ─── */
.badge {
    font-family: var(--font);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 0.3em 0.7em;
}

.bg-primary-soft {
    background: var(--blue-light) !important;
    color: var(--blue) !important;
    border: 1px solid rgba(59,130,246,0.25);
}

/* ─── FORMS ─── */
.form-control {
    font-family: var(--font);
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    border: var(--glass-border) !important;
    border-radius: var(--radius-pill) !important;
    color: var(--ink) !important;
    font-size: 0.92rem;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.form-control::placeholder { color: var(--ink-3); }

.form-control:focus {
    outline: none;
    border-color: rgba(59,130,246,0.55) !important;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.10) !important;
    background: var(--glass-bg-2) !important;
}

/* ─── FOOTER ─── */
footer {
    background: rgba(255,255,255,0.50) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border-top: var(--glass-border) !important;
}

footer p, footer a { color: var(--ink-3) !important; }

/* ─── FLICKITY ─── */
.flickity-slider { display: flex !important; }
.flickity-slider > div { height: auto !important; display: flex !important; }
#features .card-glass { height: 460px; }
#features .card-glass img { height: 200px; object-fit: cover; object-position: top; }

/* Components carousel — uniform card size */
#glasshopper-components .d-block {
    width: 320px !important;
    flex-shrink: 0;
    padding: 0 12px !important;
}

#glasshopper-components .card-glass,
.flickity-slider .card-glass.text-center {
    height: 310px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#glasshopper-components .card-glass img,
.flickity-slider .card-glass.text-center img {
    height: 180px;
    width: 100%;
    object-fit: contain;
    object-position: center;
    background: rgba(248,250,255,0.6);
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

#glasshopper-components .card-glass p,
.flickity-slider .card-glass.text-center p {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 1rem;
}

/* ─── SUBPAGE HERO ─── */
#top:not(.hero-video) {
    padding: 165px 0 85px;
    position: relative;
    overflow: hidden;
}

#top:not(.hero-video)::after {
    display: none;
}

#top:not(.hero-video) .display-3 { color: var(--ink); }
#top:not(.hero-video) .hero-label { color: var(--blue); }

/* ─── REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.60s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.60s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1 !important; transform: none !important; }

/* ─── COMING FEATURES ─── */
.coming-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    height: 100%;
}


.coming-card-img-wrap {
    position: relative;
    margin: 0 0 1rem;
}

.coming-card-badge {
    position: static;
    transform: none;
    vertical-align: middle;
    font-family: var(--font);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 0.3em 0.7em;
    background: var(--blue);
    color: #fff;
    border: none;
    z-index: 1;
}

.coming-card-img {
    width: 100%;
    display: block;
    border-radius: 10px;
    margin: 0;
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 6px 24px rgba(99,120,200,0.14);
}

.coming-card-img-wrap { margin-bottom: 1rem; }

.coming-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 0.4rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.coming-desc {
    color: var(--ink-2);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    section { padding: 80px 0; }
    .hero-content { padding: 0 1.5rem; }
    .display-3 { font-size: 3rem; }
    .display-4 { font-size: 1.9rem; }
    .card-glass { padding: 2rem !important; }
    .product-tabs-bar { padding: 0 1rem; }
}
