/* ==========================================================================
   SolarDiverter by AlternativaIOT - Static Site Styles
   Design: Dark Solar Tech — AlternativaIOT brand identity
   ========================================================================== */

:root {
    /* Brand colors - Solar energy palette */
    --sd-primary: #f97316;
    --sd-primary-dark: #ea580c;
    --sd-gradient: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    --sd-gradient-hover: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);

    /* Mode colors from firmware */
    --sd-green: #2e7d32;
    --sd-green-bg: #c8e6c9;
    --sd-red: #c62828;
    --sd-red-bg: #ffcdd2;
    --sd-orange: #f57f17;
    --sd-orange-bg: #fff9c4;

    /* Status colors from firmware */
    --sd-success: #155724;
    --sd-success-bg: #d4edda;
    --sd-danger: #dc3545;
    --sd-warning-bg: #fff3cd;
    --sd-warning-text: #856404;

    /* Dark surface colors */
    --sd-dark: #0f172a;
    --sd-dark-2: #1e293b;
    --sd-dark-3: #334155;

    /* Gauge colors */
    --sd-pv-start: #fbbf24;
    --sd-pv-end: #f97316;
    --sd-battery-start: #4ade80;
    --sd-battery-end: #22c55e;
    --sd-diverter-start: #34d399;
    --sd-diverter-end: #10b981;

    /* Schedule accent colors */
    --sd-sched-1: #2196f3;
    --sd-sched-2: #4caf50;
    --sd-sched-3: #ff9800;
    --sd-sched-4: #e91e63;

    /* Neutrals */
    --sd-text: #1e293b;
    --sd-text-light: #475569;
    --sd-text-muted: #94a3b8;
    --sd-heading: #0f172a;
    --sd-white: #FFFFFF;
    --sd-bg: #f8fafc;
    --sd-bg-card: #FFFFFF;
    --sd-bg-hover: #fff7ed;
    --sd-bg-active: #ffedd5;
    --sd-border: #e2e8f0;
    --sd-border-light: #f1f5f9;

    /* Layout */
    --sd-radius: 8px;
    --sd-radius-lg: 14px;
    --sd-shadow: 0 2px 10px rgba(249, 115, 22, 0.08);
    --sd-shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.12);
    --sd-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
    --sd-transition: all 0.25s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--sd-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--sd-bg);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ==========================================================================
   VERSION RIBBON
   ========================================================================== */
.sd-version-ribbon {
    background: var(--sd-dark);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 7px 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 10001;
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
}

.sd-ribbon-sparkle {
    margin-right: 6px;
}

.sd-ribbon-beta {
    display: inline-block;
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.4);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.sd-navbar {
    background: var(--sd-dark);
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 10000;
    transition: var(--sd-transition);
}

.sd-navbar.sd-navbar-scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    box-sizing: border-box;
}

.sd-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.sd-navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.sd-navbar-logo {
    height: 36px;
    width: auto;
}

.sd-navbar-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--sd-white);
    letter-spacing: -0.3px;
}

.sd-navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sd-navbar-links > a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: var(--sd-transition);
}

.sd-navbar-links > a:hover {
    color: var(--sd-white);
    background: rgba(249, 115, 22, 0.15);
}

.sd-nav-lang {
    display: flex;
    gap: 3px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sd-lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--sd-transition);
    font-family: inherit;
}

.sd-lang-btn:hover,
.sd-lang-btn.active {
    background: var(--sd-primary);
    border-color: var(--sd-primary);
    color: var(--sd-white);
}

/* Mobile nav toggle */
.sd-navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.sd-navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    transition: var(--sd-transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.sd-hero {
    background: var(--sd-dark);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.sd-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.sd-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.sd-glow-1 {
    width: 600px;
    height: 600px;
    background: #f97316;
    top: -150px;
    left: -150px;
    opacity: 0.15;
}

.sd-glow-2 {
    width: 400px;
    height: 400px;
    background: #fbbf24;
    bottom: -100px;
    right: -100px;
    opacity: 0.08;
}

.sd-hero-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(249, 115, 22, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}

.sd-hero-content {
    position: relative;
    z-index: 2;
}

.sd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #fb923c;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.sd-hero-badge i {
    color: #fbbf24;
}

.sd-hero-title {
    margin: 0 0 16px;
}

.sd-hero-title-main {
    font-size: 62px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #fed7aa 55%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2.5px;
    line-height: 1.05;
    display: block;
}

.sd-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 12px;
}

.sd-hero-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 16px;
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.sd-hero-learn-more {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    margin-bottom: 36px;
}

.sd-hero-learn-more a {
    color: #fb923c;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(251, 146, 60, 0.4);
    transition: color 0.2s, border-color 0.2s;
}

