/* ===================================================================
   samoplat.ru — Landing Page Styles
   Dark premium theme inspired by Adonic template
   =================================================================== */

/* --- Custom Properties --- */
:root {
    --bg: #0B0B0C;
    --bg-lighter: #111113;
    --bg-card: #161618;
    --accent: #D4A843;
    --accent-hover: #E5BE5A;
    --text: #FFFFFF;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;
    --border: #1F1F23;
    --success: #34D399;
    --error: #F87171;

    --font-heading: 'Antonio', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container: 1200px;
    --gap: 2rem;
    --radius: 4px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}

ul {
    list-style: none;
}

input,
textarea {
    font: inherit;
    color: inherit;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Typography --- */
.accent {
    color: var(--accent);
}

.section__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.3);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--full {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--loading .btn__text {
    opacity: 0;
}

.btn--loading .btn__loader {
    opacity: 1;
}

.btn__loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--bg);
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================================
   HEADER
   =================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition);
}

.header--scrolled {
    background: rgba(11, 11, 12, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

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

.nav__logo {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

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

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

.nav__link--cta {
    color: var(--bg) !important;
    background: var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
}

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

.nav__link--cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.nav__toggle,
.nav__close {
    display: none;
    color: var(--text);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient accent */
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.hero__label {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 360px;
    margin-top: 2.5rem;
}

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

.hero__value {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--text);
}

.hero__divider {
    width: 60px;
    height: 1px;
    background: var(--border);
}

.hero__domain {
    text-align: right;
}

.hero__domain-name {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

/* --- HERO Modified Layout --- */
.hero__grid--modified {
    align-items: flex-end;
}

.hero__content--modified .hero__label {
    margin-bottom: 0;
}

.hero__cta--modified {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1.5rem;
    order: 3;
}

.hero__cta--modified .hero__description {
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.hero__cta-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

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




/* ===================================================================
   SECTIONS (common)
   =================================================================== */
.section {
    padding: 7rem 0;
}

.benefits {
    border-top: 1px solid var(--border);
}

/* ===================================================================
   BENEFITS
   =================================================================== */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: all var(--transition);
}

.benefit-card:hover {
    border-color: rgba(212, 168, 67, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.benefit-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 67, 0.08);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.benefit-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.benefit-card__text {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===================================================================
   USE CASES
   =================================================================== */
.usecases {
    border-top: 1px solid var(--border);
}

.usecases__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.usecase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.usecase-card:hover {
    border-color: rgba(212, 168, 67, 0.3);
    transform: translateY(-2px);
}

.usecase-card__number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(212, 168, 67, 0.1);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.usecase-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.usecase-card__text {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===================================================================
   OFFER / FORM
   =================================================================== */
.offer {
    border-top: 1px solid var(--border);
    background: var(--bg-lighter);
}

.offer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.offer__text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.offer__text strong {
    color: var(--accent);
}

.offer__features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.offer__feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* --- Form --- */
.offer__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__group {
    position: relative;
}

.form__input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0 0.75rem;
    font-size: 0.9375rem;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
}

.form__input:focus {
    border-bottom-color: var(--accent);
}

.form__label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 0.9375rem;
    color: var(--text-dim);
    pointer-events: none;
    transition: all var(--transition);
}

.form__input:focus~.form__label,
.form__input:not(:placeholder-shown)~.form__label {
    top: -0.25rem;
    font-size: 0.75rem;
    color: var(--accent);
}

.form__textarea {
    resize: vertical;
    min-height: 80px;
}

.form__error {
    display: none;
    font-size: 0.8125rem;
    color: var(--error);
    margin-top: 0.375rem;
}

.form__error.visible {
    display: block;
}

/* Honeypot */
.form__hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Checkbox */
.form__group--checkbox {
    padding-top: 0.5rem;
}

.form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.form__checkbox-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form__checkbox-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 3px;
    margin-top: 1px;
    transition: all var(--transition);
    position: relative;
}

.form__checkbox-label input:checked~.form__checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.form__checkbox-label input:checked~.form__checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    min-width: 280px;
    max-width: 420px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transform: translateX(calc(100% + 1.5rem));
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.toast.hiding {
    opacity: 0;
    transform: translateX(calc(100% + 1.5rem));
}

.toast--success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: var(--success);
}

.toast--error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: var(--error);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copy {
    font-size: 0.8125rem;
    color: var(--text-dim);
}

.footer__top {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.footer__top:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

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

    .hero__content {
        order: 2;
    }

    .hero__domain {
        order: 1;
        text-align: center;
    }

    .hero__description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__cta--modified {
        align-items: center;
    }

    .hero__cta-action {
        justify-content: center;
    }

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

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

    .offer__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav__toggle {
        display: block;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 330px;
        height: 100vh;
        background: var(--bg-lighter);
        border-left: 1px solid var(--border);
        padding: 5rem 2rem 2rem;
        transition: right var(--transition);
        z-index: 1001;
    }

    .nav__menu.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .nav__link {
        font-size: 1rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
    }

    .hero {
        min-height: auto;
        padding: 7rem 0 3rem;
    }

    .hero__domain-name {
        font-size: clamp(2.5rem, 14vw, 5rem);
    }

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

    .hero__divider {
        display: none;
    }

    .section {
        padding: 4rem 0;
    }

    .section__title {
        margin-bottom: 2rem;
    }

    .benefit-card,
    .usecase-card {
        padding: 2rem 1.5rem;
    }

    .offer__grid {
        gap: 2rem;
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 999;
    visibility: hidden;
}

.nav-overlay.active {
    visibility: visible;
}