:root {
    /* Brand Colors */
    --color-primary: #2ecc71;
    --color-primary-dark: #27ae60;
    --color-accent: #3498db;
    --color-accent-dark: #2980b9;

    /* Backgrounds */
    --bg-body: #050a10;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-surface-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(14, 27, 44, 0.7);

    /* Text */
    --text-main: #e8f3ff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Borders */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);

    /* Layout */
    --container-width: 1200px;
    --header-height: 72px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Effects */
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(46, 204, 113, 0.15);
    --blur-md: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(46, 204, 113, 0.08) 0%, transparent 40%);
}

/* Typography */
h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a5d8ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.4);
}

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

.btn--glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
}

/* Header */
header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 10, 16, 0.8);
    backdrop-filter: blur(var(--blur-md));
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
}

.brand__logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
}

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

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

.lang-switch select {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* Sections Global */
section {
    padding: 80px 0;
}

/* Hero */
.hero {
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: #63b3ed;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    display: grid;
    gap: 12px;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.hero-points li::before {
    content: "✓";
    color: var(--color-primary);
    font-weight: 800;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 48px;
    /* Main Frame */
    box-shadow:
        0 0 0 4px #2c3e50,
        /* Inner bezel */
        0 0 0 8px #1a2736,
        /* Outer frame */
        0 30px 60px rgba(0, 0, 0, 0.6);
    /* Drop shadow */
    margin: 0 auto;
    overflow: hidden;
    transform: rotate(-12deg) translateY(20px);
    transition: transform 0.5s ease;
}

/* Side Buttons */
.phone-mockup::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 100px;
    width: 4px;
    height: 30px;
    background: #2c3e50;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 40px 0 #2c3e50;
    /* Volume Down button via shadow */
}

.phone-mockup::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 140px;
    width: 4px;
    height: 50px;
    background: #2c3e50;
    border-radius: 0 4px 4px 0;
}

/* Dynamic Island / Notch */
.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    z-index: 20;
}

/* Screen Glare */
.phone-reflection {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.02) 50%, transparent 55%);
    pointer-events: none;
    z-index: 10;
}

.hero:hover .phone-mockup {
    transform: rotate(-8deg) translateY(10px);
}