.sd-hero-learn-more a:hover {
    color: #fbbf24;
    border-bottom-color: rgba(251, 191, 36, 0.6);
}

/* Hero Buttons */
.sd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--sd-radius);
    transition: var(--sd-transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
    line-height: 1.4;
}

.sd-btn-primary {
    background: var(--sd-gradient);
    color: var(--sd-white);
    border-color: transparent;
}

.sd-btn-primary:hover {
    background: var(--sd-gradient-hover);
    color: var(--sd-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.sd-btn-glow {
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

.sd-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.sd-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--sd-white);
    text-decoration: none;
    transform: translateY(-2px);
}

.sd-btn-ghost-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
}

.sd-btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--sd-white);
    text-decoration: none;
}

.sd-btn-outline-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.sd-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--sd-white);
    text-decoration: none;
}

.sd-btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sd-btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

.sd-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

/* Hero Stats */
.sd-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.sd-stat {
    text-align: center;
}

.sd-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--sd-white);
    font-family: 'JetBrains Mono', monospace;
}

.sd-stat-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.sd-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* Hero visual */
.sd-hero-visual {
    text-align: center;
    animation: sd-float 6s ease-in-out infinite;
}

.sd-hero-logo-img {
    max-width: 300px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Hero brand block */
.sd-hero-brand {
    text-align: center;
}

.sd-hero-sun-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 28px;
}

.sd-hero-sun-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
    animation: sd-pulse-ring 3s ease-in-out infinite;
}

.sd-hero-sun-halo-2 {
    inset: 22px;
    opacity: 1;
    animation-delay: 1.5s;
}

@keyframes sd-pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.07); opacity: 0.16; }
}

.sd-hero-sun-svg {
    position: absolute;
    inset: 28px;
    width: calc(100% - 56px);
    height: calc(100% - 56px);
    animation: sd-sun-spin 24s linear infinite;
    filter: drop-shadow(0 0 28px rgba(255, 180, 0, 0.75));
}

@keyframes sd-sun-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.sd-hero-brand-name {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--sd-white);
    margin-bottom: 14px;
}

.sd-hero-brand-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 250px;
    margin: 0 auto;
}

@keyframes sd-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}



/* ==========================================================================
   SECTIONS
   ========================================================================== */
.sd-section {
    padding: 80px 0;
    background: var(--sd-white);
}

.sd-section-alt {
    background: var(--sd-bg);
}

.sd-section-dark {
    background: var(--sd-dark);
}

.sd-section-dark .sd-section-title {
    color: var(--sd-white);
}

.sd-section-dark .sd-section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.sd-section-dark .sd-section-tag {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.sd-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.sd-section-tag {
    display: inline-block;
    background: var(--sd-bg-active);
    color: var(--sd-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.sd-section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--sd-text);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.sd-section-subtitle {
    color: var(--sd-text-muted);
    font-size: 16px;
    margin: 0;
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */
.sd-feature-card {
    background: var(--sd-bg-card);
    border: 1px solid var(--sd-border-light);
    border-radius: var(--sd-radius-lg);
    padding: 30px 24px;
    height: 100%;
    transition: var(--sd-transition);
    border-top: 3px solid transparent;
}

.sd-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sd-shadow-lg);
    border-top-color: var(--sd-primary);
}

.sd-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--sd-radius);
    background: var(--sd-bg-active);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.sd-feature-icon .la {
    font-size: 24px;
    color: var(--sd-primary);
}

.sd-feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--sd-text);
    margin: 0 0 14px;
}

.sd-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sd-feature-list li {
    font-size: 13px;
    color: var(--sd-text-light);
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.sd-feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--sd-primary);
    font-weight: 700;
    font-size: 12px;
}

/* Small feature cards */
.sd-feature-card-sm {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
}

.sd-feature-icon-sm {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--sd-radius);
    background: var(--sd-bg-active);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-feature-icon-sm .la {
    font-size: 20px;
    color: var(--sd-primary);
}

.sd-feature-card-sm h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sd-text);
    margin: 0 0 6px;
}

.sd-feature-card-sm p {
    font-size: 13px;
    color: var(--sd-text-light);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   WEBUI PREVIEW
   ========================================================================== */
.sd-webui-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.sd-webui-tab {
    background: var(--sd-white);
    border: 2px solid var(--sd-border);
    color: var(--sd-text-light);
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--sd-transition);
    font-family: inherit;
}

.sd-webui-tab:hover {
    border-color: var(--sd-primary);
    color: var(--sd-primary);
}

