/*
HaxterSociety Music Landing
Apple Music + iCloud inspired interface
(c) Haxter Corporation | All rights reserved.
*/

:root {
    /* Base */
    --am-bg: #fbfcff;
    --am-bg-soft: #f5f8ff;
    --am-panel: rgba(255, 255, 255, 0.78);
    --am-panel-solid: #ffffff;
    --am-sidebar: rgba(247, 250, 255, 0.88);

    /* Text */
    --am-text: #101828;
    --am-soft: #344054;
    --am-muted: #667085;

    /* HaxterSociety / MyAccount blue palette */
    --am-primary: #2563eb;
    --am-primary-dark: #1d4ed8;
    --am-primary-soft: #dbeafe;
    --am-primary-ultra-soft: #eff6ff;

    /* iCloud-like cyan/sky support */
    --am-sky: #0ea5e9;
    --am-sky-soft: #e0f2fe;

    /* Secondary violet from My.HaxterSociety background mood */
    --am-violet: #8b5cf6;
    --am-violet-soft: #f3e8ff;

    /* Legacy aliases so the Apple-style CSS keeps working */
    --am-red: var(--am-primary);
    --am-red-dark: var(--am-primary-dark);
    --am-blue: var(--am-primary);

    /* Borders / glass */
    --am-border: rgba(37, 99, 235, 0.10);
    --am-border-strong: rgba(37, 99, 235, 0.24);

    /* Shadows */
    --am-shadow: 0 18px 60px rgba(37, 99, 235, 0.08);

    /* Layout */
    --am-sidebar-width: 230px;
    --am-radius-xl: 28px;
    --am-radius-lg: 20px;
    --am-radius-md: 14px;
}



* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Apple Color Emoji, SF Pro, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
    color: var(--am-text);
    background: white;
    /*
        radial-gradient(circle at 78% 10%, rgba(0, 113, 227, 0.10), transparent 28%),
        radial-gradient(circle at 55% 42%, rgba(250, 35, 59, 0.07), transparent 26%),
        var(--am-bg);*/
    overflow-x: hidden;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.am-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--am-sidebar-width) minmax(0, 1fr);
}

/* Sidebar */

.am-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px 18px 18px;
    border-right: 1px solid var(--am-border);
    background: var(--am-sidebar);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
}

.am-brand {
    display: flex;
    align-items: center;
    min-height: 54px;
    margin-bottom: 26px;
    text-decoration: none;
}

.am-brand img {
    width: 142px;
    height: auto;
    display: block;
}

.am-nav {
    display: grid;
    gap: 6px;
}

.am-nav a {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 10px;
    border-radius: 8px;
    color: #2c2c2e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.am-nav a span {
    width: 18px;
    display: inline-flex;
    justify-content: center;
    color: #5f6368;
    font-size: 14px;
}

.am-nav a.active {
    background: rgba(0, 0, 0, 0.055);
    color: var(--am-red);
}

.am-nav a.active span {
    color: var(--am-red);
}

.am-nav a:hover {
    background: rgba(0, 0, 0, 0.045);
}

.am-sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--am-border);
}

.am-open-app {
    color: var(--am-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.am-signin {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--am-red);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* Main */

.am-main {
    min-width: 0;
    padding: 24px 30px 42px;
}

.am-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-bottom: 16px;
    background: linear-gradient(180deg, var(--am-bg) 0%, rgba(251, 251, 253, 0.92) 70%, rgba(251, 251, 253, 0) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.am-search {
    width: min(720px, 100%);
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid var(--am-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.74);
}

.am-search span {
    color: var(--am-muted);
    font-size: 15px;
}

.am-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--am-text);
    font-size: 14px;
}

.am-search input::placeholder {
    color: #8e8e93;
}

.am-account {
    flex: 0 0 auto;
    color: var(--am-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Hero */

.am-hero {
    min-height: calc(100vh - 120px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
    align-items: center;
    gap: 44px;
    padding: 40px 0 74px;
}

.am-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--am-red);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.am-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(58px, 8vw, 104px);
    line-height: 0.93;
    letter-spacing: -0.065em;
    font-weight: 700;
}

.am-hero-copy p {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--am-soft);
    font-size: 21px;
    line-height: 1.42;
    letter-spacing: -0.022em;
}

.am-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.am-primary,
.am-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.am-primary {
    background: var(--am-red);
    color: #ffffff;
}

.am-primary:hover {
    background: var(--am-red-dark);
}

.am-secondary {
    background: rgba(255, 255, 255, 0.76);
    color: var(--am-text);
    border: 1px solid var(--am-border);
}

.am-secondary:hover {
    background: #ffffff;
    border-color: var(--am-border-strong);
}

/* Hero Visual */

.am-hero-visual {
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
}

.am-album-main {
    width: min(430px, 100%);
    padding: 18px;
    border: 1px solid var(--am-border);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: var(--am-shadow);
}

.am-cover {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 45, 85, 0.98), transparent 26%),
        radial-gradient(circle at 72% 76%, rgba(0, 113, 227, 0.96), transparent 30%),
        radial-gradient(circle at 62% 22%, rgba(255, 204, 0, 0.78), transparent 22%),
        linear-gradient(135deg, #ffe8ef, #e5f1ff);
}

