/* =============================================================
   Leveredge Media — home.css
   Loaded on the front page only. Covers every section on
   front-page.php. Shared tokens and components live in base.css.
   v1.0.0
============================================================= */


/* ── SECTION BACKGROUNDS ────────────────────────────────────── */

#hero          { background: var(--ink); }
#problem       { background: var(--ink-2); }
#services      { background: var(--ink); }
#process       { background: var(--ink-2); }
#differentiation { background: var(--ink); }
#packages      { background: var(--ink-2); }
#results       { background: var(--ink); }
#faq           { background: var(--ink-2); }
#cta           { background: var(--ink); }

#problem,
#services,
#process,
#differentiation,
#packages,
#results,
#faq,
#cta { padding: clamp(56px, 8vw, 96px) 24px; }


/* ── HONEYPOT ────────────────────────────────────────────────── */

.lm-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-size: 0;
}


/* ============================================================
   HERO
============================================================= */

#hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: clamp(100px, 14vw, 148px) 24px clamp(56px, 8vw, 80px);
    position: relative;
    overflow: hidden;
}

/* Background grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-3) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-3) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 100% 90% at 50% 0%, black 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 0%, black 20%, transparent 72%);
    pointer-events: none;
}

/* Orange radial glow */
.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 50% -5%, rgba(255, 95, 31, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 30% 50% at 85% 60%, rgba(255, 95, 31, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 25% 40% at 10% 70%, rgba(255, 95, 31, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating orbs */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}
.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 95, 31, 0.18) 0%, transparent 65%);
    top: -100px; left: -80px;
    animation: float-b 28s ease-in-out infinite;
}
.orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 95, 31, 0.10) 0%, transparent 65%);
    top: 30%; right: -60px;
    animation: float-a 22s ease-in-out infinite 4s;
}
.orb-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255, 95, 31, 0.08) 0%, transparent 65%);
    bottom: 15%; left: 40%;
    animation: float-c 32s ease-in-out infinite 8s;
}
.orb-4 {
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 65%);
    top: 55%; left: 15%;
    animation: drift 18s ease-in-out infinite 2s;
}

/* Geometric shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.geo-shape {
    position: absolute;
    border: 1px solid rgba(255, 95, 31, 0.12);
    border-radius: 4px;
}
.geo-1 { width: 50px; height: 50px; top: 22%; right: 18%; animation: float-a 24s ease-in-out infinite; transform-origin: center; }
.geo-2 { width: 30px; height: 30px; top: 65%; right: 30%; border-radius: 50%; border-color: rgba(255, 95, 31, 0.15); animation: float-d 16s ease-in-out infinite 6s; }
.geo-3 { width: 20px; height: 20px; top: 40%; left: 8%; transform: rotate(45deg); animation: float-c 20s ease-in-out infinite 3s; }
.geo-4 { width: 60px; height: 2px; top: 75%; right: 12%; border-radius: 2px; border: none; background: linear-gradient(90deg, transparent, rgba(255, 95, 31, 0.25), transparent); animation: float-b 26s ease-in-out infinite 10s; }
.geo-5 { width: 80px; height: 80px; top: 15%; left: 55%; border-radius: 50%; border-color: rgba(255, 255, 255, 0.04); animation: spin-slow 40s linear infinite; }
.geo-5::before { content: ''; position: absolute; inset: 15px; border: 1px solid rgba(255, 95, 31, 0.08); border-radius: 50%; animation: spin-slow-reverse 20s linear infinite; }

/* Floating code text */
.hero-code-float {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 95, 31, 0.15);
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}
.code-float-1 { top: 28%; left: 5%; animation: float-b 30s ease-in-out infinite; }
.code-float-2 { top: 60%; right: 5%; animation: float-a 25s ease-in-out infinite 5s; }
.code-float-3 { bottom: 20%; left: 45%; animation: float-d 20s ease-in-out infinite 8s; color: rgba(255, 255, 255, 0.04); }