.sd-webui-tab.active {
    background: var(--sd-gradient);
    border-color: transparent;
    color: var(--sd-white);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

/* Browser chrome mockup */
.sd-webui-browser {
    background: #1e293b;
    border-radius: var(--sd-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06);
    max-width: 960px;
    margin: 0 auto;
}

.sd-webui-browser-bar {
    background: #2d3748;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sd-webui-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.sd-webui-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.sd-dot-red    { background: #ff5f57; }
.sd-dot-yellow { background: #febc2e; }
.sd-dot-green  { background: #28c840; }

.sd-webui-url {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #1a202c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    max-width: 320px;
    margin: 0 auto;
}

.sd-webui-url .la {
    font-size: 12px;
    color: #28c840;
}

.sd-webui-bar-spacer {
    flex-shrink: 0;
    width: 54px;
}

/* Screen & panels */
.sd-webui-screen {
    position: relative;
    min-height: 440px;
    background: #0f172a;
}

.sd-webui-panel {
    display: none;
    width: 100%;
    min-height: 440px;
}

.sd-webui-panel.active {
    display: block;
    animation: sd-webui-fade 0.3s ease;
}

@keyframes sd-webui-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sd-webui-panel img {
    display: block;
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: top;
}

/* Placeholder (removed once screenshots are added) */
.sd-webui-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    padding: 40px;
    gap: 14px;
    border: 2px dashed rgba(249, 115, 22, 0.18);
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 18px,
        rgba(249, 115, 22, 0.025) 18px,
        rgba(249, 115, 22, 0.025) 36px
    );
}

.sd-webui-placeholder .la {
    font-size: 56px;
    color: rgba(249, 115, 22, 0.3);
}

.sd-wp-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sd-wp-tab {
    font-size: 12px;
    color: rgba(249, 115, 22, 0.45);
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
}

/* Caption strip */
.sd-webui-captions {
    text-align: center;
    margin-top: 18px;
    min-height: 22px;
}

.sd-webui-caption {
    display: none;
    font-size: 14px;
    color: var(--sd-text-muted);
    margin: 0;
}

.sd-webui-caption.active {
    display: block;
    animation: sd-webui-fade 0.25s ease;
}

@media (max-width: 767px) {
    .sd-webui-browser { border-radius: var(--sd-radius); }
    .sd-webui-screen,
    .sd-webui-panel,
    .sd-webui-placeholder { min-height: 240px; }
    .sd-webui-bar-spacer { width: 0; }
    .sd-webui-url { max-width: 160px; font-size: 11px; }
    .sd-webui-tab { padding: 7px 14px; font-size: 12px; }
}

/* ==========================================================================
   HARDWARE GRID
   ========================================================================== */
/* ==========================================================================
   HARDWARE COMPATIBILITY
   ========================================================================== */

.sd-hw-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--sd-radius);
    padding: 20px 32px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.sd-hw-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
}

.sd-hw-stat-div {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.sd-hw-stat-num {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--sd-white);
    font-family: 'JetBrains Mono', monospace;
}

.sd-hw-stat-num.sd-hw-stat-ok {
    color: #4ade80;
}

.sd-hw-stat-num.sd-hw-stat-new {
    color: var(--sd-primary);
}

.sd-hw-stat-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 5px;
}

.sd-hw-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: start;
}

.sd-hw-panel {
    background: #1a2744;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--sd-radius-lg);
    overflow: hidden;
}

.sd-hw-panel-tall {
    grid-row: 1 / span 2;
    grid-column: 2;
}

.sd-hw-panel-hdr {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sd-hw-panel-icon {
    width: 38px;
    height: 38px;
    background: rgba(249, 115, 22, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sd-hw-panel-icon .la {
    font-size: 20px;
    color: var(--sd-primary);
}

.sd-hw-panel-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.sd-hw-panel-proto {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 3px;
}

.sd-hw-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.sd-hw-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.2s;
}

.sd-hw-list li:last-child {
    border-bottom: none;
}

.sd-hw-list li:hover {
    background: rgba(249, 115, 22, 0.08);
}

.sd-hw-badge-ok {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 0;
    border-radius: 4px;
    background: rgba(74, 222, 128, 0.18);
    color: #4ade80;
    font-family: 'JetBrains Mono', monospace;
}

.sd-hw-badge-new {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 0;
    border-radius: 4px;
    background: rgba(249, 115, 22, 0.22);
    color: #fb923c;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3px;
}

.sd-hw-nm {
    flex: 1;
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 500;
}

.sd-hw-pr {
    flex-shrink: 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

/* ==========================================================================
   SPEC CARDS
   ========================================================================== */
.sd-spec-card {
    background: var(--sd-bg-card);
    border: 1px solid var(--sd-border-light);
    border-radius: var(--sd-radius-lg);
    padding: 30px;
    height: 100%;
    box-shadow: var(--sd-shadow-card);
}

.sd-spec-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--sd-text);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--sd-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sd-spec-card h3 .la {
    color: var(--sd-primary);
    font-size: 22px;
}

.sd-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.sd-spec-table tr {
    border-bottom: 1px solid var(--sd-border-light);
}

.sd-spec-table tr:last-child {
    border-bottom: none;
}

.sd-spec-table td {
    padding: 9px 6px;
    font-size: 13px;
    color: var(--sd-text-light);
}

.sd-spec-table td:first-child {
    font-weight: 600;
    color: var(--sd-text);
    width: 45%;
}

.sd-spec-table td:last-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--sd-primary);
}

