:root {
    --sfe-bg: #020617;
    --sfe-panel: rgba(15, 23, 42, 0.74);
    --sfe-panel-strong: #0b1222;
    --sfe-border: rgba(148, 163, 184, 0.16);
    --sfe-border-active: rgba(16, 185, 129, 0.52);
    --sfe-white: #f8fafc;
    --sfe-text: #cbd5e1;
    --sfe-muted: #94a3b8;
    --sfe-green: #10b981;
    --sfe-green-soft: rgba(16, 185, 129, 0.12);
    --sfe-blue: #38bdf8;
    --sfe-blue-soft: rgba(56, 189, 248, 0.12);
    --sfe-danger: #fb7185;
    --sfe-shadow: 0 24px 72px rgba(2, 6, 23, 0.46);
    --sfe-safe-top: env(safe-area-inset-top, 0px);
    --sfe-safe-right: env(safe-area-inset-right, 0px);
    --sfe-safe-bottom: env(safe-area-inset-bottom, 0px);
    --sfe-safe-left: env(safe-area-inset-left, 0px);
    --sfe-nav-height: 4.1rem;
    --sfe-header-height: 4.5rem;
}

.sfe-page *,
.sfe-teaser * {
    box-sizing: border-box;
}

.sfe-page {
    scroll-behavior: smooth;
}

body.sfe-page {
    min-height: 100vh;
    margin: 0;
    color: var(--sfe-text);
    background:
        radial-gradient(circle at 82% 3%, rgba(56, 189, 248, 0.1), transparent 30rem),
        radial-gradient(circle at 8% 13%, rgba(16, 185, 129, 0.12), transparent 28rem),
        var(--sfe-bg);
    font-family: "Inter", "Noto Sans Thai", "Segoe UI", Arial, sans-serif;
    padding-bottom: calc(var(--sfe-nav-height) + var(--sfe-safe-bottom) + 1.25rem);
    overflow-x: hidden;
}

.sfe-page a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.sfe-page button {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.sfe-container {
    width: min(calc(100% - 2rem - var(--sfe-safe-left) - var(--sfe-safe-right)), 76rem);
    margin: 0 auto;
}

.sfe-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(18px);
    padding-top: var(--sfe-safe-top);
}