.am-cover button {
    width: 78px;
    height: 78px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--am-red);
    font-size: 26px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.am-track-meta {
    padding: 18px 4px 8px;
}

.am-track-meta strong {
    display: block;
    font-size: 24px;
    letter-spacing: -0.035em;
}

.am-track-meta span {
    display: block;
    margin-top: 4px;
    color: var(--am-muted);
    font-size: 14px;
}

.am-player-line {
    height: 6px;
    overflow: hidden;
    margin: 10px 4px 2px;
    border-radius: 999px;
    background: rgba(60, 60, 67, 0.18);
}

.am-player-line span {
    display: block;
    width: 62%;
    height: 100%;
    border-radius: inherit;
    background: var(--am-red);
}

.am-floating-card {
    position: absolute;
    width: 180px;
    padding: 16px;
    border: 1px solid var(--am-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
}

.am-floating-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--am-muted);
    font-size: 12px;
    font-weight: 600;
}

.am-floating-card strong {
    display: block;
    font-size: 18px;
    letter-spacing: -0.035em;
}

.am-floating-card.one {
    left: 0;
    top: 72px;
}

.am-floating-card.two {
    right: 0;
    bottom: 96px;
}

/* Sections */

.am-section {
    padding: 82px 0;
}

.am-intro {
    max-width: 960px;
}

.am-intro h2,
.am-section-header h2,
.am-device-section h2,
.am-cta h2 {
    margin: 0;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.058em;
    font-weight: 700;
}

.am-intro p,
.am-section-header p,
.am-device-section p,
.am-cta p {
    max-width: 820px;
    margin: 22px 0 0;
    color: var(--am-soft);
    font-size: 20px;
    line-height: 1.48;
    letter-spacing: -0.02em;
}

.am-section-header {
    margin-bottom: 28px;
}

.am-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.am-feature-grid article {
    min-height: 250px;
    padding: 24px;
    border: 1px solid var(--am-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
}

.am-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 32px;
    border-radius: 14px;
    background: rgba(250, 35, 59, 0.10);
    color: var(--am-red);
    font-size: 24px;
    font-weight: 700;
}

.am-feature-grid h3 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -0.04em;
}

.am-feature-grid p {
    margin: 12px 0 0;
    color: var(--am-soft);
    font-size: 15px;
    line-height: 1.48;
}

/* Device */

.am-device-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 34px;
    padding: 54px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 84% 20%, rgba(0, 113, 227, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,0.86), rgba(235,245,255,0.84));
    border: 1px solid var(--am-border);
}

.am-device-card {
    display: grid;
    place-items: center;
}

.am-device-screen {
    width: 240px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border: 8px solid #1d1d1f;
    border-radius: 38px;
    background:
        radial-gradient(circle at 40% 26%, rgba(250, 35, 59, 0.88), transparent 24%),
        radial-gradient(circle at 70% 70%, rgba(0, 113, 227, 0.90), transparent 28%),
        #f5f5f7;
}

.am-mini-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: auto;
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 25%, rgba(250, 35, 59, 0.92), transparent 28%),
        radial-gradient(circle at 72% 74%, rgba(0, 113, 227, 0.88), transparent 30%),
        #ffffff;
}