/* Hero content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
}

/* Two-column hero layout */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 56px;
    align-items: center;
    margin-bottom: 52px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--orange-soft);
    border: 1px solid var(--orange-border);
    border-radius: 100px;
    padding: 7px 16px 7px 10px;
    margin-bottom: 26px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    animation: glow-pulse 4s ease-in-out infinite;
}
.badge-live {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--orange);
    color: #fff;
    padding: 3px 9px;
    border-radius: 100px;
}
.badge-pulse {
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Hero heading */
.hero-h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 6vw, 78px);
    font-weight: 800;
    letter-spacing: -0.038em;
    line-height: 1.03;
    color: var(--white);
    margin-bottom: 24px;
}
.hero-h1 .line-two   { display: block; }
.hero-h1 .line-accent { display: block; color: var(--orange); }

/* Typewriter */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--orange);
    margin-left: 2px;
    vertical-align: middle;
    border-radius: 2px;
    animation: blink-cursor 1s step-end infinite;
}

.hero-sub {
    font-size: clamp(17px, 2vw, 19px);
    color: var(--muted);
    max-width: 530px;
    line-height: 1.72;
    margin-bottom: 38px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
}


/* ── HERO PANEL ──────────────────────────────────────────────── */

.hero-panel {
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}
.hero-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange-border) 30%, var(--orange-border) 70%, transparent);
}

.panel-tabs {
    display: flex;
    align-items: center;
    background: var(--ink-3);
    border-bottom: 1px solid var(--border);
    padding: 0 14px;
    gap: 0;
}
.panel-dots {
    display: flex;
    gap: 6px;
    margin-right: 10px;
}
.panel-dot { width: 10px; height: 10px; border-radius: 50%; }
.panel-dot-r { background: #FF5F57; }
.panel-dot-y { background: #FEBC2E; }
.panel-dot-g { background: #28C840; }

.panel-tab {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted-2);
    padding: 11px 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.panel-tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}
.panel-tab:hover:not(.active) { color: var(--muted); }

/* Browser preview tab */
.panel-browser { padding: 16px; display: none; }
.panel-browser.active { display: block; }

.browser-frame {
    background: var(--ink);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    overflow: hidden;
}
.browser-chrome {
    background: var(--ink-3);
    border-bottom: 1px solid var(--border);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.browser-dots { display: flex; gap: 5px; }
.browser-dot { width: 8px; height: 8px; border-radius: 50%; }
.browser-dot-r { background: rgba(255, 95, 87, 0.5); }
.browser-dot-y { background: rgba(254, 188, 46, 0.5); }
.browser-dot-g { background: rgba(40, 200, 64, 0.5); }
.browser-url {
    flex: 1;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted-2);
}
.browser-body {
    padding: 14px;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

/* Building blocks injected by JS */
.build-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.build-block {
    height: var(--h, 14px);
    border-radius: 3px;
    background: var(--c, var(--card-3));
    transform-origin: left;
    opacity: 0;
    animation: build-block 0.4s ease forwards;
    animation-delay: var(--delay, 0s);
}
.build-nav-l    { --h: 8px; width: 60px; --delay: 0.1s; }
.build-nav-r    { --h: 8px; width: 80px; --delay: 0.15s; }
.build-nav-sp   { flex: 1; }
.build-nav-btn  { --h: 8px; --c: rgba(255, 95, 31, 0.4); width: 40px; --delay: 0.2s; border-radius: 4px; }
.build-hero     { --h: 28px; --c: linear-gradient(90deg, rgba(255, 95, 31, 0.5), rgba(255, 95, 31, 0.2)); width: 100%; --delay: 0.3s; }
.build-img      { --h: 60px; width: 45%; --c: var(--card-3); --delay: 0.8s; }
.build-text-block { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }

.scanner-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 95, 31, 0.5), transparent);
    animation: scanner 2.5s ease-in-out infinite 1.5s;
    pointer-events: none;
}

