/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue:        #1e9be0;
    --blue-hover:  #1780bc;
    --dark:        #18181b;
    --dark-alt:    #1e1e22;
    --card-dark:   #1f1f23;
    --border-dark: #2c2c30;
    --nav-border:  #26262a;
    --text-dark:   #ffffff;
    --text-muted:  #909098;
    --white:       #ffffff;
    --off-white:   #f7f7fb;
    --text-light:  #12121f;
    --text-sec:    #5a5a72;
    --r-card:      8px;
    --r-btn:       6px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    background: var(--white);
    color: var(--text-light);
}

a { text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 80px 0; }

/* ============================================================
   SECTION BG VARIANTS
   ============================================================ */
.dark-bg  { background: var(--dark);      color: var(--text-dark); }
.white-bg { background: var(--white);     color: var(--text-light); }
.grey-bg  { background: var(--off-white); color: var(--text-light); }

/* ============================================================
   NAV
   ============================================================ */
#main-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--dark);
    border-bottom: 1px solid var(--nav-border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo-img { height: 36px; width: auto; display: block; }

.nav-toggle {
    display: flex;
    background: transparent;
    padding: 0;
    gap: 0;
    flex-shrink: 0;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: #9090a0;
    font-size: 14px;
    font-weight: 600;
    padding: 0 18px;
    height: 64px;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}
.toggle-btn::after {
    content: '∨';
    font-size: 11px;
    opacity: 0.7;
}
.toggle-btn.active {
    color: #ffffff;
}
.toggle-btn.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px 2px 0 0;
}
.toggle-btn:hover:not(.active) { color: #cccccc; }

.nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: var(--r-btn);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary.large {
    font-size: 15px;
    padding: 14px 32px;
}

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: var(--r-btn);
    border: 1px solid var(--blue);
    transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
    background: rgba(30, 155, 224, 0.08);
    border-color: var(--blue-hover);
}

/* ============================================================
   LABEL
   ============================================================ */
.label {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0;
}

/* ============================================================
   DECORATIVE LINE — between label and H1 in hero
   ============================================================ */
.hero-line {
    width: 48px;
    height: 2px;
    background: var(--blue);
    margin: 14px auto;
}

/* ============================================================
   PRODUCT SECTIONS (JS-toggled)
   ============================================================ */
.product {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.product.active  { display: block; }
.product.visible { opacity: 1; }

/* ============================================================
   BLOB IMAGE — organic shape, STATIC (no animation)
   ============================================================ */
.img-blob {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
    display: block;
}

/* ============================================================
   HERO — full-width background photo + centered content
   ============================================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    padding: 0;
    background-color: var(--dark);
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 64px;
    text-align: left;
    min-height: 600px;
}

.hero-text .hero-line { margin: 14px 0; }

.hero-photo {
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 20px;
}

.accent { color: var(--blue); }

.hero .sub {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 520px;
}

.btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 32px;
}

/* ============================================================
   STATS — row below hero text
   ============================================================ */
.stats {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 20px 28px;
    justify-content: flex-start;
    max-width: 480px;
}

.stat {
    flex: 1;
    min-width: 110px;
    text-align: left;
    padding: 0 20px;
}
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.14); }

.stat strong {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 6px;
}
.stat span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { background: #e8e8ee; color: var(--text-light); }

.problem .label { color: var(--blue); }

.problem h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-light);
    max-width: 640px;
    margin-bottom: 32px;
}

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr;        gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ============================================================
   CARDS
   ============================================================ */
.card { padding: 28px; border-radius: var(--r-card); }

.card.dark { background: var(--card-dark); border: 1px solid var(--border-dark); }
.card.dark i    { display: block; font-size: 32px; color: var(--blue); margin-bottom: 16px; }
.card.dark h3   { font-size: 16px; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.card.dark p    { font-size: 14px; color: #909098; line-height: 1.65; }

.card.light { background: var(--white); border: 1px solid #e8e8f2; }
.card.light i   { display: block; font-size: 32px; color: var(--blue); margin-bottom: 16px; }
.card.light h3  { font-size: 15px; font-weight: 700; color: var(--text-light); margin-bottom: 8px; }
.card.light p   { font-size: 14px; color: var(--text-sec); line-height: 1.65; }

.card.center    { text-align: center; }
.card.center i  { font-size: 24px; }

/* ============================================================
   HOW IT WORKS — 55/45 grid: steps left, image right
   ============================================================ */
.how { background: var(--white); color: var(--text-light); }

.how .label { color: var(--blue); margin-bottom: 16px; }

.how h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin-bottom: 40px;
}

.how-grid {
    display: grid;
    grid-template-columns: 11fr 9fr;
    gap: 56px;
    align-items: start;
}

.how-img {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}

.steps { display: flex; flex-direction: column; }

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px 0;
    border-bottom: 1px solid #e8e8f2;
}
.step:last-child { border-bottom: none; }

.step-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--blue);
    opacity: 0.6;
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
}

