/* ============================================================
   STYLE.CSS — Shelly Partner Landing Page v2
   Interactive, vibrant design inspired by shelly.com
   ============================================================ */

/* --- Fonts --- */
@font-face {
    font-family: "Manrope";
    src: url(https://fonts.gstatic.com/s/manrope/v20/xn7gYHE41ni1AdIRggqxSvfedN62Zw.woff2) format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

/* --- Variables --- */
:root {
    /* Core palette */
    --c-black: #000000;
    --c-black-soft: #0a0c10;
    --c-dark: #121519;
    --c-dark-surface: #181c22;
    --c-grey-900: #1b1f26;
    --c-grey-700: #353638;
    --c-grey-500: #656669;
    --c-grey-400: #888b8d;
    --c-grey-300: #adb3b8;
    --c-grey-200: #D9D2C3;
    --c-grey-100: #ECF1F5;
    --c-grey-50: #F9F9F9;
    --c-white: #FDFDFD;
    --c-white-pure: #ffffff;

    /* Accent */
    --c-blue: #4594D1;
    --c-blue-hover: #3580bd;
    --c-blue-dark: #003c82;
    --c-blue-light: #9cdbf6;
    --c-blue-glow: rgba(69, 148, 209, .35);
    --c-green: #11ba4b;
    --c-red: #d1223e;
    --c-warm: #D9D2C3;
    --c-warm-dark: #b5a898;

    /* Gradients */
    --g-blue: linear-gradient(135deg, #4594D1, #003c82);
    --g-dark: linear-gradient(135deg, #1b1f26, #0a0c10);
    --g-hero: linear-gradient(160deg, #0a0c10 0%, #0d1a2d 30%, #0a2540 60%, #071520 100%);
    --g-glass: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    --g-card-hover: linear-gradient(135deg, rgba(69,148,209,.1), rgba(69,148,209,.02));

    /* Typography */
    --ff-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --ff-display: "Manrope", var(--ff-primary);
    --ff-serif: "Times New Roman", Georgia, serif;

    --fs-display: clamp(44px, 5.5vw, 65px);
    --fs-h1: clamp(36px, 4vw, 60px);
    --fs-h2: clamp(28px, 3vw, 46px);
    --fs-h3: clamp(20px, 2vw, 28px);
    --fs-h4: clamp(18px, 1.5vw, 22px);
    --fs-body: 16px;
    --fs-body-lg: 18px;
    --fs-small: 14px;
    --fs-xs: 12px;

    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    --lh-tight: 1.1;
    --lh-snug: 1.25;
    --lh-normal: 1.5;
    --lh-relaxed: 1.7;

    /* Spacing & layout */
    --page-max: 1440px;
    --page-pad: 40px;
    --header-h: 72px;
    --section-py: 100px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Effects */
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
    --transition-slow: .6s cubic-bezier(.4, 0, .2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,.12);
    --shadow-lg: 0 16px 60px rgba(0,0,0,.18);
    --shadow-blue: 0 8px 40px rgba(69,148,209,.25);
    --shadow-glow: 0 0 40px rgba(69,148,209,.3);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    font-weight: var(--fw-normal);
    line-height: var(--lh-normal);
    color: var(--c-black);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 var(--page-pad);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(253,253,253,.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: all var(--transition);
}
.header.scrolled {
    background: rgba(253,253,253,.95);
    box-shadow: 0 1px 20px rgba(0,0,0,.08);
}
.header.hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.header__logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--ff-display);
    font-size: 20px; font-weight: var(--fw-extrabold);
    color: var(--c-black); white-space: nowrap;
}
.header__logo span { color: var(--c-blue); }
.header__logo-icon { display: flex; flex-shrink: 0; }
.header__logo-img { display: block; height: 40px; width: auto; object-fit: contain; }
.footer__logo-img { display: block; height: 36px; width: auto; object-fit: contain; }
.header__logo-text { font-family: var(--ff-display); font-size: 20px; font-weight: var(--fw-extrabold); color: var(--c-black); display: inline-block; }
.header__logo-text span { color: var(--c-blue); }
.header__nav { flex: 1; display: flex; justify-content: center; }
.header__menu { display: flex; gap: 8px; align-items: center; }
.header__link {
    font-size: var(--fs-small); font-weight: var(--fw-medium);
    color: var(--c-grey-500);
    padding: 8px 14px; border-radius: var(--radius-full);
    transition: all var(--transition); position: relative;
}
.header__link:hover { color: var(--c-black); background: var(--c-grey-100); }
.header__link.active { color: var(--c-blue); background: rgba(69,148,209,.08); }
.header__cta { flex-shrink: 0; }

/* Burger */
.burger {
    display: none; flex-direction: column; justify-content: center;
    gap: 6px; width: 36px; height: 36px; cursor: pointer; z-index: 1100; padding: 4px;
}
.burger span { display: block; width: 100%; height: 2px; background: var(--c-black); border-radius: 2px; transition: all var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px;
    font-family: var(--ff-display); font-size: var(--fs-small); font-weight: var(--fw-semibold);
    border-radius: var(--radius-full); border: 2px solid transparent;
    cursor: pointer; transition: all var(--transition); white-space: nowrap; line-height: 1;
    position: relative; overflow: hidden;
}
.btn--primary { background: var(--g-blue); color: var(--c-white-pure);    border: none; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn--ghost { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn--white { background: var(--c-white-pure); color: var(--c-black); }
.btn--white:hover { background: var(--c-grey-50); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--white-ghost { background: transparent; color: var(--c-white-pure); border-color: rgba(255,255,255,.3); }
.btn--white-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--c-white-pure); }
.btn--lg { padding: 18px 36px; font-size: var(--fs-body); }
.btn--glow::after {
    content: ''; position: absolute; inset: -2px; border-radius: inherit;
    background: var(--g-blue); opacity: 0; filter: blur(20px); z-index: -1;
    transition: opacity var(--transition);
}
.btn--glow:hover::after { opacity: .5; }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: var(--section-py) 0; position: relative; }
.section--dark { background: var(--c-black-soft); }
.section--buy { background: var(--g-blue); overflow: hidden; }
.section--products { background: var(--c-grey-50); }
.section--benefits-bg { background: var(--c-grey-100); }
.section--alica { background: var(--g-hero); overflow: hidden; }

.section__header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section__tag {
    display: inline-block; padding: 6px 16px;
    font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--c-blue); background: rgba(69,148,209,.1);
    border-radius: var(--radius-full); margin-bottom: 16px;
}
.section__tag--light { color: var(--c-blue-light); background: rgba(156,219,246,.12); }
.section__title {
    font-family: var(--ff-display);
    font-size: var(--fs-h2); font-weight: var(--fw-bold);
    line-height: var(--lh-tight); color: var(--c-black); margin-bottom: 16px;
}
.section__title--white { color: var(--c-white); }
.section__desc { font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--c-grey-500); }
.section__desc--light { color: rgba(255,255,255,.6); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: var(--header-h); overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0; z-index: 0;
    background: var(--g-hero);
}
.hero__gradient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(69,148,209,.15) 0%, transparent 70%);
}
.hero__particles { position: absolute; inset: 0; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 80px; flex: 1; padding: 60px 0 40px; }
.hero__content { flex: 1 1 55%; min-width: 0; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 20px; border-radius: var(--radius-full);
    background: rgba(69,148,209,.12); border: 1px solid rgba(69,148,209,.2);
    font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--c-blue-light);
    margin-bottom: 28px;
    animation: fadeSlideUp .8s ease both;
}
.hero__badge-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #11ba4b;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.4); }
}
.hero__title {
    font-family: var(--ff-display);
    font-size: var(--fs-display); font-weight: var(--fw-extrabold);
    line-height: var(--lh-tight); color: var(--c-white); margin-bottom: 24px;
}
.hero__title-line { display: block; }
.hero__title-accent {
    background: linear-gradient(90deg, #4594D1, #9cdbf6);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--ff-display);
}
.hero__subtitle {
    font-size: var(--fs-body-lg); line-height: var(--lh-relaxed);
    color: rgba(255,255,255,.6); max-width: 560px; margin-bottom: 36px;
}
.hero__buttons { display: flex; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.hero__protocols { display: flex; flex-wrap: wrap; gap: 8px; }
.protocol-chip {
    padding: 6px 14px; border-radius: var(--radius-full);
    font-size: var(--fs-xs); font-weight: var(--fw-semibold);
    color: rgba(255,255,255,.7); background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    transition: all var(--transition);
}
.protocol-chip:hover { background: rgba(69,148,209,.15); border-color: rgba(69,148,209,.3); color: var(--c-blue-light); }

/* Hero visual */
.hero__visual { flex: 0 0 40%; position: relative; }
.hero__product-showcase { position: relative; width: 100%; height: 480px; perspective: 800px; }
.hero__product-card {
    position: absolute; background: rgba(255,255,255,.07);
    backdrop-filter: blur(20px); border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,.1); padding: 20px; text-align: center;
    transition: all .5s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
}
.hero__product-card:hover { transform: scale(1.06) translateY(-8px); border-color: rgba(69,148,209,.3); background: rgba(255,255,255,.1); }
.hero__product-card img { width: 140px; height: 140px; object-fit: contain; margin: 0 auto 10px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.3)); }
.hero__product-name { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--c-white); }
.hero__product-card--1 { top: 0; left: 10%; animation: float-1 6s ease-in-out infinite; }
.hero__product-card--2 { top: 60px; right: 0; animation: float-2 7s ease-in-out infinite; animation-delay: -2s; }
.hero__product-card--3 { bottom: 40px; left: 20%; animation: float-3 8s ease-in-out infinite; animation-delay: -4s; }
.hero__glow-orb {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(69,148,209,.25) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation: orb-pulse 4s ease-in-out infinite; pointer-events: none;
}
@keyframes float-1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes float-2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes orb-pulse { 0%, 100% { opacity: .4; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .7; transform: translate(-50%, -50%) scale(1.15); } }