/* ==========================================================================
   STEPS / GETTING STARTED
   ========================================================================== */
.sd-steps {
    position: relative;
    padding-top: 20px;
}

.sd-steps-line {
    display: none;
}

.sd-step-card {
    background: var(--sd-bg-card);
    border: 1px solid var(--sd-border-light);
    border-radius: var(--sd-radius-lg);
    padding: 30px 24px;
    text-align: center;
    height: 100%;
    transition: var(--sd-transition);
    position: relative;
}

.sd-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sd-shadow-lg);
    border-bottom: 3px solid var(--sd-primary);
}

.sd-step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sd-gradient);
    color: var(--sd-white);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.sd-step-icon {
    margin-bottom: 14px;
}

.sd-step-icon .la {
    font-size: 32px;
    color: var(--sd-primary);
}

.sd-step-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--sd-text);
    margin: 0 0 10px;
}

.sd-step-card p {
    font-size: 13px;
    color: var(--sd-text-light);
    margin: 0;
    line-height: 1.7;
}

/* Tip box */
.sd-started-tip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--sd-warning-bg);
    border: 1px solid #ffeeba;
    border-radius: var(--sd-radius);
    padding: 18px 24px;
    margin-top: 40px;
    font-size: 14px;
    color: var(--sd-warning-text);
}

.sd-tip-icon .la {
    font-size: 24px;
    color: #f57f17;
}

/* ==========================================================================
   DOWNLOADS
   ========================================================================== */
.sd-dl-cta {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sd-dl-compilations {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 24px;
}

.sd-dl-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sd-radius-lg);
    padding: 28px;
    position: relative;
    transition: var(--sd-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sd-dl-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.sd-dl-card-latest {
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.05);
    border-top: 3px solid var(--sd-primary);
}

.sd-dl-card-badge {
    position: absolute;
    top: -11px;
    right: 20px;
    background: var(--sd-gradient);
    color: var(--sd-white);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sd-dl-card h3 {
    color: var(--sd-white);
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
    font-family: 'JetBrains Mono', monospace;
}

.sd-dl-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.sd-dl-version {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    margin: -6px 0 12px;
}

.sd-beta-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.35);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1px 7px;
    border-radius: 4px;
    vertical-align: middle;
    font-family: 'JetBrains Mono', monospace;
}

.sd-beta-notice {
    background: rgba(249, 115, 22, 0.07);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: rgba(251, 146, 60, 0.9);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    margin-bottom: 28px;
    display: inline-block;
}

.sd-version-tag {
    color: var(--sd-primary);
    background: rgba(249, 115, 22, 0.12);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 18px;
}

.sd-dl-card-latest .sd-version-tag {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

.sd-dl-badge-lite {
    background: var(--sd-green-bg) !important;
    color: var(--sd-green) !important;
}

.sd-dl-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.sd-dl-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.sd-dl-feat-yes .la-check {
    color: #4caf50;
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.sd-dl-feat-no {
    opacity: 0.35;
}

.sd-dl-feat-no .la-times {
    color: #ef5350;
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.sd-dl-feat-info {
    opacity: 0.8;
    font-style: italic;
}

.sd-dl-feat-info .la-key {
    color: #ffc107;
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.sd-dl-files {
    margin-bottom: 20px;
}

.sd-dl-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
}

.sd-dl-file .la {
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
}

/* ==========================================================================
   LICENSE SECTION
   ========================================================================== */
.sd-lic-card {
    background: var(--sd-bg-card);
    border: 1px solid var(--sd-border-light);
    border-radius: var(--sd-radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--sd-shadow-card);
    transition: var(--sd-transition);
}

.sd-lic-card:hover {
    box-shadow: var(--sd-shadow-lg);
    transform: translateY(-3px);
}

.sd-lic-card-pro {
    border-color: rgba(249, 115, 22, 0.25);
    border-top: 3px solid var(--sd-primary);
}

.sd-lic-card-header {
    padding: 24px 28px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sd-lic-lite {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom: 1px solid #bbf7d0;
}

.sd-lic-pro {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-bottom: 1px solid #fed7aa;
}

.sd-lic-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 12px;
    border-radius: 50px;
    width: fit-content;
    background: #166534;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

.sd-lic-badge-pro {
    background: var(--sd-gradient);
}

.sd-lic-card-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--sd-text);
    margin: 0;
}

.sd-lic-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--sd-text-muted);
    margin: 0;
}

