/* DualSense TMR page — teal / emerald precision theme + 3D stages */

.tmr {
    --tmr-ink: #071714;
    --tmr-muted: #4a635e;
    --tmr-teal: #0d9488;
    --tmr-teal-deep: #0f766e;
    --tmr-mint: #2dd4bf;
    --tmr-paper: #eef8f6;
    --tmr-card: #ffffff;
    --tmr-line: rgba(7, 40, 36, 0.1);
    color: var(--tmr-ink);
    background: var(--tmr-paper);
    overflow: clip;
}

.tmr a { color: var(--tmr-teal-deep); }
.tmr a:hover { color: #115e59; }

.tmr-hero {
    position: relative;
    color: #eefaf7;
    padding: 5.2rem 0 4.8rem;
    isolation: isolate;
    background:
        radial-gradient(820px 420px at 88% 8%, rgba(45, 212, 191, 0.28), transparent 62%),
        radial-gradient(560px 360px at 0% 90%, rgba(13, 148, 136, 0.3), transparent 58%),
        linear-gradient(165deg, #031512 0%, #0a2a26 55%, #0f3d38 100%);
}

.tmr-hero__fx {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.tmr-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 212, 191, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.08) 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%;
}

.tmr-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: tmr-float 10s ease-in-out infinite;
}

.tmr-hero__orb--a {
    width: 250px;
    height: 250px;
    right: 7%;
    top: 5%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.48), transparent 68%);
}

.tmr-hero__orb--b {
    width: 190px;
    height: 190px;
    left: -24px;
    bottom: 14%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.42), transparent 70%);
    animation-direction: reverse;
    animation-duration: 12s;
}

.tmr-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 64px;
    background: linear-gradient(to bottom, transparent, var(--tmr-paper));
    pointer-events: none;
    z-index: 1;
}

.tmr-hero .container { position: relative; z-index: 2; }

.tmr-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.35);
    background: rgba(45, 212, 191, 0.1);
    color: #99f6e4;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tmr-hero h1 {
    margin: 0 0 0.85rem;
    max-width: 14ch;
    color: #fff;
    font-size: clamp(2.15rem, 4.4vw, 3.55rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.tmr-lead {
    max-width: 38rem;
    margin: 0 0 1.15rem;
    color: rgba(220, 245, 240, 0.84);
    font-size: 1.08rem;
    line-height: 1.65;
}
.tmr-lead a { color: #99f6e4; font-weight: 700; text-decoration: none; }
.tmr-lead a:hover { text-decoration: underline; }

.tmr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}
.tmr-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #d5f5ef;
    font-size: 0.86rem;
    font-weight: 600;
}

.tmr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.tmr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0 1.15rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tmr-btn:hover { transform: translateY(-2px); }