/* Code tab */
.panel-code {
    padding: 14px 16px;
    display: none;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.8;
    min-height: 175px;
}
.panel-code.active { display: block; }

.code-line { display: block; white-space: pre; }
.c-comment  { color: var(--muted-2); }
.c-keyword  { color: #C792EA; }
.c-fn       { color: #82AAFF; }
.c-str      { color: #C3E88D; }
.c-num      { color: #F78C6C; }
.c-prop     { color: var(--orange); }

/* Metrics tab */
.panel-metrics-view { padding: 14px 16px; display: none; }
.panel-metrics-view.active { display: block; }

.metric-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.metric-row:last-child { margin-bottom: 0; }
.metric-row-speed { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }

.metric-label-sm {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    min-width: 104px;
}
.metric-bar-wrap {
    flex: 1;
    height: 6px;
    background: var(--card-3);
    border-radius: 3px;
    overflow: hidden;
}
.metric-bar {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-mid));
    width: 0%;
    transition: width 1.2s ease;
}
.metric-bar.green { background: linear-gradient(90deg, var(--green), var(--green-2)); }
.metric-bar.blue  { background: linear-gradient(90deg, var(--blue), #2563eb); }
.metric-val {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    min-width: 36px;
    text-align: right;
}
.metric-val-sm { font-size: 11px; min-width: 44px; }


/* ── HERO BOTTOM STRIP ───────────────────────────────────────── */

.hero-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    background: var(--card);
    overflow: hidden;
}
.hs-item {
    padding: 20px 20px;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}
.hs-item:last-child { border-right: none; }
.hs-item:hover { background: var(--card-2); }
.hs-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--orange-soft);
    border: 1px solid var(--orange-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hs-icon svg { width: 16px; height: 16px; }
.hs-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}
.hs-sub { font-size: 11px; color: var(--muted-2); }


/* ============================================================
   PROBLEM
============================================================= */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: var(--max);
    margin: 0 auto;
}
.problem-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 34px 28px;
    transition: border-color 0.28s, transform 0.28s;
    position: relative;
    overflow: hidden;
}
.problem-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0;
    transition: opacity 0.28s;
}
.problem-card:hover { border-color: var(--orange-border); transform: translateY(-3px); }
.problem-card:hover::after { opacity: 1; }

.problem-index {
    font-family: var(--font-display);
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--orange);
    opacity: 0.14;
    margin-bottom: 16px;
}
.problem-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 12px;
}
.problem-card p { font-size: 15px; color: var(--muted); line-height: 1.68; }


/* ============================================================
   SERVICES
============================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: var(--max);
    margin: 0 auto 16px;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover { border-color: var(--orange-border); transform: translateY(-4px); }
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--orange) 50%, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card:hover::before { opacity: 1; }

.service-bg-num {
    position: absolute;
    top: -10px; right: -8px;
    font-family: var(--font-display);
    font-size: 100px;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--orange);
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.service-card-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--orange-soft);
    border: 1px solid var(--orange-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    flex-shrink: 0;
}
.service-icon-wrap svg { width: 23px; height: 23px; }

.service-pill {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 8px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.022em;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.2;
}

.service-card-text > p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.68;
    margin-bottom: 18px;
}

/* Web dev card special visual */
.webdev-visual {
    background: var(--ink);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.webdev-visual-chrome {
    background: var(--ink-3);
    border-bottom: 1px solid var(--border);
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wd-dots { display: flex; gap: 4px; }
.wd-dot  { width: 7px; height: 7px; border-radius: 50%; }
.wd-dot-r { background: rgba(255, 95, 87, 0.4); }
.wd-dot-y { background: rgba(254, 188, 46, 0.4); }
.wd-dot-g { background: rgba(40, 200, 64, 0.4); }
.wd-url {
    flex: 1;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted-2);
}
.webdev-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
}
.wd-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.wd-score-ring { position: relative; width: 52px; height: 52px; }
.wd-score-ring svg { transform: rotate(-90deg); }
.wd-score-ring circle { fill: none; stroke-width: 3; stroke-linecap: round; }
.wd-score-ring .track { stroke: var(--card-3); }
.wd-score-ring .fill {
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fill-orange { stroke: var(--orange); }
.fill-green  { stroke: var(--green); }
.fill-blue   { stroke: var(--blue); }
.wd-score-num {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.wd-score-label {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    color: var(--muted-2);
    text-align: center;
}

/* CRM card — full width */
.service-card-crm {
    max-width: var(--max);
    margin: 0 auto;
}
.service-card-inner-crm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
}
.service-card-crm-list { margin-top: 8px; }
.service-card-crm-list li { font-size: 15px; }

/* Integration note */
.services-integration {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 22px 26px;
    max-width: var(--max);
    margin: 16px auto 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.si-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--orange-soft);
    border: 1px solid var(--orange-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.services-integration p { font-size: 15px; color: var(--muted); line-height: 1.68; }
.services-integration p strong { color: var(--white); font-weight: 600; }


/* ============================================================
   PROCESS
============================================================= */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
}
/* Connector line between step circles */
.process-grid::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(12.5% + 14px);
    right: calc(12.5% + 14px);
    height: 1px;
    background: linear-gradient(90deg, var(--border), var(--orange-border) 50%, var(--border));
}
.process-step { padding: 0 22px; text-align: center; }