.sd-lic-body {
    padding: 24px 28px;
}

.sd-lic-body > p {
    font-size: 14px;
    color: var(--sd-text-light);
    margin: 0 0 18px;
    line-height: 1.6;
}

.sd-lic-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.sd-lic-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
    color: var(--sd-text-light);
    border-bottom: 1px solid var(--sd-border-light);
}

.sd-lic-list li:last-child {
    border-bottom: none;
}

.sd-lic-yes {
    color: #16a34a;
    font-size: 16px;
    flex-shrink: 0;
}

.sd-lic-no {
    color: #dc2626;
    font-size: 16px;
    flex-shrink: 0;
}

.sd-lic-activation {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--sd-radius);
    padding: 12px 16px;
    font-size: 13px;
    color: #1e40af;
}

.sd-lic-activation .la {
    font-size: 18px;
    color: #3b82f6;
    flex-shrink: 0;
}

.sd-lic-unl {
    margin-top: 14px;
    padding: 14px;
    background: #f0fdf4;
    border: 1px dashed #86efac;
    border-radius: var(--sd-radius);
}

.sd-lic-unl-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px 0;
}

.sd-lic-unl-label .la {
    font-size: 16px;
}

.sd-lic-unl .sd-lic-list {
    margin: 0;
}

.sd-lic-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sd-lic-option {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--sd-bg);
    border: 1px solid var(--sd-border-light);
    border-radius: var(--sd-radius);
    padding: 14px;
}

.sd-lic-opt-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--sd-gradient);
    color: var(--sd-white);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

.sd-lic-option strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--sd-text);
    margin-bottom: 4px;
}

.sd-lic-option p {
    font-size: 12px;
    color: var(--sd-text-light);
    margin: 0;
    line-height: 1.5;
}

/* Pro key box */
.sd-lic-key-box {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    background: var(--sd-dark);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-left: 4px solid var(--sd-primary);
    border-radius: var(--sd-radius-lg);
    padding: 26px 30px;
    margin-top: 8px;
    margin-bottom: 32px;
}

.sd-lic-key-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--sd-gradient);
    border-radius: var(--sd-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
    flex-shrink: 0;
}

.sd-lic-key-icon .la {
    font-size: 24px;
    color: var(--sd-white);
}

.sd-lic-key-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--sd-white);
    margin: 0 0 14px;
}

.sd-lic-key-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sd-lic-key-list li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    padding: 5px 0 5px 20px;
    position: relative;
}

.sd-lic-key-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--sd-primary);
    font-weight: 700;
    font-size: 12px;
}

/* License summary table */
.sd-lic-table-wrap {
    background: var(--sd-bg-card);
    border: 1px solid var(--sd-border-light);
    border-radius: var(--sd-radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--sd-shadow-card);
}

.sd-lic-table-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sd-text);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--sd-primary);
}

.sd-lic-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

.sd-lic-table th {
    font-size: 11px;
    font-weight: 700;
    color: var(--sd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--sd-border-light);
    background: var(--sd-bg);
}

.sd-lic-table td {
    font-size: 13px;
    color: var(--sd-text-light);
    padding: 12px 14px;
    border-bottom: 1px solid var(--sd-border-light);
    vertical-align: middle;
}

.sd-lic-table tbody tr:last-child td {
    border-bottom: none;
}

.sd-lic-table tbody tr:hover td {
    background: var(--sd-bg-hover);
}

.sd-lic-tbl-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
}

.sd-lic-tbl-lite {
    background: rgba(22, 101, 52, 0.1);
    color: #166534;
}

.sd-lic-tbl-pro {
    background: rgba(249, 115, 22, 0.1);
    color: var(--sd-primary);
}

.sd-lic-tbl-sub {
    font-size: 11px;
    color: var(--sd-text-muted);
}

.sd-lic-tbl-no {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Terms block */
.sd-lic-terms {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--sd-bg);
    border: 1px solid var(--sd-border-light);
    border-radius: var(--sd-radius);
    padding: 22px 26px;
}