.sfe-nav {
    min-height: var(--sfe-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sfe-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.sfe-brand-logo {
    width: 2.6rem;
    height: 2.6rem;
    object-fit: contain;
    border-radius: 0.9rem;
    box-shadow: 0 0 26px rgba(16, 185, 129, 0.35);
}

.sfe-brand strong {
    display: block;
    color: var(--sfe-white);
    font-size: 0.98rem;
    line-height: 1;
    letter-spacing: 0.08em;
}

.sfe-brand small {
    display: block;
    margin-top: 0.32rem;
    color: var(--sfe-muted);
    font-size: 0.7rem;
}

.sfe-nav-links {
    display: none;
    align-items: center;
    gap: 1.7rem;
    color: var(--sfe-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.sfe-nav-links > a:hover,
.sfe-nav-current {
    color: var(--sfe-white);
}

.sfe-button {
    display: inline-flex;
    min-height: 3.15rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    color: var(--sfe-white);
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    touch-action: manipulation;
}

.sfe-button:focus-visible,
.sfe-page button:focus-visible,
.sfe-page a:focus-visible {
    outline: 2px solid var(--sfe-blue);
    outline-offset: 3px;
}

.sfe-button:hover {
    transform: translateY(-2px);
}

.sfe-button-primary {
    background: linear-gradient(135deg, var(--sfe-green), #047857);
    box-shadow: 0 16px 35px rgba(16, 185, 129, 0.2);
}

.sfe-button-secondary {
    border-color: rgba(56, 189, 248, 0.24);
    background: rgba(15, 23, 42, 0.55);
}

.sfe-button-small {
    min-height: 2.65rem;
    padding: 0.6rem 1rem;
    border-color: rgba(16, 185, 129, 0.32);
    background: rgba(16, 185, 129, 0.1);
}

.sfe-hero {
    position: relative;
    padding: 2.25rem 0 1.7rem;
}

.sfe-hero::before {
    position: absolute;
    top: 0;
    right: -5rem;
    width: 14rem;
    height: 14rem;
    content: "";
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    filter: blur(60px);
    pointer-events: none;
}

.sfe-hero-grid {
    display: grid;
    gap: 2.5rem;
}

.sfe-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    color: var(--sfe-green);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.sfe-eyebrow span {
    width: 1.25rem;
    height: 1px;
    background: var(--sfe-green);
}

.sfe-hero h1 {
    max-width: 42rem;
    margin: 0;
    color: var(--sfe-white);
    font-size: clamp(2.4rem, 13vw, 4.6rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.sfe-hero h1 em {
    display: block;
    color: transparent;
    font-style: normal;
    background: linear-gradient(100deg, var(--sfe-green), var(--sfe-blue));
    -webkit-background-clip: text;
    background-clip: text;
}

.sfe-hero-copy {
    max-width: 38rem;
    margin: 1.05rem 0 0;
    color: var(--sfe-text);
    font-size: 1rem;
    line-height: 1.72;
}

.sfe-hero-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.3rem;
}

.sfe-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.15rem;
}

.sfe-hero-tags span {
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: var(--sfe-muted);
    background: rgba(15, 23, 42, 0.42);
    font-size: 0.72rem;
    font-weight: 600;
}

.sfe-hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.48rem;
    margin-top: 1.15rem;
}

.sfe-hero-highlights article {
    min-width: 0;
    padding: 0.62rem 0.48rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.86rem;
    background: rgba(15, 23, 42, 0.44);
}

.sfe-hero-highlights strong {
    display: block;
    color: var(--sfe-white);
    font-size: 1.06rem;
    line-height: 1.1;
}

.sfe-hero-highlights span {
    display: block;
    margin-top: 0.28rem;
    color: var(--sfe-muted);
    font-size: 0.59rem;
    line-height: 1.3;
}

.sfe-hero-visual {
    min-height: 14.5rem;
}

.sfe-factory-map {
    position: relative;
    height: 100%;
    min-height: 14.5rem;
    overflow: hidden;
    border: 1px solid var(--sfe-border);
    border-radius: 1.45rem;
    background:
        linear-gradient(90deg, transparent 49px, rgba(148, 163, 184, 0.04) 50px),
        linear-gradient(transparent 49px, rgba(148, 163, 184, 0.04) 50px),
        rgba(15, 23, 42, 0.44);
    background-size: 50px 50px;
    box-shadow: var(--sfe-shadow);
}

.sfe-flow-line {
    position: absolute;
    top: 50%;
    left: 13%;
    width: 73%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sfe-green), var(--sfe-blue), transparent);
}

.sfe-flow-line::after {
    position: absolute;
    top: -3px;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    content: "";
    border-radius: 999px;
    background: var(--sfe-green);
    box-shadow: 0 0 16px var(--sfe-green);
    animation: sfe-flow 3s linear infinite;
}

.sfe-node {
    position: absolute;
    top: calc(50% - 1rem);
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 0.7rem;
    color: var(--sfe-white);
    background: #0f172a;
    font-size: 0.65rem;
    font-weight: 700;
}

.sfe-node-one {
    left: 12%;
}

.sfe-node-two {
    left: 42%;
}

.sfe-node-three {
    right: 12%;
}

.sfe-live-card {
    position: absolute;
    right: 7%;
    bottom: 10%;
    width: min(11rem, 45%);
    padding: 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 1rem;
    background: rgba(2, 6, 23, 0.9);
}

.sfe-live-card small {
    color: var(--sfe-muted);
    font-size: 0.65rem;
}

.sfe-live-card strong {
    display: flex;
    justify-content: space-between;
    margin-top: 0.45rem;
    color: var(--sfe-white);
    font-size: 0.8rem;
}

.sfe-live-card strong span {
    color: var(--sfe-green);
}

.sfe-bars {
    height: 2.2rem;
    display: flex;
    align-items: end;
    gap: 0.24rem;
    margin-top: 0.55rem;
}

.sfe-bars i {
    flex: 1;
    border-radius: 0.2rem 0.2rem 0 0;
    background: rgba(16, 185, 129, 0.68);
}

.sfe-bars i:nth-child(1) { height: 43%; }
.sfe-bars i:nth-child(2) { height: 72%; }
.sfe-bars i:nth-child(3) { height: 54%; }
.sfe-bars i:nth-child(4) { height: 87%; background: var(--sfe-blue); }
.sfe-bars i:nth-child(5) { height: 68%; }

.sfe-explorer {
    padding: 1.3rem 0 0;
    scroll-margin-top: calc(var(--sfe-safe-top) + var(--sfe-header-height) + 0.5rem);
}

.sfe-section-heading h2 {
    max-width: 46rem;
    margin: 0;
    color: var(--sfe-white);
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.035em;
}

.sfe-mode-switch {
    position: sticky;
    top: calc(var(--sfe-safe-top) + var(--sfe-header-height) + 0.25rem);
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 1.3rem 0 1rem;
    padding: 0.4rem;
    border: 1px solid var(--sfe-border);
    border-radius: 1.25rem;
    background: rgba(8, 15, 30, 0.92);
    backdrop-filter: blur(15px);
    scroll-margin-top: calc(var(--sfe-safe-top) + var(--sfe-header-height) + 0.4rem);
}

.sfe-mode-switch button {
    padding: 0.85rem 0.45rem;
    border: 1px solid transparent;
    border-radius: 0.92rem;
    color: var(--sfe-muted);
    background: transparent;
    cursor: pointer;
    transition: all 200ms ease;
}

.sfe-mode-switch strong,
.sfe-mode-switch small {
    display: block;
}

.sfe-mode-switch strong {
    font-size: 0.78rem;
}

.sfe-mode-switch small {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.67rem;
}

.sfe-mode-switch button.is-active {
    border-color: var(--sfe-border-active);
    color: var(--sfe-white);
    background: var(--sfe-green-soft);
    box-shadow: inset 0 0 24px rgba(16, 185, 129, 0.08);
}

.sfe-workspace {
    display: grid;
    gap: 1rem;
}

.sfe-discovery,
.sfe-dashboard-card,
.sfe-roi {
    border: 1px solid var(--sfe-border);
    border-radius: 1.5rem;
    background: var(--sfe-panel);
    backdrop-filter: blur(12px);
}

.sfe-discovery {
    padding: 0.82rem;
}

.sfe-selector-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    padding: 0.12rem 0.06rem 0.72rem;
}

.sfe-label {
    margin: 0;
    color: var(--sfe-green);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.sfe-selector-head h3 {
    margin: 0.32rem 0 0;
    color: var(--sfe-white);
    font-size: 1rem;
    font-weight: 650;
}

.sfe-swipe-hint {
    color: var(--sfe-muted);
    font-size: 0.7rem;
}

.sfe-selector-meta {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 0.26rem;
}

.sfe-selector-progress {
    color: var(--sfe-white);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.sfe-mobile-picker {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.72rem;
    padding: 0.72rem;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 0.88rem;
    background: rgba(2, 6, 23, 0.45);
}

.sfe-mobile-picker select {
    width: 100%;
    min-height: 3rem;
    padding: 0 2.2rem 0 0.78rem;
    border: 1px solid rgba(16, 185, 129, 0.34);
    border-radius: 0.72rem;
    color: var(--sfe-white);
    background-color: #0b1222;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

.sfe-picker-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
}

.sfe-picker-actions button {
    min-height: 2.75rem;
    border: 1px solid rgba(148, 163, 184, 0.17);
    border-radius: 0.68rem;
    color: var(--sfe-text);
    background: rgba(15, 23, 42, 0.7);
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
}

.sfe-picker-actions button:not(:disabled):active {
    border-color: var(--sfe-border-active);
    color: var(--sfe-white);
    background: var(--sfe-green-soft);
}

.sfe-picker-actions button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.sfe-selector {
    display: none;
    gap: 0.48rem;
    overflow-x: auto;
    padding: 0.06rem 0.06rem 0.68rem;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.sfe-selector::-webkit-scrollbar,
.sfe-case-track::-webkit-scrollbar {
    display: none;
}

.sfe-step {
    flex: 0 0 7.35rem;
    min-height: 4.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.34rem;
    justify-content: center;
    padding: 0.55rem;
    border: 1px solid var(--sfe-border);
    border-radius: 1rem;
    color: var(--sfe-muted);
    background: rgba(2, 6, 23, 0.34);
    text-align: left;
    cursor: pointer;
    transition: all 190ms ease;
    scroll-snap-align: center;
    min-height: 44px;
}

.sfe-step b {
    display: inline-flex;
    width: 1.65rem;
    height: 1.65rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.62rem;
    color: var(--sfe-green);
    background: var(--sfe-green-soft);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.sfe-step strong {
    color: var(--sfe-text);
    font-size: 0.72rem;
    line-height: 1.35;
}

.sfe-step small {
    color: var(--sfe-muted);
    font-size: 0.64rem;
}

.sfe-step.is-active {
    border-color: var(--sfe-border-active);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.12);
    transform: translateY(-1px);
}

.sfe-step.is-active strong {
    color: var(--sfe-white);
}

.sfe-detail-card {
    margin-top: 0.2rem;
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1.18rem;
    background: rgba(2, 6, 23, 0.38);
}

.sfe-detail-heading {
    display: flex;
    gap: 0.78rem;
    align-items: center;
}

.sfe-detail-icon {
    display: inline-flex;
    flex: none;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 0.92rem;
    color: var(--sfe-green);
    background: var(--sfe-green-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.sfe-detail-heading h3 {
    margin: 0.22rem 0 0.1rem;
    color: var(--sfe-white);
    font-size: 1.2rem;
    font-weight: 700;
}

.sfe-detail-heading div > p:last-child {
    margin: 0;
    color: var(--sfe-blue);
    font-size: 0.78rem;
}

.sfe-description {
    margin: 0.85rem 0 0.92rem;
    color: var(--sfe-text);
    font-size: 0.83rem;
    line-height: 1.65;
}

.sfe-detail-grid {
    display: grid;
    gap: 0.78rem;
}

.sfe-detail-grid section {
    padding: 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 0.74rem;
    background: rgba(15, 23, 42, 0.34);
}

.sfe-detail-grid h4 {
    margin: 0 0 0.48rem;
    color: var(--sfe-white);
    font-size: 0.78rem;
    font-weight: 700;
}

.sfe-list,
.sfe-chip-list {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sfe-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--sfe-text);
    font-size: 0.78rem;
    line-height: 1.45;
}

.sfe-list li::before {
    position: absolute;
    top: 0.48rem;
    left: 0.05rem;
    width: 0.35rem;
    height: 0.35rem;
    content: "";
    border-radius: 50%;
}

.sfe-list-alert li::before {
    background: var(--sfe-danger);
}

.sfe-list-result li::before {
    background: var(--sfe-green);
}

.sfe-chip-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.sfe-chip-list li {
    padding: 0.36rem 0.52rem;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 0.48rem;
    color: #bbf7d0;
    background: rgba(16, 185, 129, 0.08);
    font-size: 0.67rem;
    font-weight: 600;
}

.sfe-chip-blue li {
    border-color: rgba(56, 189, 248, 0.18);
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.08);
}

.sfe-insight {
    display: grid;
    gap: 1rem;
}

.sfe-dashboard-card,
.sfe-roi {
    padding: 0.9rem;
}

.sfe-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.sfe-card-head h3 {
    margin: 0.28rem 0 0;
    color: var(--sfe-white);
    font-size: 1.02rem;
}

.sfe-live {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.35rem 0.48rem;
    border-radius: 999px;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    font-size: 0.6rem;
    font-weight: 800;
}

.sfe-live i {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--sfe-green);
    box-shadow: 0 0 10px var(--sfe-green);
    animation: sfe-live-pulse 1.7s ease-in-out infinite;
}

.sfe-chart-grid {
    display: grid;
    grid-template-columns: 7.4rem 1fr;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.7rem;
}

.sfe-radial-wrap {
    position: relative;
    text-align: center;
}

.sfe-radial-wrap > span {
    display: block;
    margin-top: -1rem;
    color: var(--sfe-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

#sfe-radial-chart,
#sfe-trend-chart {
    min-height: 8.6rem;
}

.sfe-status-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.sfe-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.64rem;
    background: rgba(2, 6, 23, 0.35);
    color: var(--sfe-text);
    font-size: 0.72rem;
}

.sfe-status-row span:last-child {
    color: var(--sfe-green);
    font-weight: 700;
}

.sfe-disclaimer {
    margin: 0.8rem 0 0;
    color: var(--sfe-muted);
    font-size: 0.65rem;
    line-height: 1.55;
}

.sfe-roi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 1rem;
}

.sfe-roi-grid article {
    min-width: 0;
    padding: 0.62rem 0.42rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.72rem;
    background: rgba(2, 6, 23, 0.34);
}

.sfe-roi-grid small {
    display: block;
    min-height: 2rem;
    color: var(--sfe-muted);
    font-size: 0.57rem;
    line-height: 1.4;
}

.sfe-roi-grid strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--sfe-white);
    font-size: clamp(1rem, 5vw, 1.42rem);
}