.step-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--orange);
    position: relative;
    z-index: 1;
    transition: background 0.28s, border-color 0.28s;
}
.process-step:hover .step-circle {
    background: var(--orange-soft);
    border-color: var(--orange-border);
}
.process-step h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 10px;
}
.process-step p { font-size: 14px; color: var(--muted); line-height: 1.65; }


/* ============================================================
   DIFFERENTIATION
============================================================= */

.diff-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 68px;
    align-items: start;
    max-width: var(--max);
    margin: 0 auto;
}
.diff-text h2 {
    font-family: var(--font-display);
    font-size: clamp(27px, 3.5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 18px;
}
.diff-text p { font-size: 16px; color: var(--muted); line-height: 1.78; margin-bottom: 18px; }
.diff-text p:last-of-type { margin-bottom: 0; }
.diff-text strong { color: var(--white); font-weight: 600; }

.diff-points { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.diff-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: border-color 0.28s;
}
.diff-point:hover { border-color: var(--orange-border); }
.diff-point-icon {
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: 7px;
    background: var(--orange-soft);
    border: 1px solid var(--orange-border);
    display: flex; align-items: center; justify-content: center;
}
.diff-point-icon svg { width: 14px; height: 14px; }
.diff-point-body h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.diff-point-body p  { font-size: 13px; color: var(--muted); line-height: 1.58; }


/* ============================================================
   PACKAGES
============================================================= */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto 12px;
    align-items: start;
}

.pkg-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px 28px;
    position: relative;
    transition: border-color 0.28s;
}
.pkg-card:hover { border-color: var(--orange-border); }
.pkg-card.featured { border-color: var(--orange); background: var(--card-2); }
.pkg-card-custom {
    border-color: var(--border-2);
    border-style: dashed;
    background: transparent;
}
.pkg-card-custom:hover { border-style: solid; background: var(--card); }

.pkg-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: #fff;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

.pkg-badge-alt {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--orange-soft);
    border: 1px solid var(--orange-border);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.pkg-tier {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 6px;
}
.pkg-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: 6px;
}
.pkg-tagline { font-size: 14px; color: var(--muted-2); line-height: 1.5; }

.pkg-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin: 18px 0 12px;
}
.pkg-amount {
    font-family: var(--font-display);
    font-size: clamp(30px, 6vw, 42px);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--white);
    line-height: 1;
}
.pkg-period { font-size: 15px; color: var(--muted-2); padding-bottom: 2px; }

.pkg-price-custom {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 18px 0 12px;
}
.pkg-price-range {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
}
.pkg-price-note { font-size: 13px; color: var(--muted-2); line-height: 1.5; }