.am-device-screen strong {
    margin-top: 20px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.am-device-screen span {
    margin-top: 4px;
    color: var(--am-soft);
    font-size: 13px;
}

/* Plans */
.am-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.am-plans article {
    padding: 24px;
    border: 1px solid var(--am-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
}

.am-plans article.featured {
    border-color: rgba(250, 35, 59, 0.38);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,245,247,0.95));
}

.am-plans span {
    color: var(--am-red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.am-plans h3 {
    margin: 14px 0 0;
    font-size: 46px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.am-plans p {
    min-height: 72px;
    margin: 14px 0;
    color: var(--am-soft);
    font-size: 15px;
    line-height: 1.45;
}

.am-plans strong {
    display: block;
    font-size: 17px;
    letter-spacing: -0.035em;
}

/* CTA */

.am-cta {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 88px 28px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 24% 20%, rgba(250, 35, 59, 0.18), transparent 28%),
        radial-gradient(circle at 76% 78%, rgba(0, 113, 227, 0.18), transparent 30%),
        #ffffff;
    border: 1px solid var(--am-border);
}

.am-cta p {
    margin-left: auto;
    margin-right: auto;
}

.am-cta .am-primary {
    margin-top: 30px;
}

/* Footer */

.am-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 36px 0 10px;
    color: var(--am-muted);
    font-size: 12px;
    border-top: 1px solid var(--am-border);
}

/* Responsive */

@media (max-width: 1080px) {
    .am-shell {
        grid-template-columns: 1fr;
    }

    .am-sidebar {
        position: relative;
        height: auto;
        min-height: auto;
        flex-direction: row;
        align-items: center;
        gap: 18px;
        padding: 14px 18px;
        border-right: none;
        border-bottom: 1px solid var(--am-border);
    }

    .am-brand {
        margin: 0;
    }

    .am-nav {
        display: flex;
        overflow-x: auto;
    }

    .am-sidebar-bottom {
        margin-left: auto;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        display: flex;
        align-items: center;
    }

    .am-hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .am-hero-visual {
        min-height: auto;
    }

    .am-floating-card {
        display: none;
    }

    .am-feature-grid,
    .am-plans {
        grid-template-columns: 1fr 1fr;
    }

    .am-device-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .am-main {
        padding: 18px 16px 32px;
    }

    .am-sidebar {
        align-items: flex-start;
        flex-direction: column;
    }

    .am-sidebar-bottom {
        width: 100%;
        margin-left: 0;
    }

    .am-signin,
    .am-open-app {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .am-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .am-account {
        display: none;
    }

    .am-hero h1 {
        font-size: 56px;
    }

    .am-hero-copy p {
        font-size: 18px;
    }

    .am-actions {
        width: 100%;
    }

    .am-primary,
    .am-secondary {
        width: 100%;
    }

    .am-feature-grid,
    .am-plans {
        grid-template-columns: 1fr;
    }

    .am-feature-grid article {
        min-height: auto;
    }

    .am-device-section {
        padding: 28px;
    }

    .am-footer {
        flex-direction: column;
    }
}

/* ===== HSMusic Landing Account Logo Fix ===== */

.am-account {
    width: auto;
    max-width: 210px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    overflow: hidden;
    border-radius: 12px;
}

.am-account img {
    display: block;
    width: auto;
    height: 28px;
    max-width: 180px;
    object-fit: contain;
}
@media (max-width: 700px) {
    .am-account {
        display: none;
    }
}

/* ===== HSMusic Landing Pricing Region Selector ===== */

.am-pricing-region {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -8px 0 20px;
    padding: 12px 14px;
    border: 1px solid var(--am-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.am-pricing-region span {
    color: var(--am-soft);
    font-size: 13px;
    font-weight: 600;
}

.am-pricing-region div {
    display: flex;
    gap: 8px;
}

.am-pricing-region a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--am-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.am-pricing-region a:hover {
    background: rgba(37, 99, 235, 0.14);
}

@media (max-width: 700px) {
    .am-pricing-region {
        align-items: flex-start;
        flex-direction: column;
    }
}