.sfe-roi-grid em {
    display: block;
    margin-top: 0.12rem;
    color: var(--sfe-green);
    font-size: 0.6rem;
    font-style: normal;
    font-weight: 700;
}

.sfe-next-step {
    margin-top: 1rem;
    padding: 0.85rem;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 0.8rem;
    background: var(--sfe-blue-soft);
}

.sfe-next-step p:last-child {
    margin: 0.48rem 0 0;
    color: var(--sfe-text);
    font-size: 0.78rem;
    line-height: 1.5;
}

.sfe-cases {
    padding: 2.5rem 0 0;
}

.sfe-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.sfe-text-link {
    flex: none;
    color: var(--sfe-green);
    font-size: 0.78rem;
    font-weight: 700;
}

.sfe-case-track {
    display: flex;
    gap: 0.78rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.sfe-case-card {
    flex: 0 0 min(84%, 19rem);
    padding: 1.05rem;
    border: 1px solid var(--sfe-border);
    border-radius: 1.18rem;
    background: rgba(15, 23, 42, 0.58);
    scroll-snap-align: start;
}

.sfe-case-card > span {
    color: var(--sfe-blue);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.sfe-case-card h3 {
    margin: 0.6rem 0 0.55rem;
    color: var(--sfe-white);
    font-size: 1.05rem;
}

.sfe-case-card p {
    min-height: 3.7rem;
    margin: 0;
    color: var(--sfe-text);
    font-size: 0.79rem;
    line-height: 1.65;
}

.sfe-case-card a {
    display: inline-flex;
    gap: 0.35rem;
    margin-top: 0.85rem;
    color: var(--sfe-green);
    font-size: 0.78rem;
    font-weight: 700;
}

.sfe-contact {
    padding: 2.5rem 0 2.2rem;
}

.sfe-contact-card {
    position: relative;
    overflow: hidden;
    padding: 1.55rem 1.2rem;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 1.45rem;
    background:
        radial-gradient(circle at 95% 15%, rgba(56, 189, 248, 0.17), transparent 19rem),
        linear-gradient(120deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.72));
}

.sfe-contact-card h2 {
    max-width: 40rem;
    margin: 0;
    color: var(--sfe-white);
    font-size: clamp(1.42rem, 6vw, 2.1rem);
    letter-spacing: -0.035em;
}

.sfe-contact-card > p:not(.sfe-eyebrow) {
    max-width: 43rem;
    margin: 0.8rem 0 0;
    color: var(--sfe-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

.sfe-floating-cta {
    position: fixed;
    right: calc(1rem + var(--sfe-safe-right));
    bottom: calc(var(--sfe-nav-height) + var(--sfe-safe-bottom) + 0.72rem);
    z-index: 42;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    color: var(--sfe-white);
    background: linear-gradient(135deg, #10b981, #0284c7);
    box-shadow: 0 14px 36px rgba(16, 185, 129, 0.28);
    font-size: 0.78rem;
    font-weight: 700;
}

.sfe-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    min-height: calc(var(--sfe-nav-height) + var(--sfe-safe-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(2, 6, 23, 0.96);
    backdrop-filter: blur(16px);
    padding-right: var(--sfe-safe-right);
    padding-bottom: var(--sfe-safe-bottom);
    padding-left: var(--sfe-safe-left);
}

.sfe-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--sfe-muted);
    font-size: 0.63rem;
    font-weight: 600;
}

.sfe-bottom-nav span {
    font-size: 0.96rem;
}

.sfe-bottom-nav a.is-active {
    color: var(--sfe-green);
}

.sfe-animated-in {
    will-change: transform, opacity;
}

.sfe-reveal {
    opacity: 0;
    transform: translateY(18px);
}

/* Pasteable home teaser component. */
.sfe-teaser {
    position: relative;
    overflow: hidden;
    margin: 2rem auto;
    padding: 1.25rem;
    border: 1px solid rgba(16, 185, 129, 0.23);
    border-radius: 1.5rem;
    color: var(--sfe-text);
    background:
        radial-gradient(circle at 95% 10%, rgba(56, 189, 248, 0.14), transparent 15rem),
        radial-gradient(circle at 5% 100%, rgba(16, 185, 129, 0.15), transparent 15rem),
        #020617;
    box-shadow: 0 24px 65px rgba(2, 6, 23, 0.25);
    font-family: "Inter", "Noto Sans Thai", "Segoe UI", Arial, sans-serif;
}

.sfe-teaser-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.4rem;
}

.sfe-teaser .sfe-eyebrow {
    margin-bottom: 0.7rem;
}

.sfe-teaser h2 {
    margin: 0;
    color: var(--sfe-white);
    font-size: clamp(1.55rem, 7vw, 2.35rem);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.sfe-teaser-copy {
    max-width: 42rem;
    margin: 0.7rem 0 0;
    color: var(--sfe-text);
    font-size: 0.92rem;
    line-height: 1.72;
}

.sfe-teaser-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.sfe-teaser-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.15rem;
}

.sfe-teaser-badges span {
    padding: 0.42rem 0.62rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 999px;
    color: var(--sfe-muted);
    background: rgba(15, 23, 42, 0.6);
    font-size: 0.66rem;
    font-weight: 650;
}

.sfe-teaser-flow {
    position: relative;
    min-height: 8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.35rem;
}

.sfe-teaser-flow::before {
    position: absolute;
    top: 50%;
    right: 1.3rem;
    left: 1.3rem;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--sfe-green), var(--sfe-blue));
    opacity: 0.5;
}