.pkg-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.62;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.pkg-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
}
.pkg-features li {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.55;
}
.pkg-features li::before {
    content: '';
    width: 14px; height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6.5' stroke='%23FF5F1F' stroke-opacity='.3'/%3E%3Cpath d='M4 7l2.3 2.3L11 5' stroke='%23FF5F1F' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.scope-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 20px;
}
.scope-tag {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid var(--orange-border);
    color: var(--orange);
    background: var(--orange-soft);
}

/* Additional packages toggle button */
.packages-expand-trigger {
    max-width: 1080px;
    margin: 0 auto 12px;
    display: flex;
    justify-content: center;
}
.packages-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.packages-toggle-btn:hover { background: var(--card-2); border-color: var(--orange-border); }
.ptb-label { color: var(--muted); transition: color 0.2s; }
.packages-toggle-btn:hover .ptb-label { color: var(--white); }
.ptb-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.packages-toggle-btn[aria-expanded="true"] .ptb-chevron { transform: rotate(180deg); }

/* Additional packages expandable section */
.packages-additional {
    max-width: 1080px;
    margin: 0 auto;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
}
.packages-additional.open {
    max-height: 1400px;
    opacity: 1;
}
.packages-grid-additional {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-top: 16px;
}

/* Packages note */
.pkg-note {
    text-align: center;
    font-size: 15px;
    color: var(--muted);
    max-width: 1080px;
    margin: 20px auto 0;
}
.pkg-note a { color: var(--orange); border-bottom: 1px solid var(--orange-border); }


/* ============================================================
   RESULTS
============================================================= */

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: var(--max);
    margin: 0 auto 24px;
}
.result-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.28s, transform 0.28s;
}
.result-card:hover { border-color: var(--orange-border); transform: translateY(-3px); }
.result-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--orange-soft);
    border: 1px solid var(--orange-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
.result-icon svg { width: 20px; height: 20px; }
.result-headline {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.result-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

.results-guarantee {
    background: var(--card);
    border: 1px solid var(--orange-border);
    border-radius: var(--r-lg);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    max-width: var(--max);
    margin: 0 auto;
}
.rg-left h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 7px;
    letter-spacing: -0.015em;
}
.rg-left p { font-size: 15px; color: var(--muted); max-width: 570px; line-height: 1.65; }


/* ============================================================
   FAQ
============================================================= */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color 0.28s;
}
.faq-item.open { border-color: var(--orange-border); }
.faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--white);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1.4;
}
.faq-toggle {
    width: 27px; height: 27px;
    border-radius: 7px;
    background: var(--card-2);
    border: 1px solid var(--border-2);
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}
.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    background: var(--muted);
    border-radius: 2px;
    transition: transform 0.28s, opacity 0.28s, background 0.2s;
}
.faq-toggle::before { width: 11px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-toggle::after  { width: 1.5px; height: 11px; transform: translate(-50%, -50%); }

.faq-item.open .faq-toggle {
    background: var(--orange-soft);
    border-color: var(--orange-border);
}
.faq-item.open .faq-toggle::after  { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item.open .faq-toggle::before { background: var(--orange); }

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease;
}
.faq-item.open .faq-body { max-height: 600px; }
.faq-body-inner {
    padding: 0 22px 20px;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.72;
}


/* ============================================================
   CTA
============================================================= */

#cta { position: relative; overflow: hidden; }
#cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 90% at 50% 110%, rgba(255, 95, 31, 0.09) 0%, transparent 55%);
    pointer-events: none;
}
.cta-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.5vw, 54px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}
.cta-sub {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.68;
    margin-bottom: 42px;
}
.cta-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto 16px;
    flex-wrap: wrap;
}
.cta-form input {
    flex: 1;
    min-width: 180px;
    padding: 15px 17px;
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: 9px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.cta-form input::placeholder { color: var(--muted-2); }
.cta-form input:focus { border-color: var(--orange-border); }
.cta-form input.error { border-color: rgba(239, 68, 68, 0.5); }

/* Math challenge row — full-width inside the flex cta-form */
.cta-form-math {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-2);
    border-radius: 9px;
}
.cta-form-math label {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: default;
}
.cta-form-math input[type="number"] {
    width: 80px;
    flex-shrink: 0;
    padding: 8px 10px;
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: 7px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}
.cta-form-math input[type="number"]::-webkit-outer-spin-button,
.cta-form-math input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.cta-form-math input[type="number"]:focus { border-color: var(--orange-border); }
.cta-form-math input[type="number"].error { border-color: rgba(239, 68, 68, 0.5); }
.cta-math-hint {
    font-size: 12px;
    color: var(--muted-2);
    flex: 1;
    text-align: right;
}