.sd-lic-terms-icon {
    font-size: 22px;
    color: var(--sd-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.sd-lic-terms p {
    font-size: 13px;
    color: var(--sd-text-light);
    margin: 0 0 6px;
    line-height: 1.7;
}

.sd-lic-terms p:last-child {
    margin: 0;
}

.sd-lic-copyright {
    font-size: 12px !important;
    color: var(--sd-text-muted) !important;
}

@media (max-width: 767px) {
    .sd-lic-card-header,
    .sd-lic-body { padding: 18px 20px; }
    .sd-lic-key-box { flex-direction: column; gap: 14px; padding: 18px 20px; }
    .sd-lic-table-wrap { padding: 18px; }
    .sd-lic-terms { gap: 12px; padding: 16px; }
}

/* ==========================================================================
   PLUG & PLAY CTA BANNER
   ========================================================================== */
.sd-plugplay-banner {
    padding: 0;
}

/* ==========================================================================
   DONATE BANNER
   ========================================================================== */
.sd-donate-banner {
    padding: 48px 0;
    background: var(--sd-bg);
    border-top: 1px solid var(--sd-border);
}

.sd-donate-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: #fff9f0;
    border: 2px solid #fed7aa;
    border-radius: var(--sd-radius-lg);
    padding: 30px 36px;
}

.sd-donate-text {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.sd-donate-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(239,68,68,0.25);
}

.sd-donate-icon .la {
    font-size: 26px;
    color: #fff;
}

.sd-donate-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--sd-heading);
    margin: 0 0 6px;
    line-height: 1.35;
}

.sd-donate-sub {
    font-size: 13px;
    color: var(--sd-text-light);
    margin: 0;
    line-height: 1.5;
}

.sd-btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #003087;
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: var(--sd-radius);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--sd-transition);
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,48,135,0.3);
}

.sd-btn-donate:hover {
    background: #00267a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,48,135,0.4);
}

.sd-btn-donate .la {
    font-size: 18px;
}

.sd-footer-donate-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f97316 !important;
    font-weight: 600;
    text-decoration: none;
    transition: var(--sd-transition);
}

.sd-footer-donate-link:hover {
    color: #fbbf24 !important;
}

.sd-footer-donate-link .la {
    font-size: 14px;
}

@media (max-width: 767px) {
    .sd-donate-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
    }
    .sd-btn-donate {
        width: 100%;
        justify-content: center;
    }
}

.sd-plugplay-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: linear-gradient(135deg, #1c1a10 0%, #1a1205 100%);
    border-top: 3px solid var(--sd-primary);
    border-bottom: 3px solid var(--sd-primary);
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 36px 48px;
    position: relative;
    overflow: hidden;
}

.sd-plugplay-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(249,115,22,0.18) 0%, transparent 60%);
    pointer-events: none;
}

.sd-plugplay-text {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.sd-plugplay-icon {
    width: 52px;
    height: 52px;
    background: var(--sd-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}

.sd-plugplay-icon .la {
    font-size: 28px;
    color: #ffffff;
}

.sd-plugplay-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.35;
}

.sd-plugplay-title em {
    font-style: normal;
    color: #fbbf24;
}

.sd-plugplay-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

@media (max-width: 767px) {
    .sd-plugplay-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 20px;
    }
    .sd-plugplay-inner .sd-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.sd-contact-form {
    background: var(--sd-bg-card);
    border: 1px solid var(--sd-border-light);
    border-radius: var(--sd-radius-lg);
    padding: 40px;
    box-shadow: var(--sd-shadow-card);
}

.sd-form-group {
    margin-bottom: 20px;
}

.sd-form-group label {
    display: block;
    font-weight: 600;
    color: var(--sd-text);
    margin-bottom: 6px;
    font-size: 14px;
}

.sd-form-group input[type="text"],
.sd-form-group input[type="email"],
.sd-form-group input[type="number"],
.sd-form-group select,
.sd-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--sd-border);
    border-radius: var(--sd-radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--sd-transition);
    background: var(--sd-white);
    color: var(--sd-text);
    box-sizing: border-box;
}