.tmr-btn-wa {
    color: #fff;
    background: linear-gradient(180deg, #2fd46a 0%, #1fad54 100%);
    box-shadow: 0 10px 22px rgba(31, 173, 84, 0.28);
}
.tmr-btn-ghost {
    color: #eefaf7;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.tmr-btn-ghost:hover { color: #fff; }

.tmr-note {
    margin: 0;
    color: rgba(200, 230, 224, 0.68);
    font-size: 0.84rem;
}

.tmr-stage {
    position: relative;
    perspective: 1400px;
    min-height: 340px;
}

.tmr-stage__deck {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #061a17;
    transform: rotateY(-10deg) rotateX(6deg);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(45, 212, 191, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: tmr-tilt 8s ease-in-out infinite;
}

.tmr-stage__deck img,
.tmr-stage__deck .hero-still,
.tmr-stage__deck .hero-loop-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: linear-gradient(160deg, #041512, #0d2f2a);
    padding: 1.5rem;
    aspect-ratio: 4 / 3;
}

.tmr-stage__chip {
    position: absolute;
    right: -2%;
    bottom: 6%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 210px;
    padding: 0.7rem 0.85rem;
    border-radius: 1rem;
    background: rgba(4, 24, 22, 0.92);
    border: 1px solid rgba(45, 212, 191, 0.35);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    transform: rotateY(8deg) translateZ(40px);
    animation: tmr-chip 6.5s ease-in-out infinite;
    color: #fff;
    z-index: 2;
}

.tmr-stage__chip img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 0.65rem;
    background: #fff;
    flex-shrink: 0;
    padding: 4px;
}

.tmr-stage__chip strong { display: block; font-size: 0.92rem; line-height: 1.2; }
.tmr-stage__chip em {
    display: block;
    font-style: normal;
    color: var(--tmr-mint);
    font-weight: 800;
    font-size: 1.05rem;
}
.tmr-stage__chip small {
    display: block;
    color: rgba(200, 230, 224, 0.7);
    font-size: 0.72rem;
}

.tmr-stage__ring {
    position: absolute;
    inset: -8% -6% auto auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px dashed rgba(45, 212, 191, 0.35);
    animation: tmr-spin 18s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.tmr-stage__ring::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 2px solid rgba(13, 148, 136, 0.4);
}

.tmr-metrics {
    position: relative;
    z-index: 2;
    margin: -2.2rem auto 0;
    max-width: 1140px;
    padding: 0 1rem;
}
.tmr-metrics__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 20px;
    background: var(--tmr-card);
    border: 1px solid var(--tmr-line);
    box-shadow: 0 18px 40px rgba(7, 40, 36, 0.1);
}
.tmr-metrics article {
    text-align: center;
    padding: 0.65rem 0.4rem;
    transition: transform 0.25s ease;
}
.tmr-metrics article:hover { transform: translateY(-3px); }
.tmr-metrics strong {
    display: block;
    color: var(--tmr-teal);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}
.tmr-metrics span {
    color: var(--tmr-muted);
    font-size: 0.84rem;
}

.tmr-section { padding: 3.2rem 0; }
.tmr-section--white { background: #fff; }
.tmr-section--soft { background: var(--tmr-paper); }
.tmr-section--3d {
    background:
        radial-gradient(600px 280px at 90% 10%, rgba(45, 212, 191, 0.1), transparent 55%),
        linear-gradient(180deg, #041814 0%, #0c302c 100%);
    color: #e8f7f4;
}
.tmr-section--3d h2 { color: #fff; }
.tmr-section--3d .tmr-sub { color: rgba(200, 230, 224, 0.75); }

.tmr-section h2 {
    margin: 0 0 0.7rem;
    color: var(--tmr-ink);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.tmr-section .tmr-sub {
    margin: 0 0 1.6rem;
    max-width: 42rem;
    color: var(--tmr-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.tmr-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.8rem;
}
.tmr-toc a {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--tmr-line);
    color: var(--tmr-ink);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}
.tmr-toc a:hover {
    border-color: rgba(13, 148, 136, 0.4);
    color: var(--tmr-teal-deep);
}

.tmr-prose {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}
.tmr-prose p { margin: 0 0 1rem; }
.tmr-prose a { font-weight: 700; text-decoration: none; }
.tmr-prose a:hover { text-decoration: underline; }
.tmr-prose ul {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
}
.tmr-prose li { margin-bottom: 0.45rem; }

.tmr-callout {
    margin: 1.2rem 0;
    padding: 1rem 1.15rem;
    border-radius: 0 14px 14px 0;
    border-left: 4px solid var(--tmr-teal);
    background: #e6f7f4;
    color: #334155;
}
.tmr-callout strong { color: var(--tmr-ink); }

.tmr-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.6rem;
    align-items: start;
}

.tmr-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--tmr-line);
    background: #061a17;
    transform: perspective(1000px) rotateY(-3deg);
    box-shadow: 0 24px 48px rgba(7, 40, 36, 0.14);
}
.tmr-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: contain;
    padding: 1.25rem;
    background: linear-gradient(160deg, #041512, #0d2f2a);
}

.tmr-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}
.tmr-gallery figure {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #041814;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transform: perspective(900px) rotateX(2deg);
    transition: transform 0.3s ease;
}
.tmr-gallery figure:hover { transform: perspective(900px) translateY(-6px) rotateX(0); }
.tmr-gallery img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 1rem;
    background: linear-gradient(160deg, #031210, #0c2a26);
}
.tmr-gallery figcaption {
    padding: 0.7rem 0.85rem;
    color: rgba(210, 240, 234, 0.85);
    font-size: 0.82rem;
    background: rgba(4, 24, 22, 0.92);
}

.tmr-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}
.tmr-step {
    background: #fff;
    border: 1px solid var(--tmr-line);
    border-radius: 16px;
    padding: 1.1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tmr-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(13, 148, 136, 0.12);
}
.tmr-step b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0.7rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #2dd4bf, var(--tmr-teal));
    color: #fff;
    font-size: 0.9rem;
}
.tmr-step h3 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
    font-weight: 800;
}
.tmr-step p {
    margin: 0;
    color: var(--tmr-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.tmr-compare {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}
.tmr-compare article {
    background: #fff;
    border: 1px solid var(--tmr-line);
    border-radius: 16px;
    padding: 1.15rem;
    height: 100%;
}
.tmr-compare article.is-active {
    border-color: rgba(13, 148, 136, 0.45);
    box-shadow: 0 16px 30px rgba(13, 148, 136, 0.12);
    background: linear-gradient(180deg, #e8f8f5 0%, #fff 42%);
}
.tmr-compare h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
}
.tmr-compare p {
    margin: 0 0 0.75rem;
    color: var(--tmr-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}
.tmr-compare .tmr-price {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--tmr-teal);
    font-size: 1.2rem;
    font-weight: 800;
}
.tmr-compare a {
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.tmr-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}
.tmr-price-card {
    background: #fff;
    border: 1px solid var(--tmr-line);
    border-radius: 18px;
    padding: 1.35rem 1.2rem;
    transition: transform 0.25s ease;
}
.tmr-price-card:hover { transform: translateY(-4px); }
.tmr-price-card.is-featured {
    border-color: rgba(13, 148, 136, 0.4);
    background: linear-gradient(180deg, #e8f8f5 0%, #fff 48%);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.12), 0 18px 40px rgba(13, 148, 136, 0.1);
}
.tmr-price-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    font-weight: 800;
}
.tmr-price-card .tmr-amount {
    margin: 0.55rem 0 0.35rem;
    color: var(--tmr-teal);
    font-size: 1.8rem;
    font-weight: 900;
}
.tmr-price-card ul {
    margin: 0.8rem 0 1rem;
    padding: 0;
    list-style: none;
}
.tmr-price-card li {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
    color: #475569;
    font-size: 0.92rem;
}
.tmr-price-card li i { color: #16a34a; }

.tmr-geo {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.2rem;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, #031512, #0f3d38);
    color: #e8f7f4;
}
.tmr-geo__copy { padding: 2rem 1.8rem; }
.tmr-geo__copy h2 { color: #fff; margin-top: 0; }
.tmr-geo__copy p { color: rgba(210, 240, 234, 0.8); line-height: 1.65; }
.tmr-geo__meta {
    display: grid;
    gap: 0.4rem;
    margin: 1rem 0 1.2rem;
    font-size: 0.95rem;
}
.tmr-geo__meta a { color: var(--tmr-mint); font-weight: 700; text-decoration: none; }
.tmr-geo__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.tmr-side {
    display: grid;
    gap: 0.85rem;
}
.tmr-side a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--tmr-line);
    color: var(--tmr-ink);
    font-weight: 600;
    text-decoration: none;
}
.tmr-side a:hover {
    border-color: rgba(13, 148, 136, 0.4);
    color: var(--tmr-teal-deep);
}
.tmr-side a i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #e6f7f4;
    color: var(--tmr-teal);
}

@keyframes tmr-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes tmr-tilt {
    0%, 100% { transform: rotateY(-10deg) rotateX(6deg); }
    50% { transform: rotateY(-6deg) rotateX(3deg); }
}
@keyframes tmr-chip {
    0%, 100% { transform: rotateY(8deg) translateY(0); }
    50% { transform: rotateY(8deg) translateY(-8px); }
}
@keyframes tmr-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
    .tmr-metrics__grid,
    .tmr-steps,
    .tmr-compare,
    .tmr-prices,
    .tmr-grid-2,
    .tmr-gallery,
    .tmr-geo {
        grid-template-columns: 1fr 1fr;
    }
    .tmr-hero h1 { max-width: none; }
    .tmr-stage { min-height: 0; }
    .tmr-stage__deck { transform: none; animation: none; }
    .tmr-stage__chip {
        position: static;
        margin-top: 0.75rem;
        transform: none;
        animation: none;
        width: 100%;
    }
    .tmr-stage__ring { display: none; }
    .tmr-media { transform: none; }
    .tmr-geo { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .tmr-metrics__grid,
    .tmr-steps,
    .tmr-compare,
    .tmr-prices,
    .tmr-grid-2,
    .tmr-gallery {
        grid-template-columns: 1fr;
    }
    .tmr-metrics { margin-top: -1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tmr-hero__orb,
    .tmr-stage__deck,
    .tmr-stage__chip,
    .tmr-stage__ring { animation: none; }
    .tmr-step:hover,
    .tmr-price-card:hover,
    .tmr-metrics article:hover { transform: none; }
}