.screen-content {
    padding: 20px;
    height: 100%;
    background: linear-gradient(180deg, #132435 0%, #0e1b28 100%);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-surface-hover);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

/* Pricing / Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
}

.plan-card.premium {
    background: linear-gradient(145deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.plan-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.plan-features li {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.plan-features li::before {
    content: "•";
    color: var(--color-primary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .phone-mockup {
        transform: rotate(0);
        margin-top: 40px;
    }
}

@media (max-width: 720px) {
    header {
        height: auto;
        padding: 12px 0;
    }

    .nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav__links {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: flex-start;
    }

    .lang-switch {
        align-self: flex-start;
    }
}

/* Screenshot Placeholders */
.screenshot-placeholder {
    min-width: 220px;
    height: 440px;
    background: #1a2736;
    border-radius: 20px;
    border: 4px solid #2c3e50;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.screenshot-placeholder::before {
    content: "";
    display: block;
    height: 30px;
    background: #2c3e50;
    margin-bottom: 20px;
}

.screenshot-placeholder__content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.skeleton-block {
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* Screen Content UI */
.screen-content {
    background: linear-gradient(180deg, #1b281f 0%, #0e1210 100%);
    padding: 0;
    font-family: 'Manrope', sans-serif;
    color: #fff;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Status Bar */
.status-bar {
    padding: 14px 20px 0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 30;
}

.status-icons {
    display: flex;
    gap: 6px;
}

/* Header */
.app-header {
    padding: 24px 20px 16px;
    text-align: center;
}

.app-header h2 {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 6px;
    background: none;
    -webkit-text-fill-color: initial;
    color: #fff;
}

.app-header p {
    color: #8fa394;
    font-size: 13px;
    margin: 0;
}

/* Search */
.search-bar {
    margin: 0 16px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8fa394;
}

/* Filters */
.filters {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-chip {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    white-space: nowrap;
    font-size: 12px;
    color: #8fa394;
}

.filter-chip.active {
    background: #2ecc71;
    color: #0b1620;
    font-weight: 700;
}

/* List */
.plant-list {
    flex: 1;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: hidden;
    /* static mockup */
}

.plant-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plant-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.plant-info {
    flex: 1;
}

.plant-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.plant-loc {
    color: #8fa394;
    font-size: 12px;
}

.plant-status {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.plant-status.warning {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.2);
}

.plant-status.alert {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.2);
}

.plant-status.ok {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.2);
}

/* FAB */
.fab-add {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #2ecc71;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b1620;
    font-size: 28px;
    font-weight: 300;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

/* Nav */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 16px 10px 24px;
    background: rgba(14, 27, 44, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 10px;
}

.nav-item.active {
    color: #2ecc71;
}

.nav-item .icon {
    font-size: 20px;
}

/* SmarsLab Specific Styles */

/* Lab Stage */
.lab-stage {
    position: relative;
    height: 520px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border-light);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.lab-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 120%, rgba(52, 152, 219, 0.1), transparent 70%);
}

/* Gadgets Shelf */
.gadgets {
    position: absolute;
    right: 4%;
    bottom: 230px;
    display: flex;
    gap: 18px;
    align-items: flex-end;
    z-index: 2;
}

.gadget-item {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(5, 10, 16, 0.6);
    border: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow:
        0 0 10px rgba(52, 152, 219, 0.1),
        inset 0 0 10px rgba(52, 152, 219, 0.05);
    font-size: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* Tech/Holo corner effect using pseudo-elements */
.gadget-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(45deg, transparent 40%, rgba(52, 152, 219, 0.8) 50%, transparent 60%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}

.gadget-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow:
        0 0 20px rgba(52, 152, 219, 0.3),
        inset 0 0 15px rgba(52, 152, 219, 0.1);
    background: rgba(52, 152, 219, 0.1);
}

.gadget-item:hover::before {
    opacity: 1;
}

.gadget-item.duck {
    background: rgba(241, 196, 15, 0.05);
    border-color: rgba(241, 196, 15, 0.3);
}

.gadget-item.duck::before {
    background: linear-gradient(45deg, transparent 40%, rgba(241, 196, 15, 0.8) 50%, transparent 60%);
}

.gadget-item.duck:hover {
    box-shadow:
        0 0 20px rgba(241, 196, 15, 0.3),
        inset 0 0 15px rgba(241, 196, 15, 0.1);
    border-color: rgba(241, 196, 15, 0.6);
    background: rgba(241, 196, 15, 0.1);
}

/* Beakers */
.beakers {
    position: absolute;
    bottom: 0;
    left: 6%;
    right: 6%;
    height: 200px;
    display: flex;
    gap: 24px;
    align-items: flex-end;
    border-bottom: 4px solid var(--border-light);
    padding-bottom: 20px;
}

.beaker {
    position: relative;
    width: 100px;
    height: 140px;
    border-radius: 16px 16px 4px 4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.beaker::after {
    /* Lip */
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.beaker__liquid {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    height: 60%;
    background: linear-gradient(180deg, rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.9));
    border-radius: 0 0 8px 8px;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
    opacity: 0.8;
}

/* Bubbles */
.code-bubble {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #a5d8ff;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.8);
    pointer-events: none;
    animation: rise 4.5s linear infinite;
    z-index: 10;
}

@keyframes rise {
    0% {
        transform: translate(-50%, 0) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -180px) scale(1.2);
        opacity: 0;
    }
}

/* Services Grid */
.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* --- Lab Atmosphere Enhancements --- */

/* 1. Background Grid */
.lab-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(52, 152, 219, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 152, 219, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    animation: gridScroll 20s linear infinite;
    opacity: 0.5;
}

@keyframes gridScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(40px);
    }
}

/* 2. Scanner Light */
.lab-scanner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    box-shadow: 0 0 15px #3498db;
    opacity: 0.6;
    animation: scan 4s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes scan {

    0%,
    100% {
        top: 0;
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }

    50% {
        top: 100%;
    }
}

/* 3. Holographic Projector */
.holo-projector {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    z-index: 1;
    text-align: center;
    pointer-events: none;
}

.holo-beam {
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, rgba(52, 152, 219, 0), rgba(52, 152, 219, 0.15));
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    animation: holoPulse 3s infinite alternate;
}

.holo-data {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #3498db;
    text-shadow: 0 0 5px #3498db;
    margin-top: -20px;
    opacity: 0.8;
}

.holo-data span {
    display: block;
    animation: holoType 4s steps(20) infinite;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
}

@keyframes holoPulse {
    0% {
        opacity: 0.3;
        height: 110px;
    }

    100% {
        opacity: 0.6;
        height: 130px;
    }
}

/* 4. Steam / Vapor */
.steam-container {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 50px;
    overflow: hidden;
    pointer-events: none;
}

.steam {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: steamRise 3s infinite ease-out;
    opacity: 0;
}

.steam:nth-child(2) {
    animation-delay: 1.5s;
    width: 25px;
    height: 25px;
    left: 45%;
}

@keyframes steamRise {
    0% {
        transform: translate(-50%, 20px) scale(0.5);
        opacity: 0;
    }

    30% {
        opacity: 0.4;
    }

    100% {
        transform: translate(-40%, -40px) scale(2);
        opacity: 0;
    }
}