.sfe-teaser-flow::after {
    position: absolute;
    top: calc(50% - 0.26rem);
    left: 1.3rem;
    width: 0.52rem;
    height: 0.52rem;
    content: "";
    border-radius: 50%;
    background: var(--sfe-green);
    box-shadow: 0 0 17px var(--sfe-green);
    animation: sfe-teaser-pulse 3.1s linear infinite;
}

.sfe-teaser-flow span {
    position: relative;
    z-index: 1;
    padding: 0.62rem 0.45rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 0.68rem;
    color: var(--sfe-white);
    background: #0f172a;
    font-size: 0.63rem;
    font-weight: 650;
}

@keyframes sfe-flow {
    to {
        left: calc(100% - 0.5rem);
    }
}

@keyframes sfe-teaser-pulse {
    to {
        left: calc(100% - 1.8rem);
    }
}

@keyframes sfe-live-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.28);
    }
}

/* iPhone SE and similarly narrow portrait screens. */
@media (max-width: 374px) {
    .sfe-container {
        width: min(calc(100% - 1.25rem - var(--sfe-safe-left) - var(--sfe-safe-right)), 76rem);
    }

    .sfe-brand {
        gap: 0.58rem;
    }

    .sfe-brand-logo {
        width: 2.3rem;
        height: 2.3rem;
    }

    .sfe-brand strong {
        font-size: 0.9rem;
    }

    .sfe-brand small {
        font-size: 0.63rem;
    }

    .sfe-hero {
        padding-top: 1.7rem;
    }

    .sfe-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }

    .sfe-hero h1 {
        font-size: 2.18rem;
    }

    .sfe-hero-copy {
        font-size: 0.88rem;
    }

    .sfe-button {
        min-height: 2.82rem;
        padding: 0.72rem 0.78rem;
        font-size: 0.83rem;
    }

    .sfe-hero-highlights article {
        padding: 0.53rem 0.32rem;
    }

    .sfe-hero-highlights strong {
        font-size: 0.96rem;
    }

    .sfe-hero-highlights span {
        font-size: 0.53rem;
    }

    .sfe-hero-visual,
    .sfe-factory-map {
        min-height: 12.25rem;
    }

    .sfe-node {
        padding: 0.37rem 0.44rem;
        font-size: 0.57rem;
    }

    .sfe-live-card {
        width: 7.75rem;
        padding: 0.62rem;
    }

    .sfe-mode-switch {
        gap: 0.35rem;
        padding: 0.32rem;
    }

    .sfe-mode-switch button {
        min-height: 3rem;
        padding: 0.62rem 0.28rem;
    }

    .sfe-mode-switch strong {
        font-size: 0.68rem;
    }

    .sfe-selector-head {
        gap: 0.45rem;
    }

    .sfe-selector-head h3 {
        font-size: 0.92rem;
    }

    .sfe-step {
        flex-basis: 6.85rem;
    }

    .sfe-chart-grid {
        grid-template-columns: 1fr;
    }

    #sfe-radial-chart,
    #sfe-trend-chart {
        min-height: 7.6rem;
    }

    .sfe-radial-wrap > span {
        margin-top: -0.55rem;
    }

    .sfe-roi-grid {
        grid-template-columns: 1fr;
    }

    .sfe-roi-grid article {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.64rem 0.7rem;
    }

    .sfe-roi-grid small {
        min-height: 0;
        max-width: 9.5rem;
    }

    .sfe-roi-grid strong {
        display: flex;
        align-items: baseline;
        gap: 0.22rem;
        margin-top: 0;
    }

    .sfe-roi-grid em {
        display: inline;
    }

    .sfe-floating-cta {
        font-size: 0.7rem;
    }

    .sfe-bottom-nav a {
        font-size: 0.57rem;
    }
}