.sd-form-group input:focus,
.sd-form-group select:focus,
.sd-form-group textarea:focus {
    border-color: var(--sd-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.sd-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.sd-math-question {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sd-math-question span {
    font-weight: 700;
    font-size: 18px;
    color: var(--sd-text);
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
}

.sd-math-question input {
    max-width: 120px;
}

.sd-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.sd-form-status {
    padding: 14px 18px;
    border-radius: var(--sd-radius);
    margin-top: 15px;
    font-weight: 500;
    font-size: 14px;
}

.sd-form-status.sd-status-success {
    background: var(--sd-success-bg);
    color: var(--sd-success);
    border: 1px solid #c3e6cb;
}

.sd-form-status.sd-status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sd-form-status.sd-status-sending {
    background: var(--sd-warning-bg);
    color: var(--sd-warning-text);
    border: 1px solid #ffeeba;
}

#sd-submit-btn {
    margin-top: 8px;
    font-size: 15px;
    padding: 14px 28px;
}

#sd-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Screenshots Gallery
   ========================================================================== */
.sd-gallery-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sd-primary);
    margin: 32px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(249,115,22,.2);
}
.sd-gallery-group-label:first-of-type { margin-top: 0; }
.sd-gallery-group-label i { font-size: 1rem; }
.sd-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background: var(--sd-white);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.sd-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(249,115,22,.18);
}
.sd-gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.sd-gallery-link img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.sd-gallery-item:hover .sd-gallery-link img {
    transform: scale(1.05);
}
.sd-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.sd-gallery-overlay i {
    font-size: 2rem;
    color: #fff;
}
.sd-gallery-item:hover .sd-gallery-overlay {
    opacity: 1;
}
.sd-gallery-caption {
    padding: 12px 16px;
    margin: 0;
    font-size: .88rem;
    line-height: 1.4;
    color: var(--sd-text);
    font-weight: 500;
    text-align: center;
}

/* Lightbox */
.sd-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}
.sd-lightbox.active {
    display: flex;
}
.sd-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color .2s;
}
.sd-lightbox-close:hover { color: var(--sd-primary); }
.sd-lightbox-prev,
.sd-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 10;
}
.sd-lightbox-prev { left: 16px; }
.sd-lightbox-next { right: 16px; }
.sd-lightbox-prev:hover,
.sd-lightbox-next:hover { background: rgba(249,115,22,.5); }

