/* ===========================
   GLOBAL-S × SAMSUNG — Theme
   =========================== */

html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

:root {
    --gs-blue:        #073E99;
    --gs-blue-dark:   #052D73;
    --gs-blue-deep:   #041F52;
    --samsung-blue:   #1428A0;
    --samsung-blue-2: #1F4FCB;
    --accent-green:   #38CD1A;
    --accent-amber:   #FFA000;

    --bg-soft:        #F4F6FA;
    --bg-card:        #FFFFFF;

    --text-dark:      #1C2233;
    --text-mid:       #4A5468;
    --text-light:     #8892A6;

    --shadow-sm:  0 2px  6px rgba(7,62,153,0.06);
    --shadow-md:  0 4px 12px rgba(7,62,153,0.10);
    --shadow-lg:  0 12px 32px rgba(7,62,153,0.18);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --hero-gradient: linear-gradient(135deg, #073E99 0%, #1428A0 50%, #1F4FCB 100%);
    --soft-gradient: linear-gradient(180deg, #FFFFFF 0%, #F4F6FA 100%);
    --green-gradient: linear-gradient(135deg, #38CD1A 0%, #1FAD0E 100%);
    --samsung-gradient: linear-gradient(135deg, #1428A0 0%, #073E99 100%);
}

/* --- Reveal overrides --- */
.reveal {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 22px;
    color: var(--text-dark);
}
.reveal .slides {
    text-align: left;
}
.reveal .slides section {
    padding: 44px 56px !important;
    box-sizing: border-box;
    height: 100%;
}
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
    font-family: 'Roboto', sans-serif;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--gs-blue);
    margin: 0 0 0.4em 0;
    line-height: 1.12;
}
.reveal h1 { font-size: 2.6em; font-weight: 800; }
.reveal h2 { font-size: 1.7em; font-weight: 700; }
.reveal h3 { font-size: 1.2em; font-weight: 600; }
.reveal h4 { font-size: 1em; font-weight: 600; }
.reveal p { margin: 0 0 0.5em 0; line-height: 1.4; color: var(--text-mid); }
.reveal a { color: var(--samsung-blue); text-decoration: none; }
.reveal strong { color: var(--gs-blue); font-weight: 700; }

/* --- Slide kinds --- */
.slide-hero {
    background: var(--hero-gradient);
    color: #fff !important;
    position: relative;
    overflow: hidden;
}
.slide-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 20% 20%, rgba(255,255,255,0.10) 0, transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(56,205,26,0.15) 0, transparent 40%);
    pointer-events: none;
}
.slide-hero h1, .slide-hero h2, .slide-hero h3,
.slide-hero p, .slide-hero strong {
    color: #fff !important;
}
.slide-hero p { color: rgba(255,255,255,0.85) !important; }