/* Common modern iPhone portrait widths keep the main controls easy to reach. */
@media (min-width: 375px) and (max-width: 430px) {
    .sfe-hero-grid {
        gap: 1.7rem;
    }

    .sfe-detail-grid section {
        padding: 0.76rem;
    }

    .sfe-case-card {
        flex-basis: 88%;
    }
}

@media (min-width: 520px) {
    .sfe-hero-actions,
    .sfe-teaser-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .sfe-mode-switch small {
        display: block;
    }

    .sfe-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    body.sfe-page {
        padding-bottom: 0;
    }

    .sfe-nav-links {
        display: flex;
    }

    .sfe-mode-switch {
        position: static;
    }

    .sfe-mobile-picker {
        display: none;
    }

    .sfe-selector {
        display: flex;
    }

    .sfe-hero {
        padding: 5rem 0 3.5rem;
    }

    .sfe-hero-grid {
        grid-template-columns: 1.08fr 0.92fr;
        align-items: center;
    }

    .sfe-factory-map {
        min-height: 24rem;
    }

    .sfe-bottom-nav {
        display: none;
    }

    .sfe-floating-cta {
        right: 1.7rem;
        bottom: 1.7rem;
        padding: 0.86rem 1.18rem;
    }

    .sfe-contact-card {
        padding: 2.3rem;
    }

    .sfe-teaser {
        padding: 2rem;
    }

    .sfe-teaser-grid {
        grid-template-columns: 1.4fr 0.75fr;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .sfe-explorer {
        padding-top: 3.5rem;
    }

    .sfe-workspace {
        grid-template-columns: 1.08fr 0.92fr;
        align-items: start;
    }

    .sfe-discovery,
    .sfe-dashboard-card,
    .sfe-roi {
        padding: 1.35rem;
        border-radius: 1.8rem;
    }

    .sfe-selector {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
        padding-bottom: 1rem;
    }

    .sfe-step {
        min-width: 0;
    }

    .sfe-case-track {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .sfe-case-card {
        min-width: 0;
    }
}

/* Short iPhone landscape screens: avoid overlays and tablet-layout crowding. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 932px) {
    body.sfe-page {
        padding-bottom: calc(var(--sfe-nav-height) + var(--sfe-safe-bottom) + 0.5rem);
    }

    .sfe-header {
        position: static;
    }

    .sfe-nav-links {
        display: none;
    }

    .sfe-mode-switch {
        position: static;
    }

    .sfe-mobile-picker {
        display: grid;
    }

    .sfe-selector {
        display: none;
    }

    .sfe-hero {
        padding: 1.1rem 0 1rem;
    }

    .sfe-hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sfe-hero-visual {
        display: none;
    }

    .sfe-bottom-nav {
        display: grid;
    }

    .sfe-floating-cta {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}