.step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}
.step p {
    font-size: 14px;
    color: var(--text-sec);
    line-height: 1.75;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--off-white); color: var(--text-light); }

.features .label { color: var(--blue); margin-bottom: 16px; }

.features h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* ============================================================
   FOR WHOM
   ============================================================ */
.for-whom { background: var(--white); color: var(--text-light); }

.for-whom .label { color: var(--blue); margin-bottom: 16px; }

.for-whom h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* ============================================================
   PRECIO
   ============================================================ */
.precio {
    background: var(--off-white);
    padding: 64px 0;
    text-align: center;
    border-top: 1px solid #e8e8f2;
    border-bottom: 1px solid #e8e8f2;
}
.precio-amount {
    font-size: 18px;
    color: var(--text-sec);
    font-weight: 400;
    line-height: 1.3;
}
.precio-amount strong {
    font-size: 56px;
    font-weight: 700;
    color: var(--blue);
    vertical-align: baseline;
}
.precio-note {
    font-size: 13px;
    color: var(--text-sec);
    max-width: 480px;
    margin: 16px auto 0;
    line-height: 1.65;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-wrap { background: var(--white); }

.cta-box {
    background: rgba(30, 155, 224, 0.05);
    border: 1px solid var(--blue);
    border-radius: var(--r-card);
    padding: 56px 48px;
    text-align: center;
}

.cta-box h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin-bottom: 14px;
}
.cta-box p {
    font-size: 15px;
    color: var(--text-sec);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.75;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--dark);
    border-top: 1px solid var(--nav-border);
    padding: 40px 0;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-dark);
}

.footer-logo-img {
    height: 28px;
    width: auto;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.footer-logo-img:hover { opacity: 1; }

.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a {
    font-size: 13px;
    color: #606068;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--blue); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright { font-size: 12px; color: #505055; }

.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a {
    font-size: 12px;
    color: #505055;
    transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--blue); }

/* ============================================================
   RESPONSIVE — 900px
   ============================================================ */
@media (max-width: 900px) {
    .grid-3   { grid-template-columns: 1fr 1fr; }
    .grid-4   { grid-template-columns: 1fr 1fr; }
    .how-grid { gap: 36px; }
    .toggle-btn { padding: 0 12px; font-size: 13px; height: 48px; }
    .hero h1  { font-size: 34px; }
    .hero-text { padding: 56px 40px; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
    section  { padding: 56px 0; }
    .hero    { grid-template-columns: 1fr; min-height: auto; }
    .hero-photo { min-height: 280px; order: -1; }
    .hero-text { padding: 48px 24px; }
    .hero h1 { font-size: 26px; }
    .hero .sub { font-size: 15px; }
    .stats { max-width: 100%; }

    /* Nav: two-row with horizontal-scroll toggle */
    .nav-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px 0;
        gap: 12px;
    }
    .nav-logo    { order: 1; }
    .nav-actions { order: 2; }
    .nav-toggle {
        order: 3;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 8px;
        margin-bottom: 12px;
        flex-shrink: 1;
    }
    .nav-toggle::-webkit-scrollbar { display: none; }

    /* How: stack vertically, image below */
    .how-grid { grid-template-columns: 1fr; gap: 32px; }
    .img-blob { max-width: 100%; }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }

    /* Stats: column on mobile */
    .stats { flex-direction: column; gap: 0; padding: 8px 20px; max-width: 100%; }
    .stat  { padding: 14px 0; }
    .stat:first-child { padding-left: 0; }
    .stat + .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); }

    .cta-box { padding: 36px 24px; }

    .footer-row    { flex-direction: column; text-align: center; }
    .footer-nav    { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal-links { justify-content: center; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
    .wrap    { padding: 0 20px; }
    .grid-4  { grid-template-columns: 1fr; }
    .btns    { flex-direction: column; align-items: flex-start; }
    .btns a  { text-align: center; width: 100%; max-width: 280px; }
    .hero h1 { font-size: 22px; }
    .precio-amount strong { font-size: 44px; }
}
