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

:root {
    --red-main: #ff1f2e;
    --red-deep: #c30f21;
    --accent-soft: #ffe7ea;
    --bg-dark: #120207;
    --text-main: #ffffff;
    --text-muted: #f3cfd5;
    --border-soft: rgba(255, 255, 255, 0.12);
    --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.55);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-pill: 999px;
    --transition-fast: 0.15s ease-out;
    --max-width: 1080px;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, #ff5a5a 0, transparent 55%),
        radial-gradient(circle at bottom right, #7b0019 0, #050005 65%);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
}

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

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

/* Layout */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(
        to bottom,
        rgba(10, 0, 3, 0.95),
        rgba(10, 0, 3, 0.7),
        transparent
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 40px rgba(255, 255, 255, 0.38);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Navigation */

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.85rem;
}

.main-nav a {
    position: relative;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.86);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffffff, #ffd2d9);
    transition: width var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 6px;
    border-radius: 999px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out, translate 0.18s ease-out;
}

.nav-toggle span + span {
    margin-top: 4px;
}

/* Hero */

.hero-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 18px 18px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-content h1 {
    font-size: clamp(2.25rem, 4vw, 3rem);
    line-height: 1.02;
    margin: 0 0 14px;
}

.hero-lead {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 241, 244, 0.96);
    margin: 0 0 6px;
}

.hero-sub {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 18px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
    font-size: 0.78rem;
}

/* Device mock */

.hero-card {
    display: flex;
    justify-content: center;
}

.hero-device {
    width: 280px;
    border-radius: 36px;
    padding: 10px 10px 16px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 60%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(40, 0, 7, 0.9));
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
}

.hero-device::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
}

.hero-device-header {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    padding-top: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.9;
}

.dot-red {
    background: #ff5f57;
}

.dot-amber {
    background: #ffbd2e;
}

.dot-green {
    background: #28c840;
}

.hero-screen {
    border-radius: 26px;
    padding: 14px 12px 12px;
    background: radial-gradient(circle at top left, #ff5e68, #3a0010 60%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.mini-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.mini-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.mini-meta {
    font-size: 0.75rem;
    color: rgba(255, 241, 244, 0.88);
}

.habit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.habit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.24);
    font-size: 0.8rem;
    color: rgba(255, 245, 246, 0.9);
}

.habit.completed {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.28));
}

.dot-indicator {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.habit.completed .dot-indicator {
    background: #ffffff;
}

.mini-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 240, 244, 0.92);
}

.mini-value {
    font-weight: 600;
}

/* Sections */

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 36px 18px 12px;
}

.section-header h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.section-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Privacy card */

.section-privacy {
    position: relative;
}

.section-privacy::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate3d(0, 18px, 0);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 60%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.04), transparent 60%);
    pointer-events: none;
}

.policy-card {
    margin-top: 18px;
    background: #fff7f8;
    color: #2a0710;
    border-radius: var(--radius-lg);
    padding: 22px 20px 20px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.65);
    position: relative;
    z-index: 1;
}

.policy-card h3 {
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 1rem;
}

.policy-card p {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.policy-card ul {
    margin: 0 0 10px 18px;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Contact */

.section-contact {
    padding-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 22px;
    margin-top: 18px;
}

.support-form {
    background: rgba(7, 0, 3, 0.82);
    border-radius: var(--radius-lg);
    padding: 18px 16px 16px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.field span {
    color: var(--text-muted);
}

textarea,
input[type="text"],
input[type="email"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 10px;
    font-size: 0.9rem;
    color: var(--text-main);
    background: rgba(5, 0, 2, 0.9);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    font-family: inherit;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
    background: rgba(12, 0, 3, 0.95);
}

textarea {
    resize: vertical;
    min-height: 96px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-row .field {
    flex: 1 1 120px;
    margin-bottom: 0;
}

.btn-primary {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    border: 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff, #ffe4ea);
    color: #b10c22;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 12px 22px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.7);
    filter: brightness(1.03);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

.form-success {
    margin-top: 10px;
    font-size: 0.82rem;
    color: #b0ffce;
    min-height: 1.1em;
}

.contact-alt {
    align-self: stretch;
    padding: 18px 16px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.contact-alt h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1rem;
}

.contact-alt p {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: rgba(255, 241, 244, 0.9);
}

.contact-tip {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 18px 22px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 60%);
}

/* Responsive */

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

    .hero-card {
        order: -1;
    }

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

@media (max-width: 640px) {
    .header-inner {
        padding-inline: 14px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    .main-nav {
        position: absolute;
        inset-inline: 14px;
        top: 58px;
        padding: 12px 14px;
        border-radius: 16px;
        background: rgba(3, 0, 2, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        transform-origin: top;
        transform: scaleY(0.7);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s ease-out, transform 0.15s ease-out;
    }

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

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

    .nav-toggle.is-open span:first-child {
        transform: rotate(45deg);
        translate: 0 3px;
    }

    .nav-toggle.is-open span:last-child {
        transform: rotate(-45deg);
        translate: 0 -3px;
    }

    .hero-section {
        padding-top: 28px;
    }
}