/* Hero stats */
.hero__stats {
    position: relative; z-index: 2; padding: 40px 0 50px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.stats-row { display: flex; gap: 60px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; min-width: 140px; }
.stat__value { font-family: var(--ff-display); font-size: 42px; font-weight: var(--fw-extrabold); color: var(--c-white); }
.stat__suffix { font-family: var(--ff-display); font-size: 42px; font-weight: var(--fw-extrabold); color: var(--c-blue); }
.stat__label { display: block; font-size: var(--fs-small); color: rgba(255,255,255,.45); margin-top: 4px; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
    background: var(--c-black); padding: 16px 0; overflow: hidden; position: relative;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.marquee__track {
    display: flex; gap: 50px; white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}
.marquee__track span {
    font-family: var(--ff-display);
    font-size: var(--fs-small); font-weight: var(--fw-semibold);
    color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 2px;
}
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   CARDS (for-whom section)
   ============================================================ */
.cards { display: grid; gap: 24px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: var(--c-white-pure); border-radius: var(--radius-lg);
    padding: 36px 28px; position: relative;
    border: 1px solid rgba(0,0,0,.06);
    transition: all var(--transition);
    overflow: hidden;
}
.card--hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(69,148,209,.2);
}
.card--hover-lift:hover .card__arrow {
    opacity: 1; transform: translateX(0);
}
.card__icon-wrap { margin-bottom: 20px; }
.card__title {
    font-family: var(--ff-display);
    font-size: var(--fs-h4); font-weight: var(--fw-semibold);
    color: var(--c-black); margin-bottom: 12px; line-height: var(--lh-snug);
    transition: color var(--transition);
}
.card--hover-lift:hover .card__title { color: var(--c-blue); }
.card__text { font-size: var(--fs-body); color: var(--c-grey-500); line-height: var(--lh-relaxed); }
.card__arrow {
    position: absolute; bottom: 28px; right: 28px;
    font-size: 24px; color: var(--c-blue);
    opacity: 0; transform: translateX(-10px);
    transition: all var(--transition);
}

/* ============================================================
   BENEFITS (partner-benefits section)
   ============================================================ */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card {
    background: var(--g-glass);
    backdrop-filter: blur(16px); border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,.08);
    padding: 36px 28px; position: relative;
    transition: all var(--transition);
}
.benefit-card:hover { background: rgba(255,255,255,.08); border-color: rgba(69,148,209,.2); transform: translateY(-4px); }
.benefit-card__number {
    font-family: var(--ff-display);
    font-size: 48px; font-weight: var(--fw-extrabold);
    color: rgba(69,148,209,.15); position: absolute; top: 20px; right: 24px;
    line-height: 1;
}
.benefit-card__icon { margin-bottom: 20px; }
.benefit-card__title {
    font-family: var(--ff-display);
    font-size: var(--fs-h4); font-weight: var(--fw-semibold);
    color: var(--c-white); margin-bottom: 12px; line-height: var(--lh-snug);
}
.benefit-card__text { font-size: var(--fs-body); color: rgba(255,255,255,.55); line-height: var(--lh-relaxed); }