.slide-soft   { background: var(--bg-soft); }
.slide-white  { background: #fff; }
.slide-samsung {
    background: var(--samsung-gradient);
    color: #fff !important;
}
.slide-samsung h1, .slide-samsung h2, .slide-samsung h3, .slide-samsung p, .slide-samsung strong { color:#fff !important; }
.slide-samsung p { color: rgba(255,255,255,0.88) !important; }

/* --- Topbar --- */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(7,62,153,0.08);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
    z-index: 9999;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    gap: 8px;
}
.topbar .brand { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.topbar .actions { flex: 0 0 auto; }
.topbar .brand {
    display: flex; align-items: center; gap: 14px;
    font-size: 13px; color: var(--text-mid); font-weight: 500;
}
.topbar .brand img { height: 28px; }
.topbar .brand .sep {
    width: 1px; height: 22px; background: rgba(7,62,153,0.18);
}
.topbar .actions { display: flex; gap: 10px; align-items: center; }
.btn-download {
    background: var(--samsung-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 18px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: var(--shadow-sm);
}
.btn-download:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-download .material-icons { font-size: 18px; }

/* --- Hero cover content --- */
.hero-content {
    height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
    gap: 18px;
    position: relative;
    z-index: 3;
    max-width: 70%;
}
.hero-logos {
    display: flex; align-items: center; gap: 20px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    backdrop-filter: blur(6px);
}
.hero-logos img.gs    { height: 32px; }
.hero-logos img.sam   { height: 22px; }
.hero-logos .x        { color: rgba(255,255,255,0.55); font-weight: 300; font-size: 20px; }
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7em;
    color: rgba(255,255,255,0.75) !important;
    font-weight: 600;
}
.hero-title {
    font-size: 2.8em !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    max-width: 800px;
}
.hero-title .accent {
    background: linear-gradient(90deg, #FFFFFF 0%, #38CD1A 80%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 0.95em !important;
    max-width: 720px;
    color: rgba(255,255,255,0.88) !important;
}
.hero-tags {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px;
}
.hero-tag {
    font-size: 0.7em;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    font-weight: 500;
}

/* --- Section header --- */
.section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.65em;
    color: var(--samsung-blue);
    font-weight: 700;
    background: rgba(20,40,160,0.08);
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 10px;
}
.section-title { font-size: 1.8em !important; margin-bottom: 0.3em !important; }
.section-lead {
    font-size: 0.85em;
    max-width: 880px;
    color: var(--text-mid);
}

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

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(7,62,153,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex; flex-direction: column; gap: 6px;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon-box {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--samsung-gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 2px;
    box-shadow: 0 4px 10px rgba(20,40,160,0.25);
}
.card .icon-box.green { background: var(--green-gradient); box-shadow: 0 4px 10px rgba(56,205,26,0.30); }
.card .icon-box .material-icons { font-size: 22px; }
.card h4 { font-size: 0.95em; color: var(--gs-blue); margin: 0; line-height: 1.2; }
.card p  { margin: 0; font-size: 0.75em; color: var(--text-mid); line-height: 1.4; }
.card ul { margin: 4px 0 0 0; padding-left: 16px; font-size: 0.72em; color: var(--text-mid); }
.card ul li { margin-bottom: 3px; }

.card-pain { border-left: 4px solid #E53935; }
.card-pain .icon-box { background: linear-gradient(135deg, #E53935 0%, #C62828 100%); box-shadow: 0 4px 10px rgba(229,57,53,0.30); }

.card-feat-highlight {
    background: var(--samsung-gradient);
    color: #fff;
}
.card-feat-highlight h4, .card-feat-highlight p { color: #fff; }
.card-feat-highlight .icon-box { background: rgba(255,255,255,0.2); }

/* --- Stat tiles (numeri vetrina) --- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.stat {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--samsung-blue);
    position: relative;
    overflow: hidden;
}
.stat:nth-child(2) { border-top-color: var(--gs-blue); }
.stat:nth-child(3) { border-top-color: var(--accent-green); }
.stat:nth-child(4) { border-top-color: var(--accent-amber); }
.stat .num {
    font-size: 2.6em;
    font-weight: 800;
    line-height: 1;
    background: var(--samsung-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 6px;
}
.stat:nth-child(3) .num { background: var(--green-gradient); -webkit-background-clip: text; background-clip:text; -webkit-text-fill-color: transparent; }
.stat .label {
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 0.6em;
    color: var(--text-mid);
    font-weight: 600;
}

/* --- Bullet list with check --- */
.checklist {
    list-style: none;
    padding: 0; margin: 12px 0 0 0;
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 8px 18px;
}
.checklist li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 0.78em;
    color: var(--text-dark);
    line-height: 1.35;
}
.checklist li::before {
    content: "✓";
    width: 18px; height: 18px;
    flex: 0 0 18px;
    background: var(--green-gradient);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.68em;
    margin-top: 2px;
}

/* --- KPI dashboard mockup --- */
.dashboard-mock {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-md);
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.kpi {
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    border-left: 3px solid var(--samsung-blue);
}
.kpi .kpi-label { font-size: 0.6em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); font-weight: 600; }
.kpi .kpi-value { font-size: 1.4em; font-weight: 700; color: var(--gs-blue); margin-top: 2px; line-height: 1.1; }
.kpi .kpi-trend { font-size: 0.6em; color: var(--accent-green); font-weight: 600; margin-top: 1px; }
.kpi .kpi-trend.down { color: #E53935; }

/* --- 2 column layout --- */
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
    margin-top: 18px;
}
.split .visual {
    background: var(--samsung-gradient);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.split .visual h4 { color: #fff; font-size: 0.95em; margin-bottom: 10px; }
.split .visual .code-flow {
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.7em;
    line-height: 1.7;
    background: rgba(0,0,0,0.20);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #C8E6FF;
}
.split .visual .code-flow .arrow { color: var(--accent-green); }
.split .visual .code-flow .key   { color: #FFD180; }

/* --- API endpoint chips --- */
.endpoint-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}
.endpoint {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    box-shadow: var(--shadow-sm);
    font-family: 'Menlo', monospace;
    font-size: 0.7em;
    color: var(--gs-blue);
    border-left: 3px solid var(--samsung-blue);
    display: flex; align-items: center; gap: 6px;
}
.endpoint .verb {
    background: var(--green-gradient);
    color: #fff;
    padding: 1px 6px; border-radius: 3px;
    font-size: 0.85em; font-weight: 700;
}
.endpoint .verb.post { background: linear-gradient(135deg,#FFA000,#FF6F00); }

/* --- CTA --- */
.cta-block {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.cta-btn {
    background: #fff;
    color: var(--gs-blue);
    border-radius: 100px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 0.8em;
    box-shadow: var(--shadow-md);
    display: inline-flex; align-items: center; gap: 8px;
}
.cta-btn.primary { background: var(--green-gradient); color:#fff; }
.cta-btn .material-icons { font-size: 18px; }

/* --- Footer slide --- */
.slide-footer {
    position: absolute;
    bottom: 16px; left: 56px; right: 56px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.62em;
    color: var(--text-light);
}
.slide-hero .slide-footer, .slide-samsung .slide-footer {
    color: rgba(255,255,255,0.55);
}
.slide-footer img { height: 16px; opacity: 0.75; }

/* --- Reveal navigation tweaks --- */
.reveal .controls { color: var(--samsung-blue); }
.reveal .progress { color: var(--samsung-blue); height: 3px; }

/* ====================================================
   MOCKUP — finestre browser, sidebar, tabella, wizard
   ==================================================== */

.mock-browser {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(7,62,153,0.15), 0 5px 12px rgba(7,62,153,0.08);
    overflow: hidden;
    border: 1px solid rgba(7,62,153,0.08);
    margin-top: 12px;
}
.mock-chrome {
    background: linear-gradient(180deg, #F4F6FA 0%, #E8ECF4 100%);
    padding: 10px 14px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(7,62,153,0.08);
}
.mock-chrome .dots { display: flex; gap: 6px; }
.mock-chrome .dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-chrome .dot.r { background: #FF5F57; }
.mock-chrome .dot.y { background: #FEBC2E; }
.mock-chrome .dot.g { background: #28C840; }
.mock-chrome .url {
    flex: 1;
    background: #fff;
    border-radius: 5px;
    padding: 4px 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.55em;
    color: var(--text-mid);
    border: 1px solid rgba(7,62,153,0.06);
    display: flex; align-items: center; gap: 6px;
}
.mock-chrome .url::before {
    content: "🔒";
    font-size: 0.85em;
    opacity: 0.6;
}

.mock-layout {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 320px;
}
.mock-sidebar {
    background: linear-gradient(180deg, var(--gs-blue) 0%, var(--gs-blue-deep) 100%);
    color: #fff;
    padding: 14px 0;
}
.mock-sidebar .logo {
    padding: 0 14px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    display: flex; align-items: center; gap: 6px;
    font-size: 0.62em; font-weight: 700; letter-spacing: 0.03em;
}
.mock-sidebar .logo img { height: 16px; filter: brightness(0) invert(1); }
.mock-sidebar ul { list-style: none; margin: 8px 0 0; padding: 0; }
.mock-sidebar li {
    padding: 7px 14px;
    font-size: 0.6em; font-weight: 500;
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.75);
    border-left: 3px solid transparent;
    cursor: default;
}
.mock-sidebar li.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: var(--accent-green);
}
.mock-sidebar li .material-icons { font-size: 14px; opacity: 0.85; }
.mock-sidebar li.active .material-icons { color: var(--accent-green); opacity: 1; }

.mock-main {
    padding: 14px 18px;
    background: #fff;
}
.mock-breadcrumb {
    font-size: 0.55em;
    color: var(--text-light);
    margin-bottom: 8px;
}
.mock-breadcrumb b { color: var(--gs-blue); font-weight: 600; }
.mock-h {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.mock-h h5 { font-size: 0.95em; font-weight: 700; color: var(--gs-blue); margin: 0; }
.mock-btn {
    background: var(--samsung-gradient);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.55em;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
}
.mock-btn .material-icons { font-size: 12px; }
.mock-btn.ghost { background: transparent; color: var(--samsung-blue); border: 1px solid var(--samsung-blue); }

/* Mock dashboard widgets */
.mock-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.mock-w {
    background: #F4F6FA;
    border-radius: 6px;
    padding: 7px 10px;
    border-left: 3px solid var(--samsung-blue);
}
.mock-w:nth-child(2) { border-left-color: var(--gs-blue); }
.mock-w:nth-child(3) { border-left-color: var(--accent-green); }
.mock-w:nth-child(4) { border-left-color: var(--accent-amber); }
.mock-w .l { font-size: 0.5em; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.mock-w .v { font-size: 1.1em; font-weight: 700; color: var(--gs-blue); margin-top: 1px; line-height: 1.1; }
.mock-w .t { font-size: 0.5em; color: var(--accent-green); margin-top: 1px; font-weight: 600; }

.mock-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
}
.mock-panel {
    background: #fff;
    border: 1px solid rgba(7,62,153,0.08);
    border-radius: 6px;
    padding: 9px 11px;
}
.mock-panel h6 {
    font-size: 0.7em;
    font-weight: 700;
    color: var(--gs-blue);
    margin: 0 0 6px 0;
    display: flex; align-items: center; gap: 5px;
}
.mock-panel h6 .material-icons { font-size: 13px; color: var(--samsung-blue); }
.mock-samsung-widget {
    background: linear-gradient(135deg, #F0F4FE 0%, #E8EFFD 100%);
    border-left-color: var(--samsung-blue);
    border: 1px solid rgba(20,40,160,0.12);
}
.mock-stats-inline { display: flex; gap: 10px; margin-top: 4px; }
.mock-stats-inline div { flex: 1; }
.mock-stats-inline .n { font-size: 1.1em; font-weight: 700; color: var(--samsung-blue); line-height: 1.1; }
.mock-stats-inline .lbl { font-size: 0.5em; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.04em; }
.mock-stats-inline .n.green { color: var(--accent-green); }
.mock-stats-inline .n.amber { color: var(--accent-amber); }

.mock-bars { display: flex; align-items: end; gap: 3px; height: 48px; margin-top: 4px; }
.mock-bars .b {
    flex: 1;
    background: var(--samsung-gradient);
    border-radius: 3px 3px 0 0;
    min-height: 8px;
}
.mock-bars .b:nth-child(1)  { height: 28%; }
.mock-bars .b:nth-child(2)  { height: 42%; }
.mock-bars .b:nth-child(3)  { height: 35%; }
.mock-bars .b:nth-child(4)  { height: 58%; }
.mock-bars .b:nth-child(5)  { height: 70%; }
.mock-bars .b:nth-child(6)  { height: 52%; }
.mock-bars .b:nth-child(7)  { height: 78%; }
.mock-bars .b:nth-child(8)  { height: 90%; }
.mock-bars .b:nth-child(9)  { height: 65%; }
.mock-bars .b:nth-child(10) { height: 80%; }
.mock-bars .b:nth-child(11) { height: 95%; }
.mock-bars .b:nth-child(12) { height: 100%; background: var(--green-gradient); }

.mock-activity { font-size: 0.55em; color: var(--text-mid); padding: 0; margin: 0; }
.mock-activity li {
    padding: 4px 0;
    border-bottom: 1px dashed rgba(7,62,153,0.08);
    display: flex; gap: 6px; align-items: flex-start;
    list-style: none;
}
.mock-activity li:last-child { border: none; }
.mock-activity .ico {
    width: 18px; height: 18px;
    border-radius: 4px; background: rgba(20,40,160,0.10);
    color: var(--samsung-blue);
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 18px;
}
.mock-activity .ico .material-icons { font-size: 11px; }
.mock-activity strong { color: var(--gs-blue); }
.mock-activity .when { color: var(--text-light); margin-left: auto; font-size: 0.85em; white-space: nowrap; }

/* Mock data table */
.mock-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.55em;
}
.mock-table thead th {
    text-align: left;
    background: #F4F6FA;
    color: var(--gs-blue);
    font-weight: 700;
    padding: 6px 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(7,62,153,0.10);
}
.mock-table tbody td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(7,62,153,0.06);
    color: var(--text-mid);
    vertical-align: middle;
}
.mock-table tbody tr:hover td { background: rgba(20,40,160,0.04); }
.mock-table .mono { font-family: 'Menlo', monospace; color: var(--gs-blue); font-weight: 500; }
.mock-table .imei { font-family: 'Menlo', monospace; font-size: 0.92em; color: var(--text-mid); }
.mock-table .price { font-weight: 700; color: var(--gs-blue); }

.so-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 7px;
    border-radius: 100px;
    font-size: 0.85em;
    font-weight: 600;
    background: rgba(20,40,160,0.10);
    color: var(--samsung-blue);
    white-space: nowrap;
}
.so-badge.st010 { background: rgba(20,40,160,0.10); color: var(--samsung-blue); }
.so-badge.st015 { background: rgba(255,160,0,0.12); color: #C77700; }
.so-badge.st020 { background: rgba(31,79,203,0.10); color: var(--samsung-blue-2); }
.so-badge.st035 { background: rgba(56,205,26,0.14); color: #1FAD0E; }
.so-badge.st040 { background: rgba(140,150,170,0.16); color: #4A5468; }
.so-badge.st070 { background: rgba(229,57,53,0.12); color: #C62828; }
.pay-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(56,205,26,0.14);
    color: #1FAD0E;
}
.pay-badge.pending { background: rgba(255,160,0,0.14); color: #C77700; }

/* Mock IMEI form / wizard */
.mock-wizard-steps {
    display: flex;
    justify-content: space-between;
    margin: 4px 0 12px;
    padding: 0 4px;
    position: relative;
}
.mock-wizard-steps::before {
    content: "";
    position: absolute;
    top: 11px; left: 18px; right: 18px;
    height: 2px;
    background: rgba(7,62,153,0.12);
    z-index: 0;
}
.mock-wizard-steps .step {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    z-index: 1; flex: 1;
}
.mock-wizard-steps .num {
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 2px solid rgba(7,62,153,0.18);
    color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.55em;
}
.mock-wizard-steps .lbl { font-size: 0.45em; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.mock-wizard-steps .step.done .num { background: var(--accent-green); border-color: var(--accent-green); color: #fff; }
.mock-wizard-steps .step.done .lbl { color: var(--accent-green); }
.mock-wizard-steps .step.active .num { background: var(--samsung-gradient); border-color: var(--samsung-blue); color: #fff; box-shadow: 0 0 0 3px rgba(20,40,160,0.15); }
.mock-wizard-steps .step.active .lbl { color: var(--samsung-blue); font-weight: 700; }

.mock-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.mock-form-grid .full { grid-column: 1 / -1; }
.mock-field { display: flex; flex-direction: column; gap: 2px; }
.mock-field label { font-size: 0.5em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); }
.mock-field .inp {
    background: #fff;
    border: 1px solid rgba(7,62,153,0.18);
    border-radius: 4px;
    padding: 5px 9px;
    font-size: 0.65em;
    color: var(--gs-blue);
    font-family: 'Menlo', monospace;
    display: flex; align-items: center; justify-content: space-between;
}
.mock-field.imei .inp {
    border: 2px solid var(--samsung-blue);
    box-shadow: 0 0 0 3px rgba(20,40,160,0.08);
}
.mock-field.imei .verify {
    background: var(--samsung-gradient); color: #fff;
    border-radius: 3px; padding: 2px 7px; font-size: 0.85em;
    font-family: 'Roboto', sans-serif; font-weight: 700;
}

.mock-warranty-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #F0FAF0 0%, #E5F8E7 100%);
    border-left: 4px solid var(--accent-green);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 2px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: relative;
}
.mock-warranty-card .wcheck {
    position: absolute; top: 7px; right: 10px;
    background: var(--green-gradient); color: #fff;
    padding: 1px 7px; border-radius: 100px;
    font-size: 0.42em; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 3px;
}
.mock-warranty-card .wcheck .material-icons { font-size: 10px; }
.mock-warranty-card .w-field .l { font-size: 0.45em; color: var(--text-light); text-transform: uppercase; font-weight: 600; }
.mock-warranty-card .w-field .v { font-size: 0.6em; color: var(--gs-blue); font-weight: 600; margin-top: 1px; }

/* Mock KB gallery */
.kb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}
.kb-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(7,62,153,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.kb-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kb-item .thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #F4F6FA;
    background-size: cover;
    background-position: top center;
    border-bottom: 1px solid rgba(7,62,153,0.08);
}
.kb-item .cap {
    padding: 8px 10px;
    display: flex; align-items: center; gap: 6px;
}
.kb-item .cap .ico {
    width: 24px; height: 24px; border-radius: 5px;
    background: var(--samsung-gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 24px;
}
.kb-item .cap .ico .material-icons { font-size: 14px; }
.kb-item .cap .t { font-size: 0.78em; font-weight: 600; color: var(--gs-blue); line-height: 1.1; }
.kb-item .cap .s { font-size: 0.62em; color: var(--text-light); margin-top: 1px; }

/* Cover decorative phone frame (CSS only) */
.hero-phone {
    position: absolute;
    right: 80px; bottom: 80px;
    width: 200px; height: 400px;
    border-radius: 32px;
    background: linear-gradient(160deg, #1B1F2E 0%, #2A3142 100%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 0 0 2px rgba(255,255,255,0.08);
    padding: 7px;
    transform: rotate(-6deg);
    opacity: 0.95;
    pointer-events: none;
    z-index: 2;
}
.hero-phone::before {
    content: "";
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 70px; height: 16px;
    background: #1B1F2E; border-radius: 100px;
}
.hero-phone .scr {
    width: 100%; height: 100%;
    border-radius: 28px;
    background: linear-gradient(180deg, var(--gs-blue) 0%, var(--samsung-blue) 100%);
    overflow: hidden;
    position: relative;
}
.hero-phone .scr::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.10) 0, transparent 35%),
        radial-gradient(circle at 70% 70%, rgba(56,205,26,0.18) 0, transparent 30%);
}
.hero-phone .scr .mini {
    position: absolute; top: 50px; left: 14px; right: 14px;
    color: #fff; font-size: 9px;
    line-height: 1.5;
}
.hero-phone .scr .mini b { display: block; font-size: 11px; margin-bottom: 6px; letter-spacing: 0.04em; }
.hero-phone .scr .pill {
    display: inline-block;
    padding: 3px 8px; margin: 2px 4px 2px 0;
    border-radius: 100px;
    background: rgba(255,255,255,0.14);
    font-size: 8px;
}

/* ====================================================
   RESPONSIVE — breakpoint scale
   ==================================================== */

/* Tablet landscape — iPad 1024 */
@media (max-width: 1024px) {
    .reveal { font-size: 28px; }
    .reveal .slides section { padding: 80px 56px !important; }
    .hero-title { font-size: 2.8em !important; }
    .section-title { font-size: 2em !important; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .dashboard-mock { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .endpoint-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-phone { width: 170px; height: 340px; right: 36px; bottom: 36px; }
    .mock-layout { grid-template-columns: 150px 1fr; }
    .mock-widgets { grid-template-columns: repeat(2, 1fr); }
    .mock-row { grid-template-columns: 1fr; }
    .kb-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* Tablet portrait — iPad 768 */
@media (max-width: 768px) {
    .reveal { font-size: 24px; }
    .reveal .slides section { padding: 70px 36px 36px !important; }
    .topbar { height: 52px; padding: 0 16px; }
    .topbar .brand { font-size: 11px; gap: 10px; }
    .topbar .brand img { height: 22px; }
    .topbar .brand .label-long { display: none; }
    .btn-download { padding: 7px 14px; font-size: 12px; }
    .btn-download .material-icons { font-size: 16px; }
    .hero-title { font-size: 2.2em !important; }
    .section-title { font-size: 1.7em !important; }
    .section-lead { font-size: 0.9em; }
    .hero-logos { gap: 16px; padding: 14px 20px; }
    .hero-logos img.gs { height: 36px; }
    .hero-logos img.sam { height: 22px; }
    .hero-tags { gap: 6px; }
    .hero-phone { display: none; }
    .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
    .stat { padding: 22px 16px; }
    .stat .num { font-size: 2.6em; }
    .dashboard-mock { grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
    .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 14px; }
    .split { grid-template-columns: 1fr; gap: 18px; }
    .checklist { grid-template-columns: 1fr; }
    .endpoint-grid { grid-template-columns: 1fr 1fr; }
    .cta-block { flex-direction: column; align-items: flex-start; gap: 10px; }
    .mock-browser { margin-top: 14px; }
    .mock-layout { grid-template-columns: 1fr; }
    .mock-sidebar { display: none; }
    .mock-widgets { grid-template-columns: 1fr 1fr; gap: 8px; }
    .mock-table { font-size: 0.36em; }
    .mock-table thead th, .mock-table tbody td { padding: 6px 8px; }
    .mock-form-grid { grid-template-columns: 1fr; }
    .mock-warranty-card { grid-template-columns: 1fr 1fr; }
    .kb-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .slide-footer { left: 36px; right: 36px; }
}

/* Mobile landscape — 600 */
@media (max-width: 600px) {
    .reveal { font-size: 20px; }
    .reveal .slides section { padding: 64px 24px 24px !important; }
    .topbar { height: 48px; padding: 0 12px; }
    .topbar .brand .sep,
    .topbar .brand .label-mid,
    .topbar .brand .label-long { display: none; }
    .topbar .brand img:nth-of-type(2) { display: none; }
    .btn-download .btn-label { display: none; }
    .btn-download { padding: 7px 11px; gap: 0; }
    .btn-download .material-icons { font-size: 18px; }
    .section-title { font-size: 1.5em !important; }
    .hero-title { font-size: 1.9em !important; }
    .stat .num { font-size: 2.4em; }
    .mock-table thead th, .mock-table tbody td { padding: 5px 6px; font-size: 0.95em; }
    .endpoint-grid { grid-template-columns: 1fr; }
    .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
    .mock-browser { max-width: 100%; overflow: hidden; }
}

/* Mobile portrait — 480 */
@media (max-width: 480px) {
    .reveal { font-size: 18px; }
    .reveal .slides section { padding: 56px 18px 22px !important; }
    .topbar { height: 44px; padding: 0 8px; }
    .topbar .brand { font-size: 10px; gap: 6px; }
    .topbar .brand img { height: 18px; }
    .topbar .brand .label-mid,
    .topbar .brand .label-long { display: none; }
    .btn-download { padding: 6px 10px; gap: 4px; }
    .btn-download .btn-label { display: none; }
    .btn-download .material-icons { font-size: 18px; }
    .hero-title { font-size: 1.7em !important; }
    .hero-subtitle { font-size: 0.95em !important; }
    .hero-logos { gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
    .hero-logos img.gs { height: 28px; }
    .hero-logos .x { font-size: 18px; }
    .hero-tag { padding: 5px 11px; font-size: 0.5em; }
    .section-title { font-size: 1.3em !important; }
    .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 16px 12px; }
    .stat .num { font-size: 2em; }
    .stat .label { font-size: 0.42em; }
    .dashboard-mock { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
    .kpi { padding: 10px; }
    .kpi .kpi-value { font-size: 1.2em; }
    .card { padding: 16px 14px; }
    .card .icon-box { width: 42px; height: 42px; }
    .card .icon-box .material-icons { font-size: 22px; }
    .checklist li { font-size: 0.78em; }
    .mock-chrome .url { font-size: 0.42em; }
    .mock-warranty-card { grid-template-columns: 1fr; gap: 6px; }
    .kb-grid { grid-template-columns: 1fr; }
    .slide-footer { left: 18px; right: 18px; font-size: 0.42em; }
}

/* iPhone SE — 375 */
@media (max-width: 375px) {
    .reveal { font-size: 16px; }
    .reveal .slides section { padding: 50px 14px 18px !important; }
    .section-title { font-size: 1.2em !important; }
    .hero-title { font-size: 1.5em !important; }
    .stat .num { font-size: 1.8em; }
    .hero-logos { padding: 8px 12px; }
    .hero-logos img.gs { height: 24px; }
    .hero-tag { padding: 4px 10px; font-size: 0.55em; }
}
