:root {
    --bg: #050816;
    --bg-elevated: rgba(15, 23, 42, 0.95);
    --bg-soft: rgba(15, 23, 42, 0.85);
    --accent: #22c55e;
    --accent-soft: rgba(34, 197, 94, 0.1);
    --accent-strong: #16a34a;
    --text: #e5e7eb;
    --text-soft: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.25);
    --danger: #f97373;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #1f2937 0, #020617 40%, #000 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.6), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.logo__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 0, #a7f3d0, #22c55e 40%, #166534 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}

.logo__text {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__link {
    font-size: 0.9rem;
    color: var(--text-soft);
    padding: 0.4rem 0;
    position: relative;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #4ade80);
    border-radius: 999px;
    transition: width 0.18s ease-out;
}

.nav__link:hover {
    color: var(--text);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--primary {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.07);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.nav__link--primary::after {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.hero {
    padding: 4rem 0 3rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.75rem;
    align-items: center;
}

.hero__text h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin: 0 0 1rem;
    letter-spacing: -0.04em;
}

.highlight {
    background-image: linear-gradient(90deg, #a7f3d0, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    margin: 0 0 1.5rem;
    color: var(--text-soft);
    max-width: 32rem;
    font-size: 0.98rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    border-radius: 999px;
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out, color 0.12s ease-out;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #022c22;
    box-shadow: 0 18px 40px rgba(34, 197, 94, 0.35);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 50px rgba(34, 197, 94, 0.5);
}

.btn--ghost {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--text-soft);
}

.btn--ghost:hover {
    border-color: rgba(148, 163, 184, 0.9);
    color: var(--text);
    background: rgba(15, 23, 42, 1);
}

.btn--full {
    width: 100%;
    margin-top: 1rem;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.hero__badges span {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.8);
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 100%;
    max-width: 360px;
    border-radius: 26px;
    padding: 1.5rem 1.25rem;
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.2), transparent 50%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.25), transparent 55%),
                var(--bg-elevated);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(20px);
}

.hero-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-soft);
}

.status {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.hero-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.stat {
    padding: 0.7rem 0.7rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.stat__label {
    font-size: 0.75rem;
    color: var(--text-soft);
}

.stat__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.stat__chip {
    display: inline-flex;
    align-items: center;
    margin-top: 0.4rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    background: rgba(30, 64, 175, 0.4);
    color: #e0f2fe;
}

.stat__chip--green {
    background: rgba(22, 163, 74, 0.25);
    color: #bbf7d0;
}

.hero-card__devices {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.device {
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
}

.device--on {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
}

.device__name {
    font-weight: 500;
}

.device__state {
    color: var(--text-soft);
    font-size: 0.78rem;
}

.section {
    padding: 3.5rem 0;
}

.section--light {
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.2), transparent 55%),
                rgba(15, 23, 42, 0.9);
}

.section--highlight {
    background: radial-gradient(circle at top center, rgba(34, 197, 94, 0.25), transparent 55%),
                linear-gradient(130deg, #022c22, #020617 60%, #0b1120);
}

.section__content {
    max-width: 960px;
    margin: 0 auto;
}

.section__content--center {
    text-align: center;
}

.section__header {
    text-align: left;
    margin-bottom: 2rem;
}

.section__header h2 {
    font-size: 1.7rem;
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
}

.section__header p {
    margin: 0;
    color: var(--text-soft);
    max-width: 34rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.feature-card {
    padding: 1.25rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.75);
}

.feature-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.benefit-item {
    padding: 1.1rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-subtle);
}

.benefit-item__tag {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    margin-bottom: 0.5rem;
}

.benefit-item h3 {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
}

.benefit-item p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.steps__item {
    padding: 1.1rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border-subtle);
    position: relative;
}

.steps__item h3 {
    margin: 0 0 0.45rem;
    font-size: 0.98rem;
}

.steps__item p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.cta-form {
    margin-top: 1.8rem;
    padding: 1.8rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(15, 23, 42, 0.96);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
}

.cta-form__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.field {
    text-align: left;
}

.field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-bottom: 0.35rem;
}

.field input {
    width: 100%;
    padding: 0.7rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.95);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.field input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

.field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3), 0 0 0 8px rgba(34, 197, 94, 0.08);
    background: rgba(15, 23, 42, 1);
}

.cta-form__note {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.cta-form__message {
    margin-top: 0.6rem;
    font-size: 0.85rem;
}

.cta-form__message--success {
    color: #bbf7d0;
}

.cta-form__message--error {
    color: var(--danger);
}

.footer {
    padding: 1.3rem 0 1.6rem;
    border-top: 1px solid rgba(15, 23, 42, 1);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617 50%, #000);
}

.footer__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.footer__secondary {
    opacity: 0.7;
}

@media (max-width: 960px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__visual {
        order: -1;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefits-grid,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .header__content {
        padding-inline: 0.25rem;
    }

    .nav {
        position: absolute;
        top: 56px;
        right: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.4);
        box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        min-width: 180px;
        transform-origin: top right;
        transform: scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s ease-out, transform 0.15s ease-out;
    }

    .nav--open {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero__text h1 {
        font-size: 2.1rem;
    }

    .section__header {
        text-align: left;
    }

    .section__header p {
        max-width: none;
    }

    .features-grid,
    .benefits-grid,
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .cta-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