/* ============================================================
   PRODUCT SHOWCASE
   ============================================================ */
.product-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.product-tab {
    padding: 10px 24px; border-radius: var(--radius-full);
    font-size: var(--fs-small); font-weight: var(--fw-semibold);
    color: var(--c-grey-500); background: transparent;
    border: 1px solid var(--c-grey-200);
    cursor: pointer; transition: all var(--transition);
}
.product-tab:hover { color: var(--c-black); border-color: var(--c-grey-400); }
.product-tab.active { background: var(--c-black); color: var(--c-white-pure); border-color: var(--c-black); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
    background: var(--c-white-pure); border-radius: var(--radius-lg);
    padding: 24px; border: 1px solid rgba(0,0,0,.06);
    transition: all var(--transition); position: relative; overflow: hidden; cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(69,148,209,.15); }
.product-card__badge {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    padding: 4px 12px; border-radius: var(--radius-full);
    font-size: var(--fs-xs); font-weight: var(--fw-bold);
    background: var(--c-blue); color: var(--c-white-pure);
}
.product-card__badge--new { background: var(--c-green); }
.product-card__img {
    height: 180px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.product-card__img img {
    max-height: 160px; object-fit: contain;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.08));
}
.product-card:hover .product-card__img img { transform: scale(1.08) translateY(-4px); }
.product-card__name {
    font-family: var(--ff-display);
    font-size: var(--fs-body); font-weight: var(--fw-semibold);
    color: var(--c-black); margin-bottom: 6px;
}
.product-card__desc { font-size: var(--fs-small); color: var(--c-grey-400); line-height: var(--lh-normal); margin-bottom: 12px; }
.product-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card__chips span {
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: var(--fw-semibold);
    background: var(--c-grey-100); color: var(--c-grey-500);
}

