: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%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: auto, auto, auto, 48px 48px, 48px 48px;
}

/* 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;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* 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: linear-gradient(180deg, rgba(5, 10, 16, 0.9), rgba(5, 10, 16, 0.6));
    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: rgba(14, 27, 44, 0.7);
    border: 1px solid rgba(52, 152, 219, 0.35);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.brand__logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

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

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

.nav__links a[aria-current="page"] {
    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::before {
    content: "";
    position: absolute;
    inset: -10% -20% auto -20%;
    height: 60%;
    background: radial-gradient(circle at 30% 40%, rgba(46, 204, 113, 0.18), transparent 55%),
        radial-gradient(circle at 70% 20%, rgba(52, 152, 219, 0.2), transparent 60%);
    opacity: 0.9;
    z-index: 0;
}

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

.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;
}

@media (hover: hover) {
    .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::after {
    content: "";
    position: absolute;
    inset: auto 0 -40% 0;
    height: 60%;
    background: radial-gradient(circle at 50% 0%, rgba(52, 152, 219, 0.16), transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.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);
}

.footer-links {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

/* Legal Pages */
.legal {
    padding-top: 40px;
}

.legal-shell {
    background: linear-gradient(160deg, rgba(52, 152, 219, 0.12), rgba(46, 204, 113, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 28px 28px 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.legal-shell::after {
    content: "";
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 70%;
    background: radial-gradient(circle at 40% 30%, rgba(52, 152, 219, 0.16), transparent 60%),
        radial-gradient(circle at 70% 40%, rgba(46, 204, 113, 0.12), transparent 65%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.legal-shell > * {
    position: relative;
    z-index: 1;
}

.title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
}

.lead {
    color: var(--text-muted);
    margin-bottom: 16px;
    max-width: 840px;
}

.updated {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 26px;
}

.note {
    color: rgba(232, 243, 255, 0.78);
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 10px 0 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    background: var(--bg-surface-hover);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.card ul {
    margin: 10px 0 0 20px;
    color: var(--text-muted);
    padding: 0;
}

.card li {
    margin: 6px 0;
}

[data-page="delete"] .wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

[data-page="delete"] main {
    padding: 30px 0 20px;
}

[data-page="delete"] .delete-main .lead {
    max-width: 720px;
}

[data-page="delete"] .delete-cards {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

[data-page="delete"] .delete-main {
    background: linear-gradient(160deg, rgba(52, 152, 219, 0.12), rgba(46, 204, 113, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 28px 28px 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

[data-page="delete"] .title {
    background: linear-gradient(135deg, #ffffff, #a5d8ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-page="delete"] footer {
    text-align: left;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 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: center;
    }

    .lang-switch {
        align-self: center;
    }

    .title {
        font-size: 1.75rem;
    }

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

/* Gallery */
.gallery-scroll {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 10px 4px 22px;
}

.screenshot-story {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.screenshot-story__image {
    background: #0b1620;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.screenshot-story__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-story__image--stack {
    position: relative;
    padding: 12px;
}

.screenshot-story__image--stack img {
    height: auto;
    object-fit: contain;
    animation: screenshot-rotate 10s infinite ease-in-out;
}

.screenshot-story__image--stack img + img {
    position: absolute;
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    animation-delay: 5s;
}

@keyframes screenshot-rotate {
    0%,
    45% {
        opacity: 1;
    }
    50%,
    95% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .screenshot-story__image--stack img {
        animation: none;
    }

    .screenshot-story__image--stack img + img {
        display: none;
    }
}

.screenshot-story__content {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.screenshot-story__title {
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
}

.screenshot-story__lead {
    margin: 0;
    color: #c2d5ea;
}

.screenshot-story__body {
    margin: 0;
}

.screenshot-story__section h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #fff;
}

.screenshot-story__section p {
    margin: 0;
}

.screenshot-story__section ul {
    margin: 0 0 0 18px;
    padding: 0;
    color: var(--text-muted);
}

.screenshot-story__section li {
    margin: 6px 0;
}

.screenshot-story__closing {
    margin: 0;
    color: #d6e8ff;
    font-weight: 600;
}

@media (max-width: 860px) {
    .screenshot-story {
        grid-template-columns: 1fr;
    }

    .screenshot-story__image {
        max-height: none;
        padding: 8px 0;
        align-items: center;
    }

    .screenshot-story__image img {
        height: auto;
        max-height: 520px;
        object-fit: contain;
    }
}

/* Screenshot Placeholders */
.screenshot-placeholder {
    width: 100%;
    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;
}
