:root {
    --bg: #f7f4ee;
    --surface: #fdfbf7;
    --surface-2: #f1ece4;
    --surface-3: #ebe4d8;
    --line: #ddd5ca;
    --text: #1f1b16;
    --muted: #6f685f;
    --primary: #123f44;
    --primary-hover: #0d2f33;
    --white: #ffffff;
    --shadow-sm: 0 10px 30px rgba(30, 24, 18, 0.06);
    --shadow-lg: 0 24px 60px rgba(30, 24, 18, 0.12);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-full: 999px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.tempered-page {
    overflow: hidden;
}

.tempered-container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.tempered-breadcrumb-wrap {
    background: #e8e3d9;
    border-top: 6px solid #0a8f08;
    border-bottom: 1px solid rgba(31, 27, 22, 0.06);
    padding: 14px 0;
}

.tempered-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #6f685f;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.tempered-breadcrumb a {
    color: #6f685f;
    transition: color 0.25s ease;
}

.tempered-breadcrumb a:hover {
    color: #0a8f08;
}

.tempered-breadcrumb span {
    color: #6f685f;
}

.tempered-hero {
    padding: 22px 0 26px;
}

.tempered-hero-wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, #f3ede3 0%, #fbf8f2 52%, #eee7db 100%);
    border: 1px solid rgba(31, 27, 22, 0.08);
    border-radius: 34px;
    padding: 34px;
    box-shadow: var(--shadow-sm);
}

.tempered-hero-copy {
    max-width: 560px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 9px 14px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(31, 27, 22, 0.08);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f574d;
}

.tempered-hero-copy h1 {
    margin: 0 0 14px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 5vw, 74px);
    line-height: 0.95;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.tempered-hero-copy p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 52ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-btn {
    min-height: 48px;
    padding: 0 20px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.hero-btn.primary {
    background: var(--primary);
    color: var(--white);
}

.hero-btn.primary:hover {
    background: var(--primary-hover);
}

.hero-btn.secondary {
    background: rgba(255,255,255,0.8);
    color: var(--text);
    border: 1px solid rgba(31, 27, 22, 0.08);
}

.hero-btn.secondary:hover {
    background: var(--white);
}

.tempered-hero-showcase {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-device {
    position: absolute;
    border-radius: 34px;
    background: linear-gradient(180deg, #0f1011, #232426);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05), 0 18px 45px rgba(0,0,0,0.2);
}

.device-back {
    width: 185px;
    height: 330px;
    transform: rotate(-12deg) translateX(-70px);
    opacity: 0.85;
}

.device-front {
    width: 205px;
    height: 370px;
    z-index: 2;
    padding: 12px;
}

.device-front::before,
.device-back::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 18px;
    border-radius: 18px;
    background: #080808;
}

.device-screen {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, #f4eee3 0%, #ddd1bf 100%);
    position: relative;
    overflow: hidden;
}

.screen-reflection {
    position: absolute;
    inset: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.55);
    background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.screen-reflection::after {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    width: 38%;
    height: 100%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, rgba(255,255,255,0.48), rgba(255,255,255,0));
}

.hero-floating-note {
    position: absolute;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(31, 27, 22, 0.08);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    z-index: 3;
}

.hero-floating-note span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    font-weight: 800;
}

.hero-floating-note strong {
    display: block;
    font-size: 15px;
    line-height: 1.4;
}

.top-note {
    top: 28px;
    right: 10px;
}

.bottom-note {
    left: 18px;
    bottom: 30px;
}

.tempered-products,
.why-choose-section,
.comparison-section,
.install-section {
    padding: 34px 0 0;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading.center {
    text-align: center;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 10px;
    color: #766d62;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0 0 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    max-width: 66ch;
}

.section-heading.center p {
    margin-left: auto;
    margin-right: auto;
}

.tempered-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tempered-card {
    background: var(--surface);
    border: 1px solid rgba(31, 27, 22, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.tempered-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(18, 63, 68, 0.16);
}

.tempered-card-media {
    position: relative;
    padding: 20px 20px 0;
    background: linear-gradient(180deg, #f4efe7 0%, #fbf8f3 100%);
}

.product-label {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(31, 27, 22, 0.08);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c5449;
}

.mini-phone {
    width: 136px;
    height: 210px;
    margin: 28px auto 0;
    border-radius: 28px;
    background: linear-gradient(180deg, #131415, #242527);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05), 0 18px 40px rgba(0,0,0,0.16);
    padding: 10px;
    position: relative;
}

.mini-phone::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 14px;
    border-radius: 20px;
    background: #080808;
    z-index: 2;
}

.mini-screen {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.normal-screen {
    background: linear-gradient(145deg, #efe6d9 0%, #d8ccb8 100%);
}

.matte-screen {
    background: linear-gradient(145deg, #dcd5ca 0%, #cac1b4 100%);
}

.privacy-screen {
    background: linear-gradient(145deg, #4c4945 0%, #1b1a19 100%);
}

.mini-shine,
.mini-matte,
.mini-privacy {
    position: absolute;
    inset: 14px;
    border-radius: 14px;
}

.mini-shine {
    border: 1px solid rgba(255,255,255,0.58);
    background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0.08));
}

.mini-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    width: 38%;
    height: 100%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, rgba(255,255,255,0.46), rgba(255,255,255,0));
}

.mini-matte {
    border: 1px solid rgba(255,255,255,0.4);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.035) 0px,
            rgba(255,255,255,0.035) 2px,
            rgba(255,255,255,0.01) 2px,
            rgba(255,255,255,0.01) 4px
        );
}

.mini-privacy {
    border: 1px solid rgba(255,255,255,0.18);
    background:
        linear-gradient(90deg, rgba(255,255,255,0.12), rgba(0,0,0,0.18) 78%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    box-shadow: inset 0 0 25px rgba(0,0,0,0.3);
}

.tempered-card-body {
    padding: 18px 18px 20px;
}

.tempered-card-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
}

.price {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}

.spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.spec-tags span {
    padding: 7px 10px;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    color: #5e564c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.card-btn {
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex: 1;
    transition: all 0.25s ease;
}

.card-btn.dark {
    background: var(--primary);
    color: var(--white);
}

.card-btn.dark:hover {
    background: var(--primary-hover);
}

.card-btn.light {
    background: var(--white);
    color: var(--text);
    border: 1px solid rgba(31, 27, 22, 0.1);
}

.card-btn.light:hover {
    border-color: rgba(18, 63, 68, 0.18);
    color: var(--primary);
}

.why-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px;
}

