:root {
    --ink: #141917;
    --muted: #626b66;
    --soft: #f3f2ef;
    --band: #ecebe8;
    --line: #deddd8;
    --green: #2f7b58;
    --green-dark: #0d3c2a;
    --green-bright: #11af7a;
    --gold: #b9ab84;
    --night: #03120f;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(12, 22, 18, 0.14);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--soft);
    line-height: 1.45;
}
html[dir="rtl"] body { direction: rtl; font-family: Tahoma, Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); margin: 0 0 16px; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 { max-width: 620px; font-size: clamp(42px, 6.2vw, 70px); line-height: 0.98; color: #fff; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
h3 { font-size: 17px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(222, 221, 216, 0.86);
    backdrop-filter: blur(12px);
}
.site-nav {
    max-width: 1280px;
    min-height: 62px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-brand, .nav-links, .nav-actions { display: flex; align-items: center; }
.site-brand { gap: 8px; font-weight: 850; font-size: 14px; color: var(--green-dark); }
.brand-badge {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}
.nav-links { gap: 32px; color: #1d2521; font-size: 13px; font-weight: 700; }
.nav-actions { gap: 10px; }
.language-switch {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 850;
    padding: 8px 10px;
}
.btn {
    min-height: 36px;
    border: 1px solid var(--green);
    background: var(--green);
    color: #fff;
    border-radius: 4px;
    padding: 9px 14px;
    font-weight: 850;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.ghost, .btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.20);
}
.nav-login { min-height: 34px; background: var(--green); color: #fff; }

.hero {
    min-height: 650px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(32, 133, 74, 0.50), transparent 36%),
        radial-gradient(circle at 78% 10%, rgba(19, 147, 105, 0.36), transparent 32%),
        linear-gradient(124deg, #082813 0%, #071713 45%, #020812 100%);
}
.hero-inner {
    max-width: 1280px;
    min-height: 650px;
    margin: 0 auto;
    padding: 78px 60px 70px;
    position: relative;
}
.hero-copy { position: relative; z-index: 2; width: min(620px, 56%); }
.hero-copy p {
    max-width: 610px;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
}
.hero-copy small {
    display: block;
    max-width: 500px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.dashboard-preview {
    position: absolute;
    right: -88px;
    top: 118px;
    width: min(720px, 58vw);
    min-height: 360px;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0;
    background: rgba(248, 251, 249, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.50);
    transform: rotate(8deg);
    transform-origin: center;
    overflow: hidden;
}
.preview-sidebar { background: #eef5ef; padding: 36px 18px; display: grid; gap: 14px; align-content: start; }
.preview-sidebar span, .preview-top, .preview-kpis span, .preview-content div, .mini-toolbar, .mini-table span, .phone-card, .phone-lines span, .phone-nav {
    background: linear-gradient(90deg, #d8e3dc, #f2f5f2);
    border-radius: 6px;
}
.preview-sidebar span { height: 11px; }
.preview-main { padding: 32px; }
.preview-top { height: 42px; margin-bottom: 22px; }
.preview-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.preview-kpis span { height: 58px; background: #f2f5f2; border: 1px solid #d9e6dd; }
.preview-chart { height: 150px; display: flex; align-items: end; gap: 12px; padding: 18px; background: #fff; border: 1px solid #dfe6e1; border-radius: 8px; }
.preview-chart span { flex: 1; min-height: 22px; border-radius: 999px 999px 3px 3px; background: #c7b98f; }
.preview-content { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 18px; }
.preview-content div { height: 42px; }

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 86px 60px;
}
.section-inner.narrow { max-width: 780px; text-align: center; }
.intro-section { background: #fff; }
.intro-section h2 { font-size: clamp(30px, 4vw, 44px); }
.intro-section p { max-width: 650px; margin: 18px auto 0; }
.feature-section, .pricing-section { background: var(--band); }
.resident-section, .faq-section { background: #fff; }
.split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}
.split.reverse { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr); }
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 10px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #c9bd97;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.feature-list { display: grid; gap: 20px; margin-top: 30px; }
.feature-list.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-item { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.feature-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    border: 1px solid #a9d3bf;
    color: transparent;
    background: #edf8f3;
    position: relative;
}
.feature-icon::after {
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid var(--green);
    border-radius: 3px;
}
.feature-item strong { display: block; margin-bottom: 4px; font-size: 14px; }
.feature-item p { margin: 0; font-size: 12px; line-height: 1.35; }

.photo-card {
    min-height: 360px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.22)),
        linear-gradient(135deg, #e6e1d8, #c8c1b2);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.laptop-frame {
    width: 76%;
    aspect-ratio: 16 / 10;
    padding: 12px;
    background: #1f2a2a;
    border-radius: 10px;
    box-shadow: 0 20px 45px rgba(0,0,0,.24);
}
.laptop-screen { height: 100%; background: #f8faf8; border-radius: 5px; padding: 16px; }
.mini-toolbar { height: 26px; margin-bottom: 16px; }
.mini-table { display: grid; gap: 8px; }
.mini-table span { height: 12px; }

.phone-photo {
    min-height: 520px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background:
        radial-gradient(circle at 70% 20%, rgba(255,255,255,.78), transparent 24%),
        linear-gradient(135deg, #d7c6a8, #f4f0e8 52%, #b7a071);
    box-shadow: var(--shadow);
}
.phone-frame {
    width: 220px;
    min-height: 430px;
    padding: 26px 16px 18px;
    border-radius: 32px;
    background: #101514;
    position: relative;
    box-shadow: 0 30px 70px rgba(0,0,0,.30);
}
.phone-frame::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 25px;
    background: #f7faf8;
}
.phone-frame > * { position: relative; z-index: 1; }
.phone-notch { width: 72px; height: 8px; margin: -10px auto 22px; border-radius: 999px; background: #1d2521; }
.phone-card { height: 92px; margin-bottom: 16px; background: linear-gradient(135deg, #d9f6e8, #f3fbf7); }
.phone-card.green { border: 1px solid #bbe3cf; }
.phone-lines { display: grid; gap: 12px; }
.phone-lines span { height: 44px; border: 1px solid #e2e9e5; background: #fff; }
.phone-nav { height: 36px; margin-top: 18px; background: #e8f3ee; }

.pricing-simulator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    margin-top: 34px;
}
.sim-card, .tiers-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 10px 34px rgba(14, 18, 16, 0.06);
}
.sim-card label { display: block; margin: 24px 0 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.lot-number { font-size: 48px; line-height: 1; font-weight: 900; }
.lot-number span { font-size: 14px; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--green); margin: 18px 0 20px; }
.billing-toggle { display: grid; grid-template-columns: 1fr 1fr; border-radius: 7px; background: #f0f0ed; padding: 4px; margin-bottom: 18px; font-size: 12px; font-weight: 850; text-align: center; }
.billing-toggle span { padding: 9px; border-radius: 5px; color: var(--muted); }
.billing-toggle .active { background: var(--green); color: #fff; }
.total-box { background: #f4f3f0; border-radius: 9px; padding: 18px; margin: 16px 0; }
.total-box small { display: block; color: var(--muted); font-weight: 800; }
.total-box strong { font-size: 36px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--green); font-size: 12px; font-weight: 700; }
.check-list li::before { content: "✓ "; }
.tier { display: grid; gap: 4px; padding: 20px; border-radius: 9px; background: #f3f2ef; border: 1px solid transparent; margin-top: 14px; }
.tier span { color: var(--muted); font-size: 12px; }
.tier.active { background: #f8fffb; border-color: #9bd4bb; box-shadow: 0 0 0 3px rgba(47, 123, 88, 0.08); }

.dark-cta {
    background:
        radial-gradient(circle at 15% 15%, rgba(28, 114, 51, .48), transparent 34%),
        radial-gradient(circle at 70% 5%, rgba(17, 145, 112, .34), transparent 32%),
        linear-gradient(125deg, #08200f, #03120f 55%, #000814);
    color: #fff;
}
.dark-cta .section-inner { padding-top: 78px; padding-bottom: 78px; }
.dark-cta h2 { color: #fff; }
.dark-cta p { color: rgba(255,255,255,.78); }
.contact-box {
    width: min(430px, 100%);
    margin: 30px auto 0;
    padding: 20px;
    border-radius: 11px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    display: grid;
    gap: 12px;
}
.store-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.store-row.center { justify-content: center; margin-top: 20px; }
.store-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,.34);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    background: rgba(0,0,0,.22);
}

.faq-list { margin-top: 34px; text-align: left; }
html[dir="rtl"] .faq-list { text-align: right; }
details {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}
summary {
    cursor: pointer;
    font-weight: 850;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}
summary::after { content: "⌄"; color: var(--muted); }
details[open] summary::after { transform: rotate(180deg); }
details p { margin-top: 12px; }

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    padding: 12px 16px;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
html[dir="rtl"] .whatsapp-float { right: auto; left: 18px; }
.site-footer {
    background:
        radial-gradient(circle at 10% 0%, rgba(31, 117, 54, .45), transparent 34%),
        linear-gradient(120deg, #051a0e, #020a11);
    color: #fff;
    padding: 54px 60px 24px;
}
.site-footer .section-inner {
    max-width: 1280px;
    padding: 0;
    display: grid;
    grid-template-columns: 1.5fr .8fr .8fr 1fr;
    gap: 42px;
}
.site-footer p, .site-footer a { color: rgba(255,255,255,.72); font-size: 13px; }
.site-footer a { display: block; margin-top: 8px; }
.footer-brand p { max-width: 330px; margin-top: 12px; }
.footer-whatsapp { border: 1px solid rgba(255,255,255,.22); border-radius: 4px; padding: 8px 12px; }
.footer-bottom { max-width: 1280px; margin: 44px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.10); color: rgba(255,255,255,.58); font-size: 12px; }

@media (max-width: 980px) {
    .site-nav { padding: 12px 20px; align-items: flex-start; flex-direction: column; }
    .nav-links, .nav-actions { flex-wrap: wrap; }
    .hero-inner { min-height: auto; padding: 56px 22px 360px; }
    .hero-copy { width: 100%; }
    .dashboard-preview { width: 760px; max-width: none; right: -240px; top: auto; bottom: 60px; transform: rotate(6deg) scale(.72); }
    .section-inner { padding: 62px 22px; }
    .split, .split.reverse, .pricing-simulator, .feature-list.two-cols, .site-footer .section-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    h1 { font-size: 40px; }
    h2 { font-size: 30px; }
    .hero-inner { padding-bottom: 300px; }
    .dashboard-preview { right: -300px; transform: rotate(6deg) scale(.58); }
    .photo-card, .phone-photo { min-height: 320px; }
    .phone-frame { transform: scale(.78); }
    .check-list { grid-template-columns: 1fr; }
    .site-footer { padding-left: 22px; padding-right: 22px; }
}
