/* SEO guide pages — 3D lab stages (tamir/yeni, drift neden, hall vs tmr) */

.sg3 {
    --sg3-ink: #0a1422;
    --sg3-muted: #5a6b84;
    --sg3-paper: #eef3f8;
    --sg3-card: #ffffff;
    --sg3-line: rgba(12, 28, 52, 0.1);
    --sg3-accent: #1a8cff;
    --sg3-accent-2: #00c2a8;
    --sg3-warn: #f0b429;
    --sg3-deep: #07111c;
    color: var(--sg3-ink);
    background: var(--sg3-paper);
    overflow: clip;
}

.sg3 a { color: #0a62c8; }
.sg3 a:hover { color: #084a98; }

.sg3-hero {
    position: relative;
    color: #f4f8ff;
    padding: 4.6rem 0 5.5rem;
    isolation: isolate;
    background:
        radial-gradient(900px 480px at 88% 6%, rgba(26, 140, 255, 0.4), transparent 62%),
        radial-gradient(640px 420px at 4% 92%, rgba(0, 194, 168, 0.22), transparent 58%),
        linear-gradient(165deg, #061018 0%, #0c1c32 58%, #12304a 100%);
}

.sg3-hero--decision {
    background:
        radial-gradient(860px 460px at 86% 10%, rgba(240, 180, 41, 0.28), transparent 60%),
        radial-gradient(620px 400px at 0% 88%, rgba(26, 140, 255, 0.3), transparent 58%),
        linear-gradient(165deg, #0a1018 0%, #152238 55%, #1c3048 100%);
}

.sg3-hero--drift {
    background:
        radial-gradient(860px 460px at 90% 8%, rgba(255, 92, 92, 0.28), transparent 60%),
        radial-gradient(620px 400px at 0% 90%, rgba(26, 140, 255, 0.28), transparent 58%),
        linear-gradient(165deg, #0a0e16 0%, #151c2c 55%, #1a2740 100%);
}

.sg3-hero--compare {
    background:
        radial-gradient(860px 460px at 88% 8%, rgba(0, 194, 168, 0.28), transparent 60%),
        radial-gradient(620px 400px at 0% 90%, rgba(26, 140, 255, 0.32), transparent 58%),
        linear-gradient(165deg, #06141c 0%, #0c2438 55%, #103550 100%);
}

.sg3-hero__fx {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.sg3-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(150, 196, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150, 196, 255, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 72% 38%, #000 12%, transparent 70%);
    transform: perspective(900px) rotateX(48deg) scale(1.35);
    transform-origin: 50% 0%;
    opacity: 0.85;
}

.sg3-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: sg3-float 10s ease-in-out infinite;
}

.sg3-hero__orb--a {
    width: 260px;
    height: 260px;
    right: 8%;
    top: 6%;
    background: radial-gradient(circle, rgba(120, 210, 255, 0.5), transparent 68%);
}

.sg3-hero__orb--b {
    width: 200px;
    height: 200px;
    left: -30px;
    bottom: 12%;
    background: radial-gradient(circle, rgba(0, 194, 168, 0.4), transparent 70%);
    animation-direction: reverse;
    animation-duration: 12s;
}

.sg3-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 72px;
    background: linear-gradient(to bottom, transparent, var(--sg3-paper));
    pointer-events: none;
    z-index: 1;
}

.sg3-hero .container { position: relative; z-index: 2; }

.sg3-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(158, 204, 255, 0.32);
    background: rgba(126, 186, 255, 0.1);
    color: #c5e2ff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sg3-hero h1 {
    margin: 0 0 0.85rem;
    max-width: 16ch;
    color: #fff;
    font-size: clamp(2.2rem, 4.5vw, 3.7rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.sg3-lead {
    max-width: 38rem;
    margin: 0 0 1.2rem;
    color: rgba(232, 241, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.65;
}

.sg3-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.sg3-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.78rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sg3-btn:hover { transform: translateY(-2px); }

.sg3-btn--wa {
    background: #1fad5a;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(31, 173, 90, 0.35);
}

.sg3-btn--primary {
    background: linear-gradient(135deg, #1a8cff, #0066d6);
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(26, 140, 255, 0.35);
}

.sg3-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #e8f1ff !important;
    border: 1px solid rgba(200, 220, 255, 0.28);
}

.sg3-note {
    margin: 0;
    color: rgba(200, 216, 240, 0.65);
    font-size: 0.82rem;
}

/* 3D stage / floating media */
.sg3-stage {
    position: relative;
    perspective: 1400px;
    min-height: 320px;
}

.sg3-stage__deck {
    position: relative;
    border-radius: 1.4rem;
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(6deg) translateZ(0);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(180, 210, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: sg3-tilt 8s ease-in-out infinite;
    background: #0b1624;
}

.sg3-stage__deck img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.sg3-stage__chip {
    position: absolute;
    right: -4%;
    bottom: 8%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 210px;
    padding: 0.7rem 0.85rem;
    border-radius: 1rem;
    background: rgba(10, 18, 32, 0.88);
    border: 1px solid rgba(160, 200, 255, 0.28);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    transform: rotateY(8deg) translateZ(40px);
    animation: sg3-chip 6.5s ease-in-out infinite;
    color: #fff;
}

.sg3-stage__chip img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.65rem;
    flex-shrink: 0;
}

.sg3-stage__chip strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.2;
}

.sg3-stage__chip em {
    display: block;
    font-style: normal;
    color: #7ed0ff;
    font-weight: 800;
    font-size: 1.05rem;
}

.sg3-stage__chip small {
    display: block;
    color: rgba(210, 224, 245, 0.7);
    font-size: 0.72rem;
}

.sg3-stage__ring {
    position: absolute;
    inset: -8% -6% auto auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px dashed rgba(126, 208, 255, 0.35);
    animation: sg3-spin 18s linear infinite;
    pointer-events: none;
}

.sg3-stage__ring::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 2px solid rgba(0, 194, 168, 0.35);
}

/* Metric strip */
.sg3-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin: -2.4rem auto 0;
    max-width: 1120px;
    padding: 0 1rem;
    position: relative;
    z-index: 3;
}

.sg3-metrics article {
    background: var(--sg3-card);
    border: 1px solid var(--sg3-line);
    border-radius: 1.1rem;
    padding: 1.05rem 1.1rem;
    box-shadow: 0 16px 36px rgba(12, 28, 52, 0.08);
    transform: translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sg3-metrics article:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(12, 28, 52, 0.12);
}

.sg3-metrics strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--sg3-ink);
}

.sg3-metrics span {
    display: block;
    margin-top: 0.2rem;
    color: var(--sg3-muted);
    font-size: 0.84rem;
}

/* Content panels */
.sg3-section {
    padding: 3.4rem 0;
}

.sg3-section--tight { padding-top: 2rem; }

.sg3-eyebrow {
    display: inline-block;
    margin: 0 0 0.55rem;
    color: var(--sg3-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sg3-section h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--sg3-ink);
}

.sg3-copy {
    max-width: 46rem;
    color: var(--sg3-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.sg3-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.sg3-panel {
    position: relative;
    padding: 1.35rem 1.25rem 1.25rem;
    border-radius: 1.2rem;
    background: var(--sg3-card);
    border: 1px solid var(--sg3-line);
    box-shadow:
        0 18px 40px rgba(12, 28, 52, 0.07),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transform-style: preserve-3d;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.sg3-panel:hover {
    transform: translateY(-6px) rotateX(2deg);
    box-shadow: 0 28px 50px rgba(12, 28, 52, 0.12);
}

.sg3-panel__icon {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, rgba(26, 140, 255, 0.14), rgba(0, 194, 168, 0.12));
    color: var(--sg3-accent);
    font-size: 1.15rem;
}

.sg3-panel h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.sg3-panel p {
    margin: 0;
    color: var(--sg3-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.sg3-panel--hot {
    background:
        linear-gradient(160deg, #0d1b33 0%, #143055 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 22px 48px rgba(10, 30, 60, 0.28);
}

.sg3-panel--hot h3,
.sg3-panel--hot p { color: rgba(236, 244, 255, 0.9); }
.sg3-panel--hot .sg3-panel__icon {
    background: rgba(255, 255, 255, 0.1);
    color: #9ed0ff;
}

.sg3-panel--ok {
    border-color: rgba(0, 194, 168, 0.28);
}

.sg3-panel--warn {
    border-color: rgba(240, 180, 41, 0.35);
}

/* 3D compare table */
.sg3-table-wrap {
    margin-top: 1.25rem;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--sg3-line);
    background: var(--sg3-card);
    box-shadow:
        0 24px 50px rgba(12, 28, 52, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transform: perspective(1200px) rotateX(1.5deg);
}

.sg3-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.sg3-table th,
.sg3-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--sg3-line);
    text-align: left;
    vertical-align: middle;
    font-size: 0.92rem;
}

.sg3-table th {
    background: #f3f7fc;
    font-weight: 800;
    color: var(--sg3-ink);
}

.sg3-table tbody tr:last-child td { border-bottom: 0; }
.sg3-table tbody tr:hover td { background: rgba(26, 140, 255, 0.04); }

.sg3-table .is-accent {
    color: var(--sg3-accent);
    font-weight: 800;
}

/* Visual rail */
.sg3-visual-rail {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: center;
}

.sg3-visual {
    position: relative;
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: 0 28px 56px rgba(12, 28, 52, 0.14);
    transform: perspective(1000px) rotateY(4deg);
}

.sg3-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.sg3-visual figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.1rem 1.15rem;
    background: linear-gradient(transparent, rgba(6, 14, 24, 0.88));
    color: rgba(236, 244, 255, 0.92);
    font-size: 0.86rem;
}

.sg3-steps {
    display: grid;
    gap: 0.85rem;
}

.sg3-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: var(--sg3-card);
    border: 1px solid var(--sg3-line);
    box-shadow: 0 12px 28px rgba(12, 28, 52, 0.06);
}

.sg3-step__n {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(145deg, #1a8cff, #00a88f);
    box-shadow: 0 8px 18px rgba(26, 140, 255, 0.3);
}

.sg3-step h3 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    font-weight: 800;
}

.sg3-step p {
    margin: 0;
    color: var(--sg3-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Dual pick */
.sg3-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.3rem;
}

.sg3-pick {
    position: relative;
    padding: 1.4rem 1.3rem;
    border-radius: 1.3rem;
    overflow: hidden;
    color: #fff;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 24px 48px rgba(8, 20, 40, 0.22);
    transform: perspective(900px) rotateY(-2deg);
    transition: transform 0.25s ease;
}

.sg3-pick:nth-child(2) { transform: perspective(900px) rotateY(2deg); }
.sg3-pick:hover { transform: translateY(-5px) scale(1.01); }

.sg3-pick img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.sg3-pick::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(6, 14, 24, 0.15), rgba(6, 14, 24, 0.88));
}

.sg3-pick > * { position: relative; z-index: 2; }

.sg3-pick h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.sg3-pick p {
    margin: 0 0 0.85rem;
    color: rgba(230, 240, 255, 0.85);
    font-size: 0.92rem;
}

.sg3-pick a {
    align-self: flex-start;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* CTA band */
.sg3-cta {
    margin: 0.5rem 0 3rem;
    padding: 1.6rem 1.5rem;
    border-radius: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background:
        radial-gradient(520px 180px at 90% 0%, rgba(26, 140, 255, 0.35), transparent 60%),
        linear-gradient(135deg, #0b1628, #12324f);
    color: #fff;
    box-shadow: 0 28px 56px rgba(8, 24, 48, 0.28);
}

.sg3-cta h2 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.35rem;
}

.sg3-cta p {
    margin: 0;
    color: rgba(220, 232, 250, 0.8);
    max-width: 36rem;
}

@keyframes sg3-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

@keyframes sg3-tilt {
    0%, 100% { transform: rotateY(-10deg) rotateX(6deg); }
    50% { transform: rotateY(-6deg) rotateX(3deg) translateY(-6px); }
}

@keyframes sg3-chip {
    0%, 100% { transform: rotateY(8deg) translateZ(40px) translateY(0); }
    50% { transform: rotateY(8deg) translateZ(40px) translateY(-8px); }
}

@keyframes sg3-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 991.98px) {
    .sg3-hero { padding: 3.4rem 0 4.2rem; }
    .sg3-hero h1 { max-width: none; }
    .sg3-stage { margin-top: 0.5rem; min-height: 0; }
    .sg3-stage__deck { transform: none; animation: none; }
    .sg3-stage__chip {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 0.85rem;
        transform: none;
        animation: none;
        width: 100%;
    }
    .sg3-stage__ring { display: none; }
    .sg3-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -1.6rem; }
    .sg3-panel-grid,
    .sg3-dual,
    .sg3-visual-rail { grid-template-columns: 1fr; }
    .sg3-visual,
    .sg3-pick,
    .sg3-pick:nth-child(2),
    .sg3-table-wrap { transform: none; }
}

@media (max-width: 575.98px) {
    .sg3-metrics { grid-template-columns: 1fr; }
    .sg3-table th:nth-child(2),
    .sg3-table td:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sg3-hero__orb,
    .sg3-stage__deck,
    .sg3-stage__chip,
    .sg3-stage__ring { animation: none; }
}