/* ============================================================
   TECH CARDS (shelly-benefits)
   ============================================================ */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tech-card {
    background: var(--c-white-pure); border-radius: var(--radius-lg);
    padding: 32px 24px; text-align: center;
    border: 1px solid rgba(0,0,0,.06);
    transition: all var(--transition);
    position: relative; overflow: hidden;
}
.tech-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(69,148,209,.15); }
.tech-card__glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(69,148,209,.06) 0%, transparent 60%);
    opacity: 0; transition: opacity var(--transition);
    pointer-events: none;
}
.tech-card:hover .tech-card__glow { opacity: 1; }
.tech-card__icon { font-size: 36px; margin-bottom: 16px; position: relative; z-index: 1; }
.tech-card__title {
    font-family: var(--ff-display);
    font-size: var(--fs-body); font-weight: var(--fw-semibold);
    color: var(--c-black); margin-bottom: 10px; line-height: var(--lh-snug);
    position: relative; z-index: 1;
}
.tech-card__text { font-size: var(--fs-small); color: var(--c-grey-500); line-height: var(--lh-relaxed); position: relative; z-index: 1; }

/* ============================================================
   ALICA SECTION
   ============================================================ */
.alica__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.alica__title {
    font-family: var(--ff-display);
    font-size: var(--fs-h2); font-weight: var(--fw-bold);
    line-height: var(--lh-tight); color: var(--c-white); margin-bottom: 20px;
}
.alica__text { font-size: var(--fs-body-lg); color: rgba(255,255,255,.6); line-height: var(--lh-relaxed); margin-bottom: 32px; }
.alica__scenarios { display: flex; flex-direction: column; gap: 20px; }
.alica__scenario {
    display: flex; align-items: center; gap: 16px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-md); padding: 16px 20px;
    transition: all var(--transition);
}
.alica__scenario:hover { background: rgba(255,255,255,.08); transform: translateX(6px); }
.alica__scenario-icon { font-size: 28px; flex-shrink: 0; }
.alica__scenario-cmd {
    font-family: var(--ff-serif);
    font-size: var(--fs-body-lg); font-style: italic;
    color: var(--c-blue-light); margin-bottom: 4px;
}
.alica__scenario-desc { font-size: var(--fs-small); color: rgba(255,255,255,.45); }

.alica__platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.platform-card {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-md); padding: 16px 18px;
    transition: all var(--transition);
}
.platform-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.platform-card__icon { flex-shrink: 0; }
.platform-card__icon img { width:36px; height:36px; object-fit:contain; display:block; }
.platform-card span {
    font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--c-white);
}