.why-card {
    background: var(--surface);
    border: 1px solid rgba(31, 27, 22, 0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.why-card.large {
    background: linear-gradient(135deg, #f2ebdf 0%, #fbf8f3 100%);
}

.why-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
}

.why-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.comparison-table {
    background: var(--surface);
    border: 1px solid rgba(31, 27, 22, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(31, 27, 22, 0.07);
    align-items: center;
    font-size: 14px;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-head {
    background: #f3eee5;
    font-weight: 800;
}

.install-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
    align-items: start;
    background: linear-gradient(135deg, #f3ede3 0%, #faf7f2 100%);
    border: 1px solid rgba(31, 27, 22, 0.08);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 70px;
}

.install-copy span {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #766d62;
}

.install-copy h2 {
    margin: 0 0 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1;
    font-weight: 600;
}

.install-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.install-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.step-card {
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(31, 27, 22, 0.08);
    border-radius: 22px;
    padding: 18px;
}

.step-card strong {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 24px;
    font-family: 'Cormorant Garamond', serif;
}

.step-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

/* Samsung-specific shape tweaks only */
.samsung-device-back {
    border-radius: 28px;
}

.samsung-device-front {
    border-radius: 30px;
}

.samsung-device-front::before,
.samsung-device-back::before {
    width: 58px;
    height: 12px;
    top: 8px;
    border-radius: 20px;
}

.samsung-device-screen {
    border-radius: 18px;
}

.samsung-mini-phone {
    border-radius: 22px;
}

.samsung-mini-phone::before {
    width: 42px;
    height: 10px;
    top: 8px;
    border-radius: 20px;
}

.samsung-mini-screen {
    border-radius: 14px;
}

@media (max-width: 1100px) {
    .tempered-hero-wrap,
    .why-grid,
    .install-wrap {
        grid-template-columns: 1fr;
    }

    .tempered-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .install-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tempered-hero-showcase {
        min-height: 320px;
    }
}

@media (max-width: 767px) {
    .tempered-container {
        width: min(100% - 24px, var(--container));
    }

    .tempered-breadcrumb-wrap {
        padding: 12px 0;
        border-top-width: 5px;
    }

    .tempered-breadcrumb {
        font-size: 13px;
        gap: 8px;
    }

    .tempered-hero {
        padding: 18px 0 20px;
    }

    .tempered-hero-wrap {
        padding: 22px;
        border-radius: 26px;
        gap: 22px;
    }

    .tempered-hero-copy h1 {
        font-size: clamp(38px, 11vw, 56px);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

    .tempered-hero-showcase {
        min-height: 280px;
    }

    .device-back {
        width: 145px;
        height: 255px;
        transform: rotate(-12deg) translateX(-46px);
    }

    .device-front {
        width: 165px;
        height: 290px;
    }

    .hero-floating-note {
        padding: 12px 14px;
    }

    .hero-floating-note strong {
        font-size: 13px;
    }

    .top-note {
        top: 6px;
        right: 0;
    }

    .bottom-note {
        left: 0;
        bottom: 8px;
    }

    .tempered-products,
    .why-choose-section,
    .comparison-section,
    .install-section {
        padding-top: 26px;
    }

    .tempered-grid {
        grid-template-columns: 1fr;
    }

    .mini-phone {
        width: 122px;
        height: 188px;
    }

    .card-actions {
        flex-direction: column;
    }

    .card-btn {
        width: 100%;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-row {
        min-width: 720px;
    }

    .install-steps {
        grid-template-columns: 1fr;
    }

    .install-wrap {
        padding: 22px;
        border-radius: 24px;
        margin-bottom: 50px;
    }
}