/* Zoom controls */
.sd-lightbox-zoom-controls {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.sd-lbz-btn {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background .2s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.sd-lbz-btn:hover { background: rgba(249,115,22,.55); }

.sd-lightbox-content {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 56px 0 80px;
}
.sd-lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}
.sd-lightbox-img-wrap img {
    max-width: 88vw;
    max-height: 78vh;
    border-radius: 8px;
    object-fit: contain;
    transform-origin: center center;
    transition: transform .05s linear;
    pointer-events: none;
    display: block;
}
.sd-lightbox-caption {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    color: #fff;
    text-align: center;
    margin: 0;
    font-size: .92rem;
    opacity: .85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
    .sd-gallery-link img { height: 180px; }
    .sd-lightbox-prev,
    .sd-lightbox-next { width: 36px; height: 36px; font-size: 1.4rem; }
    .sd-lightbox-zoom-controls { bottom: 50px; }
}

/* Section dark buttons override */
.sd-section-dark .sd-btn-primary {
    background: var(--sd-gradient);
    color: var(--sd-white);
    border-color: transparent;
}

.sd-section-dark .sd-btn-primary:hover {
    background: var(--sd-gradient-hover);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* Contact section button */
.sd-contact .sd-btn-primary {
    background: var(--sd-gradient);
    color: var(--sd-white);
    border: none;
}

.sd-contact .sd-btn-primary:hover {
    background: var(--sd-gradient-hover);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.sd-footer {
    background: #050d1a;
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(249, 115, 22, 0.15);
}

.sd-footer-brand {
    margin-bottom: 20px;
}

.sd-footer-logo {
    max-width: 50px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.sd-footer h4 {
    color: var(--sd-white);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.sd-footer-brand p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

.sd-footer h5 {
    color: var(--sd-white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.sd-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sd-footer-links li {
    margin-bottom: 8px;
}

.sd-footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: var(--sd-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sd-footer-links a:hover {
    color: #fb923c;
}

.sd-footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sd-footer-contact-list li {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
}

.sd-footer-contact-list .la {
    color: var(--sd-primary);
    font-size: 16px;
}

.sd-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
    padding: 18px 0;
    text-align: center;
}

.sd-footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.sd-footer-license {
    margin-top: 6px !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.2) !important;
    font-style: italic;
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.sd-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sd-gradient);
    color: var(--sd-white);
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--sd-transition);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
    z-index: 999;
}

.sd-back-to-top.sd-visible {
    opacity: 1;
    visibility: visible;
}

.sd-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .sd-hero {
        padding: 70px 0 60px;
        min-height: auto;
    }
    .sd-hero-content {
        text-align: center;
    }
    .sd-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .sd-hero-buttons {
        justify-content: center;
    }
    .sd-hero-stats {
        justify-content: center;
    }
    .sd-hero-title-main {
        font-size: 44px;
    }
    .sd-hero-subtitle {
        font-size: 18px;
    }
    .sd-section {
        padding: 60px 0;
    }
    .sd-section-title {
        font-size: 30px;
    }
    .sd-hw-panels {
        grid-template-columns: 1fr;
    }
    .sd-hw-panel-tall {
        grid-row: auto;
        grid-column: auto;
    }
    .sd-navbar-toggle {
        display: flex;
    }
    .sd-navbar-links {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--sd-dark);
        border-bottom: 1px solid rgba(249, 115, 22, 0.15);
        flex-direction: column;
        padding: 16px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    .sd-navbar-links.sd-nav-open {
        display: flex;
    }
    .sd-navbar-links > a {
        padding: 12px 16px;
        width: 100%;
        border-radius: 6px;
    }
    .sd-nav-lang {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 8px;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .sd-hero {
        padding: 60px 0 50px;
    }
    .sd-hero-title-main {
        font-size: 34px;
        letter-spacing: -1px;
    }
    .sd-hero-subtitle {
        font-size: 16px;
    }
    .sd-hero-desc {
        font-size: 14px;
    }
    .sd-hero-buttons {
        flex-direction: column;
    }
    .sd-hero-buttons .sd-btn {
        justify-content: center;
    }
    .sd-hero-stats {
        gap: 16px;
    }
    .sd-stat-value {
        font-size: 18px;
    }
    .sd-section {
        padding: 50px 0;
    }
    .sd-section-title {
        font-size: 24px;
    }
    .sd-contact-form {
        padding: 24px;
    }
    .sd-math-question {
        flex-direction: column;
        align-items: flex-start;
    }
    .sd-math-question input {
        max-width: 100%;
    }
    .sd-hw-stats {
        padding: 14px 16px;
        width: 100%;
    }
    .sd-hw-stat {
        padding: 0 16px;
    }
    .sd-hw-stat-num {
        font-size: 22px;
    }
    .sd-dl-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes sd-fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.sd-animate {
    animation: sd-fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.sd-animate-delay-1 { animation-delay: 0.1s; }
.sd-animate-delay-2 { animation-delay: 0.2s; }
.sd-animate-delay-3 { animation-delay: 0.3s; }
.sd-animate-delay-4 { animation-delay: 0.4s; }

/* ==========================================================================
   ABOUT — "WHY IS IT DIFFERENT" DIFFERENTIATORS
   ========================================================================== */
.sd-diff-block {
    margin-top: 56px;
    padding: 36px 28px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border: 1px solid var(--sd-border-light);
    border-radius: var(--sd-radius-lg);
    box-shadow: var(--sd-shadow-card);
    position: relative;
    overflow: hidden;
}

.sd-diff-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sd-gradient);
}

.sd-diff-header {
    text-align: center;
    margin-bottom: 28px;
}

.sd-diff-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--sd-primary);
    background: rgba(249, 115, 22, 0.1);
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.sd-diff-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--sd-heading);
    margin: 0 0 10px;
    line-height: 1.25;
}

.sd-diff-sub {
    font-size: 15px;
    color: var(--sd-text-light);
    margin: 0 auto;
    max-width: 720px;
    line-height: 1.65;
}

.sd-diff-sub em {
    font-style: normal;
    color: var(--sd-primary);
    font-weight: 600;
}

.sd-diff-card {
    background: var(--sd-bg-card);
    border: 1px solid var(--sd-border-light);
    border-radius: var(--sd-radius);
    padding: 22px 20px;
    height: 100%;
    transition: var(--sd-transition);
}

.sd-diff-card:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: var(--sd-shadow);
}

.sd-diff-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sd-gradient);
    color: var(--sd-white);
    border-radius: 10px;
    font-size: 22px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.sd-diff-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sd-heading);
    margin: 0 0 8px;
    line-height: 1.35;
}

.sd-diff-card p {
    font-size: 13.5px;
    color: var(--sd-text-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 767px) {
    .sd-diff-block { padding: 24px 18px; margin-top: 36px; }
    .sd-diff-title { font-size: 22px; }
}

/* ==========================================================================
   LICENSE — DETAILED FEATURE MATRIX
   ========================================================================== */
.sd-matrix-intro {
    font-size: 13.5px;
    color: var(--sd-text-light);
    margin: -8px 0 18px;
    line-height: 1.65;
}

.sd-matrix-foot {
    font-size: 12.5px;
    color: var(--sd-text-muted);
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px dashed var(--sd-border-light);
    line-height: 1.6;
}

.sd-matrix-foot a {
    color: var(--sd-primary);
    font-weight: 600;
    text-decoration: none;
}

.sd-matrix-foot a:hover { text-decoration: underline; }

.sd-matrix-table th,
.sd-matrix-table td {
    text-align: center;
}

.sd-matrix-table th:first-child,
.sd-matrix-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--sd-text);
}

.sd-matrix-yes {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #166534;
    background: rgba(22, 101, 52, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.sd-matrix-cap {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
}