/* ============================================================
   STEPS (support section)
   ============================================================ */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.step {
    flex: 1; max-width: 360px; text-align: center; padding: 40px 28px;
    background: var(--c-white-pure); border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,.06);
    transition: all var(--transition); position: relative;
}
.step::before {
    content: attr(data-step); position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--g-blue); color: var(--c-white-pure);
    font-family: var(--ff-display); font-size: var(--fs-small); font-weight: var(--fw-bold);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-blue);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__icon { margin: 0 auto 16px; display: flex; justify-content: center; }
.step__title {
    font-family: var(--ff-display);
    font-size: var(--fs-h4); font-weight: var(--fw-semibold);
    color: var(--c-black); margin-bottom: 10px; line-height: var(--lh-snug);
}
.step__text { font-size: var(--fs-body); color: var(--c-grey-500); line-height: var(--lh-relaxed); }
.step__connector { display: flex; align-items: center; padding: 0 8px; padding-top: 60px; }
.step__connector-line {
    width: 48px; height: 2px;
    background: linear-gradient(90deg, var(--c-blue), rgba(69,148,209,.2));
    border-radius: 2px;
}

/* ============================================================
   BUY SECTION
   ============================================================ */
.buy__inner { display: flex; align-items: center; gap: 60px; }
.buy__content { flex: 1; }
.buy__title {
    font-family: var(--ff-display);
    font-size: var(--fs-h2); font-weight: var(--fw-bold);
    color: var(--c-white-pure); margin-bottom: 16px; line-height: var(--lh-tight);
}
.buy__desc { font-size: var(--fs-body-lg); color: rgba(255,255,255,.75); line-height: var(--lh-relaxed); margin-bottom: 32px; }
.buy__buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.buy__visual { flex: 0 0 40%; display: flex; justify-content: center; }
.buy__img {
    max-width: 460px; filter: drop-shadow(0 20px 50px rgba(0,0,0,.3));
    animation: float-1 6s ease-in-out infinite;
}

/* Note under buy buttons */
.buy__inner { position: relative; }

