@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap");

:root {
    --bg: #faf3e7;
    --band: #f4e7d3;
    --surface: #ffffff;
    --navy: #3e2a1a;
    --navy-soft: #5a3d26;
    --slate: #5c4b3d;
    --amber: #f5a623;
    --amber-deep: #e08600;
    --amber-edge: #c9720c;
    --teal: #2f86d9;
    --teal-edge: #1e6bb0;
    --line: #e7d8c0;
    --mint: #5cb85c;
    --wood-ink: rgba(48, 28, 15, 0.9);

    --font-head: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --radius: 20px;
    --radius-sm: 16px;
    --shadow: 0 4px 24px rgba(62, 42, 26, 0.1);
    --shadow-lift: 0 10px 32px rgba(62, 42, 26, 0.16);
    --gradient: linear-gradient(180deg, #ffd166 0%, #f5a623 48%, #f08a00 100%);
    --gradient-blue: linear-gradient(180deg, #7cc6f8 0%, #3f97e2 48%, #2f86d9 100%);
    --header-h: 84px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--slate);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.fixed {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

a:hover {
    color: var(--navy);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    color: var(--navy);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
}

h1 {
    font-size: 60px;
}

h2 {
    font-size: 42px;
}

h3 {
    font-size: 22px;
}

p {
    margin: 0 0 20px;
    max-width: 65ch;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 110px 0;
    position: relative;
}

.section-band {
    background-color: var(--band);
}

.section-navy {
    background-color: #3b2415;
    background-image: linear-gradient(var(--wood-ink), var(--wood-ink)), url("../img/wood.webp");
    background-size:
        auto,
        240px 240px;
}

.section-title {
    max-width: 22ch;
}

.section-title.center {
    max-width: 26ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient);
    border: 1px solid var(--amber-edge);
    border-radius: 8px;
    padding: 6px 16px;
    margin-bottom: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 3px 10px rgba(240, 138, 0, 0.24);
    text-shadow: 0 1px 1px rgba(150, 80, 0, 0.45);
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader img {
    width: 64px;
    height: 64px;
}

html.hide .preloader {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease),
        background 0.25s var(--ease),
        color 0.25s var(--ease),
        border-color 0.25s var(--ease);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    border-color: var(--amber-edge);
    text-shadow: 0 1px 1px rgba(150, 80, 0, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 6px 16px rgba(240, 138, 0, 0.28);
}

.btn-primary:hover {
    color: #fff;
    background: linear-gradient(180deg, #ffdc85 0%, #ffb13a 48%, #f59500 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 10px 22px rgba(240, 138, 0, 0.34);
}

.btn-ghost {
    background: var(--gradient-blue);
    color: #fff;
    border-color: var(--teal-edge);
    text-shadow: 0 1px 1px rgba(20, 70, 115, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 6px 16px rgba(47, 134, 217, 0.26);
}

.btn-ghost:hover {
    color: #fff;
    background: linear-gradient(180deg, #96d5fa 0%, #58a9ec 48%, #3b92e0 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 10px 22px rgba(47, 134, 217, 0.32);
}

.btn-sm {
    padding: 12px 24px;
    font-size: 15px;
}

.btn.nav-link {
    padding: 16px 32px;
}

.btn.nav-link::after {
    display: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition:
        background 0.3s var(--ease),
        box-shadow 0.3s var(--ease),
        height 0.3s var(--ease);
}

.header.scrolled {
    background: rgba(250, 243, 231, 0.95);
    backdrop-filter: blur(12px);
    box-shadow:
        0 1px 0 var(--line),
        0 4px 24px rgba(18, 48, 63, 0.06);
    height: 72px;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    box-shadow: 0 2px 8px rgba(62, 42, 26, 0.22);
}

.logo-text {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.logo-text em {
    font-style: normal;
    color: var(--teal);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    position: relative;
    padding: 4px 0;
    width: fit-content;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    border-radius: 2px;
    transition: width 0.3s var(--ease);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.burger-btn {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--navy);
    transition:
        transform 0.3s var(--ease),
        opacity 0.3s var(--ease);
}

.burger-btn.act span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.act span:nth-child(2) {
    opacity: 0;
}

.burger-btn.act span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg);
    padding: calc(var(--header-h) + 24px) 32px 48px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    overflow-y: auto;
}

#mobile-menu.opened {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu .nav-link {
    font-family: var(--font-head);
    font-size: 26px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

#mobile-menu .nav-link::after {
    display: none;
}

#mobile-menu .btn {
    margin-top: 28px;
    align-self: flex-start;
}

.hero {
    position: relative;
    padding: calc(var(--header-h) + 80px) 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/wood.webp");
    background-size: 240px 240px;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(250, 243, 231, 0.76) 0%, rgba(250, 243, 231, 0.88) 58%, var(--bg) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    margin-bottom: 22px;
}

.hero-lead {
    font-size: 21px;
    color: var(--navy);
    font-weight: 500;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.hero-actions .btn {
    min-width: 216px;
}

.hero-proof {
    margin-top: 22px;
    font-size: 14px;
    color: var(--slate);
    opacity: 0.85;
    max-width: none;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 108%;
    padding-bottom: 108%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 160, 61, 0.18) 0%, rgba(242, 160, 61, 0) 68%);
}

.hero-visual .phone {
    position: relative;
}

.hero-visual .phone-back {
    width: 46%;
    margin-right: -13%;
    transform: rotate(-9deg) translateY(26px);
    z-index: 1;
}

.hero-visual .phone-front {
    width: 56%;
    transform: rotate(2deg);
    z-index: 2;
}

.about-band .about-copy {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.about-band .about-copy p {
    max-width: none;
}

.about-closing {
    font-family: var(--font-head);
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 0;
}

.phones-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 840px;
    margin: 60px auto 0;
}

.phone {
    border-radius: 30px;
    padding: 8px;
    background: linear-gradient(155deg, #55555c 0%, #2b2b30 55%, #17171a 100%);
    box-shadow:
        0 16px 36px rgba(48, 28, 15, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.phone img {
    width: 100%;
    height: auto;
    border-radius: 23px;
    display: block;
}

.modes-head {
    text-align: center;
    margin-bottom: 56px;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mode-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px 32px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s var(--ease),
        box-shadow 0.35s var(--ease);
}

.mode-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.mode-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.mode-card:nth-child(2),
.mode-card:nth-child(5) {
    margin-top: 26px;
}

.mode-card h3 {
    margin-bottom: 10px;
}

.mode-card p {
    margin-bottom: 0;
    font-size: 17px;
}

.icon-plate {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--band);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.icon-plate svg {
    width: 26px;
    height: 26px;
    stroke: var(--amber-deep);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-plate.teal svg {
    stroke: var(--teal);
}

.modes-cta {
    margin-top: 78px;
    text-align: center;
}

.section-navy h2,
.section-navy h3 {
    color: #fff;
}

.section-navy p {
    color: rgba(250, 243, 231, 0.78);
}

.section-navy .eyebrow {
    color: var(--amber);
}

.features-head {
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 36px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 16px;
    margin-bottom: 0;
}

.feature-item .icon-plate {
    background: rgba(242, 160, 61, 0.12);
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
}

.feature-item .icon-plate svg {
    stroke: var(--amber);
}

.enjoy-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.enjoy-head p {
    max-width: none;
    margin-bottom: 0;
}

.enjoy-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 52px;
    align-items: center;
}

.enjoy-visual .phone {
    max-width: 300px;
    margin: 0 auto;
}

.highlights {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px 40px 42px;
    box-shadow: var(--shadow);
}

.highlights h3 {
    font-size: 20px;
    margin-bottom: 22px;
}

.highlights ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
}

.highlights li {
    position: relative;
    padding-left: 32px;
    font-size: 16.5px;
    color: var(--slate);
}

.highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(92, 184, 92, 0.18);
}

.highlights li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 11px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #43933f;
    border-bottom: 2px solid #43933f;
    transform: rotate(-45deg);
}

.enjoy-actions {
    margin-top: 52px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.store-facts {
    margin-top: 44px;
    border-top: 1px solid var(--line);
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    color: var(--slate);
}

.pill b {
    color: var(--navy);
    font-weight: 600;
}

.pill.mint {
    border-color: rgba(92, 184, 92, 0.5);
    background: rgba(92, 184, 92, 0.14);
}

.footer {
    background-color: #33200f;
    background-image: linear-gradient(rgba(40, 24, 12, 0.92), rgba(40, 24, 12, 0.92)), url("../img/wood.webp");
    background-size:
        auto,
        240px 240px;
    color: rgba(250, 243, 231, 0.74);
    padding: 76px 0 36px;
}

.footer .logo-text {
    color: #fff;
}

.footer .logo-text em {
    color: var(--amber);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(250, 243, 231, 0.16);
}

.footer-about p {
    margin: 22px 0 0;
    font-size: 16px;
    color: rgba(250, 243, 231, 0.68);
}

.footer-nav h4 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.footer-links a {
    color: rgba(250, 243, 231, 0.74);
    font-size: 16px;
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-bottom {
    padding-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    color: rgba(250, 243, 231, 0.6);
}

.footer-bottom a {
    color: rgba(250, 243, 231, 0.78);
}

.footer-bottom a:hover {
    color: var(--amber);
}

.legal-page {
    padding: calc(var(--header-h) + 72px) 0 100px;
    background: var(--bg);
}

.legal-page h1 {
    font-size: 46px;
    margin-bottom: 10px;
}

.legal-updated {
    font-size: 15px;
    color: var(--slate);
    opacity: 0.8;
    margin-bottom: 40px;
}

.legal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 56px 60px;
    max-width: 900px;
}

.legal-content h2 {
    font-size: 26px;
    margin: 44px 0 14px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 19px;
    margin: 28px 0 10px;
}

.legal-content p,
.legal-content li {
    font-size: 16.5px;
    max-width: 68ch;
}

.legal-content ul {
    padding-left: 22px;
    margin: 0 0 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 46px;
    }

    h2 {
        font-size: 34px;
    }

    .section {
        padding: 84px 0;
    }

    .nav {
        display: none;
    }

    .burger-btn {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-visual {
        max-width: 620px;
        margin: 0 auto;
    }

    .modes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mode-card:nth-child(2),
    .mode-card:nth-child(5) {
        margin-top: 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .enjoy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .enjoy-visual .phone {
        max-width: 270px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal-content {
        padding: 44px 40px;
    }

    .phones-row {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 30px;
    }

    .container {
        padding: 0 24px;
    }

    .section {
        padding: 70px 0;
    }

    .hero {
        padding: calc(var(--header-h) + 48px) 0 72px;
    }

    .hero-lead {
        font-size: 19px;
    }

    .modes-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .phones-row {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 28px;
    }

    .highlights ul {
        grid-template-columns: 1fr;
    }

    .hero-visual .phone-back {
        width: 44%;
    }

    .hero-visual .phone-front {
        width: 54%;
    }

    .modes-cta {
        margin-top: 56px;
    }

    .legal-page h1 {
        font-size: 34px;
    }

    .legal-content {
        padding: 34px 26px;
    }

    #mobile-menu {
        padding: calc(var(--header-h) + 12px) 24px 40px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 33px;
    }

    h2 {
        font-size: 27px;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .enjoy-actions .btn {
        width: 100%;
    }

    .store-facts {
        justify-content: flex-start;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .highlights {
        padding: 28px 22px;
    }

    #mobile-menu .nav-link {
        font-size: 22px;
    }

    #mobile-menu .btn {
        align-self: stretch;
    }
}