.cta-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--green);
    padding: 14px;
    background: var(--green-soft);
    border: 1px solid var(--green-border);
    border-radius: 9px;
    max-width: 520px;
    margin: 0 auto 16px;
    animation: fade-in 0.4s ease;
}
.cta-success-icon { flex-shrink: 0; }

.cta-disclaimer {
    font-size: 13px;
    color: var(--muted-2);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.55;
}
.cta-disclaimer a { color: var(--orange); }


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

@media (max-width: 1080px) {
    .hero-layout { grid-template-columns: 1fr; gap: 48px; }
    .hero-panel { max-width: 500px; }
    .hero-sub   { max-width: 100%; }
    .hero-h1    { font-size: clamp(42px, 8vw, 68px); }
    .diff-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
    .hero-strip { grid-template-columns: repeat(3, 1fr); }
    .hs-item:nth-child(3) { border-right: none; }
    .hs-item:nth-child(4), .hs-item:nth-child(5) { border-top: 1px solid var(--border); }

    .problem-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }

    .service-card-inner-crm {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .process-grid { grid-template-columns: 1fr; }
    .process-grid::before { display: none; }
    .process-step {
        text-align: left;
        display: flex;
        gap: 18px;
        align-items: flex-start;
    }
    .step-circle { margin: 0; flex-shrink: 0; }

    .packages-grid { grid-template-columns: 1fr; max-width: 460px; }
    .packages-grid-additional { grid-template-columns: 1fr; max-width: 460px; }

    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .results-guarantee { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .hero-h1 { font-size: clamp(38px, 10vw, 54px); }

    .hero-strip { grid-template-columns: repeat(2, 1fr); }
    .hs-item:nth-child(2n) { border-right: none; }
    .hs-item:nth-child(n+3) { border-top: 1px solid var(--border); }
    .hs-item:last-child { grid-column: 1 / -1; }

    .results-grid { grid-template-columns: 1fr; }
@media (max-width: 768px) {
    .cta-form { flex-direction: column; }

    /* Math row: stack vertically, left-align everything */
    .cta-form-math {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .cta-form-math label {
        white-space: normal;
    }
    .cta-form-math input[type="number"] {
        width: 100%;
    }
    .cta-math-hint {
        text-align: left;
        flex: none;
    }
}

    .diff-layout { grid-template-columns: 1fr; }

    .problem-card { padding: 28px 22px; }
    .service-card { padding: 28px 22px; }
    .pkg-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
    #problem, #services, #process,
    #differentiation, #packages, #results, #faq, #cta {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-h1    { font-size: clamp(32px, 10vw, 48px); }
    .hero-sub   { font-size: 16px; }
    .hero-cta   { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { text-align: center; }

    .problem-card  { padding: 22px 18px; }
    .service-card  { padding: 22px 18px; }
    .pkg-card      { padding: 22px 18px; }

    .faq-item      { padding: 18px 16px; }

    .packages-grid,
    .packages-grid-additional { max-width: 100%; }

    .diff-col-text  { padding: 0; }
    .process-step   { gap: 14px; }

    .cta-title { font-size: clamp(26px, 8vw, 38px); }
    .cta-form  { gap: 10px; }
    .cta-form input,
    .cta-form .btn { width: 100%; }
}