.buy__note {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    margin: 0;
    font-size: 15px;
    color: var(--c-white);
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
.buy__note::before,
.buy__note::after {
    content: '';
    position: absolute;
    top: calc(100% + 8px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #fff;
}
.buy__note::before { transform: translateX(-14px); left: 50%; }
.buy__note::after { transform: translateX(4px); left: 50%; }
.buy__note-link { color: var(--c-white); text-decoration: underline; font-weight: var(--fw-semibold); }

@media (max-width: 768px) {
    .buy__note { position: static; transform: none; margin-top: 18px; box-shadow: none; background: transparent; padding: 0; }
}

/* ============================================================
   FORM
   ============================================================ */
.form { max-width: 820px; margin: 0 auto; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.form__group { display: flex; flex-direction: column; }
.form__group--full { grid-column: 1 / -1; }
.form__label {
    font-size: var(--fs-small); font-weight: var(--fw-semibold);
    color: var(--c-grey-700); margin-bottom: 8px;
}
.form__input, .form__select, .form__textarea {
    padding: 14px 18px; font-size: var(--fs-body);
    border: 1.5px solid var(--c-grey-200); border-radius: var(--radius-md);
    background: var(--c-white-pure); color: var(--c-black);
    transition: all var(--transition); width: 100%;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 4px rgba(69,148,209,.1);
}
.form__input::placeholder, .form__textarea::placeholder { color: var(--c-grey-300); }
.form__select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888b8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.form__textarea { resize: vertical; min-height: 100px; }
.form__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form__checkbox-label {
    display: flex; align-items: center; gap: 10px;
    font-size: var(--fs-small); color: var(--c-grey-500); cursor: pointer; user-select: none;
}
.form__checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.form__checkbox-custom {
    width: 22px; height: 22px; border-radius: var(--radius-sm);
    border: 2px solid var(--c-grey-200); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all var(--transition);
}
.form__checkbox:checked + .form__checkbox-custom { background: var(--c-blue); border-color: var(--c-blue); }
.form__checkbox:checked + .form__checkbox-custom::after {
    content: ''; width: 10px; height: 6px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
.form__checkbox:focus + .form__checkbox-custom { box-shadow: 0 0 0 4px rgba(69,148,209,.15); }
.form__input.error, .form__select.error, .form__textarea.error { border-color: var(--c-red); }
.form__checkbox-label.error .form__checkbox-custom { border-color: var(--c-red); }

.form__success {
    text-align: center; padding: 60px 24px;
    display: none;
}
.form__success-inner {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    animation: fadeSlideUp .5s ease both;
}
.form__success-inner h3 {
    font-family: var(--ff-display);
    font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--c-black);
}
.form__success-inner p { font-size: var(--fs-body-lg); color: var(--c-grey-500); }

/* Popup variant: center on screen with overlay */
.form__success.popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11,12,15,0.6);
    z-index: 2000;
    padding: 40px 20px;
}
.form__success.popup .form__success-inner {
    background: var(--c-white-pure);
    color: var(--c-black);
    padding: 36px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(2,6,23,0.6);
    max-width: 560px;
    width: calc(100% - 40px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--c-black-soft); padding-top: 80px; }
.footer__inner {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px; padding-bottom: 48px;
}
.footer__logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--ff-display);
    font-size: 20px; font-weight: var(--fw-extrabold);
    color: var(--c-white); margin-bottom: 12px;
}
.footer__logo span { color: var(--c-blue); }
.footer__logo-icon { display: flex; flex-shrink: 0; }
.footer__logo-text { font-family: var(--ff-display); font-size: 20px; font-weight: var(--fw-extrabold); color: var(--c-white); display: inline-block; }
.footer__logo-text span { color: var(--c-blue); }
.footer__status { font-size: var(--fs-small); color: rgba(255,255,255,.4); line-height: var(--lh-relaxed); margin-bottom: 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social-link {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); transition: all var(--transition);
}
.footer__social-link:hover { background: rgba(69,148,209,.15); border-color: rgba(69,148,209,.3); color: var(--c-blue-light); }
.footer__heading {
    font-family: var(--ff-display);
    font-size: var(--fs-body); font-weight: var(--fw-semibold);
    color: var(--c-white); margin-bottom: 20px;
}
.footer__links li, .footer__contacts li { margin-bottom: 12px; }
.footer__links a, .footer__contacts a {
    font-size: var(--fs-small); color: rgba(255,255,255,.4);
    transition: color var(--transition);
}
.footer__links a:hover, .footer__contacts a:hover { color: var(--c-blue-light); }
.footer__requisites { font-size: var(--fs-small); color: rgba(255,255,255,.3); line-height: var(--lh-relaxed); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0;
}
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; }
.footer__bottom p { font-size: var(--fs-small); color: rgba(255,255,255,.25); }
.footer__powered strong { color: var(--c-blue); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 900;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--c-black); color: var(--c-white-pure);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: 1px solid rgba(255,255,255,.1);
    opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--c-blue); transform: translateY(-3px); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll */
[data-aos] {
    opacity: 0; transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}
[data-aos="up"].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade"].aos-animate { opacity: 1; transform: translateY(0); }

.reveal-element {
    opacity: 0; transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal-element.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger-children > * { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: .1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: .2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: .3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: .4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: .5s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: .6s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: .7s; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

/* Overlay */
.overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    z-index: 1040;
}
.overlay.active { display: block; }

/* Cursor glow on cards */
.card--hover-lift::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(69,148,209,.06), transparent 60%);
    opacity: 0; transition: opacity var(--transition); pointer-events: none; z-index: 0;
}
.card--hover-lift:hover::before { opacity: 1; }
.card--hover-lift > * { position: relative; z-index: 1; }

/* Particles */
.particle {
    position: absolute; width: 3px; height: 3px; border-radius: 50%;
    background: rgba(69,148,209,.5);
    animation: particle-float linear infinite;
}
@keyframes particle-float {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* Personal data modal */
.pd-link { color: var(--c-blue); text-decoration: underline; cursor: pointer; }
.pd-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11,12,15,0.6); z-index: 3000; }
.pd-modal[hidden] { display: none; }
.pd-modal__dialog { background: var(--c-white-pure); color: var(--c-black); padding: 28px; border-radius: 12px; max-width: 720px; width: 100%; box-shadow: var(--shadow-lg); position: relative; }
.pd-modal__close { position: absolute; top: 12px; right: 12px; background: transparent; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--c-grey-700); }
.pd-modal__body { margin-top: 8px; color: var(--c-grey-700); font-size: var(--fs-body); line-height: var(--lh-relaxed); }
.pd-modal__body p { margin-bottom: 12px; }

@media (max-width: 768px) {
    .pd-modal__dialog { padding: 20px; max-width: 92%; }
}
