/* ============================================================================
   impliedtech — Material Design 3 · Android 16 Pixel Edition
   Palette derived from the logo: indigo → purple → #A5216F magenta → hot pink
   Single logo works on both light and dark themes.
   ============================================================================ */

/* ── DESIGN TOKENS ── */
:root {
    /* Primary — logo magenta #A5216F */
    --md-sys-color-primary:              #A5216F;
    --md-sys-color-on-primary:           #FFFFFF;
    --md-sys-color-primary-container:    #FFD8E9;
    --md-sys-color-on-primary-container: #3D0026;

    /* Secondary — muted plum */
    --md-sys-color-secondary:            #7A4E68;
    --md-sys-color-on-secondary:         #FFFFFF;
    --md-sys-color-secondary-container:  #F6E3EC;
    --md-sys-color-on-secondary-container: #2E1325;

    /* Tertiary — logo indigo */
    --md-sys-color-tertiary:             #3B2F9E;
    --md-sys-color-on-tertiary:          #FFFFFF;
    --md-sys-color-tertiary-container:   #E4E0FF;
    --md-sys-color-on-tertiary-container: #12006B;

    /* Error */
    --md-sys-color-error:                #B3261E;
    --md-sys-color-on-error:             #FFFFFF;
    --md-sys-color-error-container:      #F9DEDC;

    /* Surface */
    --md-sys-color-background:           #FFFBFC;
    --md-sys-color-on-background:        #1F1A1D;
    --md-sys-color-surface:              #FFFBFC;
    --md-sys-color-on-surface:           #1F1A1D;
    --md-sys-color-surface-variant:      #F2E7EC;
    --md-sys-color-on-surface-variant:   #52434B;

    /* Surface containers */
    --md-sys-color-surface-container-lowest:  #FFFFFF;
    --md-sys-color-surface-container-low:     #FDF6F9;
    --md-sys-color-surface-container:         #F8EEF2;
    --md-sys-color-surface-container-high:    #F2E8EC;
    --md-sys-color-surface-container-highest: #ECE2E6;

    /* Outline */
    --md-sys-color-outline:              #9C8791;
    --md-sys-color-outline-variant:      #E6D6DD;

    /* Inverse */
    --md-sys-color-inverse-surface:      #352F32;
    --md-sys-color-inverse-on-surface:   #FAEEF2;

    /* Elevation */
    --md-sys-elevation-1: 0 1px 2px rgba(60,10,40,.05), 0 1px 3px rgba(60,10,40,.04);
    --md-sys-elevation-2: 0 2px 6px rgba(60,10,40,.06), 0 1px 3px rgba(60,10,40,.04);
    --md-sys-elevation-3: 0 8px 20px rgba(60,10,40,.08), 0 2px 6px rgba(60,10,40,.05);
    --md-sys-elevation-4: 0 12px 28px rgba(60,10,40,.10), 0 3px 8px rgba(60,10,40,.06);

    /* Shape */
    --md-sys-shape-corner-extra-small: 4px;
    --md-sys-shape-corner-small:       8px;
    --md-sys-shape-corner-medium:      12px;
    --md-sys-shape-corner-large:       16px;
    --md-sys-shape-corner-extra-large: 20px;
    --md-sys-shape-corner-full:        9999px;

    /* Motion */
    --md-motion-short:    150ms;
    --md-motion-medium:   250ms;
    --md-motion-long:     400ms;
    --md-ease-standard:   cubic-bezier(0.2, 0, 0, 1);
    --md-ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
    --md-ease-decel:      cubic-bezier(0.05, 0.7, 0.1, 1);

    /* Brand — taken straight from the logo gradient */
    --c-brand-indigo: #231A6B;
    --c-brand-purple: #6A1F6E;
    --c-brand:        #A5216F;
    --c-brand-pink:   #EE2070;
    --brand-gradient: linear-gradient(135deg, #231A6B 0%, #6A1F6E 38%, #A5216F 68%, #EE2070 100%);
    --brand-text-gradient: linear-gradient(100deg, #3B2F9E 0%, #A5216F 55%, #E0185F 100%);
}

/* ── DARK / NIGHT MODE ── */
body.dark {
    --md-sys-color-primary:              #FFB0D3;
    --md-sys-color-on-primary:           #5C0039;
    --md-sys-color-primary-container:    #84154F;
    --md-sys-color-on-primary-container: #FFD8E9;
    --md-sys-color-secondary:            #E6BAD0;
    --md-sys-color-on-secondary:         #44263A;
    --md-sys-color-secondary-container:  #5C3C51;
    --md-sys-color-on-secondary-container: #FFD8EA;
    --md-sys-color-tertiary:             #C7BFFF;
    --md-sys-color-on-tertiary:          #2A1B7A;
    --md-sys-color-tertiary-container:   #41339A;
    --md-sys-color-on-tertiary-container: #E4E0FF;
    --md-sys-color-error-container:      #601410;
    --md-sys-color-background:           #161215;
    --md-sys-color-on-background:        #EBE0E4;
    --md-sys-color-surface:              #161215;
    --md-sys-color-on-surface:           #EBE0E4;
    --md-sys-color-surface-variant:      #2A2227;
    --md-sys-color-on-surface-variant:   #D2C2CA;
    --md-sys-color-surface-container-lowest:  #110D10;
    --md-sys-color-surface-container-low:     #1D181B;
    --md-sys-color-surface-container:         #211C1F;
    --md-sys-color-surface-container-high:    #2C262A;
    --md-sys-color-surface-container-highest: #373134;
    --md-sys-color-outline:              #9D8C94;
    --md-sys-color-outline-variant:      #3B3237;
    --md-sys-elevation-1: 0 1px 2px rgba(0,0,0,.4),  0 1px 3px rgba(0,0,0,.3);
    --md-sys-elevation-2: 0 2px 6px rgba(0,0,0,.4),  0 1px 3px rgba(0,0,0,.3);
    --md-sys-elevation-3: 0 8px 20px rgba(0,0,0,.45),0 2px 6px rgba(0,0,0,.32);
    --md-sys-elevation-4: 0 12px 28px rgba(0,0,0,.5),0 3px 8px rgba(0,0,0,.34);
    --brand-text-gradient: linear-gradient(100deg, #B1A6FF 0%, #FF86BC 55%, #FFA3C9 100%);
}

/* One surface system: every card shares the same tonal fill + hairline */
body {
    --sk-card:        color-mix(in srgb, var(--md-sys-color-primary) 3%, var(--md-sys-color-surface-container-low));
    --sk-line:        var(--md-sys-color-outline-variant);
    --sk-line-strong: var(--md-sys-color-outline);
}

/* ============================================================================
   GLOBAL RESETS
   ============================================================================ */

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

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    min-height: 100vh;
    font-family: 'Google Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition:
        background-color var(--md-motion-medium) var(--md-ease-standard),
        color            var(--md-motion-medium) var(--md-ease-standard);
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:hover, a:visited, a:active, a:focus { text-decoration: none; }

::selection      { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
::-moz-selection { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }

::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-corner-full); }
::-webkit-scrollbar-thumb:hover { background: var(--md-sys-color-outline); }
* { scrollbar-width: thin; scrollbar-color: var(--md-sys-color-outline-variant) transparent; }

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
    border-radius: var(--md-sys-shape-corner-extra-small);
}
*:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================================
   TOP APP BAR
   ============================================================================ */

.md3-top-app-bar {
    position: sticky; top: 0; z-index: 200;
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 92%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    transition:
        background   var(--md-motion-medium) var(--md-ease-standard),
        box-shadow   var(--md-motion-medium) var(--md-ease-standard),
        border-color var(--md-motion-medium) var(--md-ease-standard);
}
.md3-top-app-bar.scrolled {
    box-shadow: var(--md-sys-elevation-2);
    border-bottom-color: transparent;
    background: color-mix(in srgb, var(--md-sys-color-surface-container) 96%, transparent);
}

.md3-top-app-bar__inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0 16px; height: 64px;
    display: flex; align-items: center; gap: 8px;
}

.md3-top-app-bar__logo {
    display: flex; align-items: center; flex-shrink: 0;
    transition: opacity var(--md-motion-short) var(--md-ease-standard);
}
.md3-top-app-bar__logo:hover { opacity: 0.85; }
.md3-top-app-bar__logo-img { height: 40px; width: auto; object-fit: contain; }

/* Desktop nav */
.md3-nav-tabs { display: none; align-items: center; gap: 2px; flex: 1; justify-content: center; }
@media (min-width: 768px) { .md3-nav-tabs { display: flex; } }

.md3-nav-tab {
    position: relative;
    padding: 8px 16px;
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 14px; font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    transition:
        color      var(--md-motion-short) var(--md-ease-standard),
        background var(--md-motion-short) var(--md-ease-standard);
}
.md3-nav-tab::after {
    content: '';
    position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 3px;
    background: var(--md-sys-color-primary);
    border-radius: 3px 3px 0 0;
    transition: width var(--md-motion-medium) var(--md-ease-emphasized);
}
.md3-nav-tab:hover {
    color: var(--md-sys-color-on-surface);
    background: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
}
.md3-nav-tab--active, .md3-nav-tab.active { color: var(--md-sys-color-primary); font-weight: 600; }
.md3-nav-tab--active::after, .md3-nav-tab.active::after { width: calc(100% - 32px); }

.md3-top-app-bar__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

/* Scroll progress */
.md3-scroll-progress {
    position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; z-index: 2;
    background: var(--brand-gradient);
    transition: width 80ms linear;
}

/* ============================================================================
   ICON BUTTONS
   ============================================================================ */

.md3-icon-btn {
    position: relative;
    width: 40px; height: 40px;
    border-radius: var(--md-sys-shape-corner-full);
    border: none;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    transition:
        background var(--md-motion-short) var(--md-ease-standard),
        transform  var(--md-motion-short) var(--md-ease-emphasized);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.md3-icon-btn::before {
    content: '';
    position: absolute; inset: 0; border-radius: inherit;
    background: currentColor; opacity: 0;
    transition: opacity var(--md-motion-short) var(--md-ease-standard);
}
.md3-icon-btn:hover::before  { opacity: 0.08; }
.md3-icon-btn:focus::before  { opacity: 0.10; }
.md3-icon-btn:active         { transform: scale(0.94); }
.md3-icon-btn:active::before { opacity: 0.14; }

.md3-icon-btn--outlined {
    border: 1px solid var(--md-sys-color-outline-variant);
    transition:
        border-color var(--md-motion-short) var(--md-ease-standard),
        background   var(--md-motion-short) var(--md-ease-standard);
}
.md3-icon-btn--outlined:hover { border-color: var(--md-sys-color-outline); }
.md3-icon-btn .material-symbols-rounded { font-size: 20px; line-height: 1; position: relative; z-index: 1; }

/* ============================================================================
   BOTTOM NAVIGATION — floating pill, mobile only
   ============================================================================ */

.md3-bottom-nav {
    display: none;
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px; right: 16px;
    height: 68px;
    z-index: 300;
    align-items: center;
    justify-content: space-around;
    border-radius: 999px;
    isolation: isolate;
}
/* Glass lives on ::before so it never intercepts taps */
.md3-bottom-nav::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: color-mix(in srgb, var(--md-sys-color-surface-container-lowest) 62%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
    box-shadow: 0 8px 32px rgba(60,10,40,.14), 0 2px 8px rgba(60,10,40,.07);
    pointer-events: none;
    z-index: -1;
}
body.dark .md3-bottom-nav::before {
    background: rgba(33, 28, 31, 0.78);
    box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.24);
}
@media (max-width: 767px) { .md3-bottom-nav { display: flex; } }

.md3-bottom-nav__tab {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; padding: 8px 4px;
    border: none; background: transparent;
    cursor: pointer;
    color: var(--md-sys-color-on-surface-variant);
    font-family: inherit; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--md-motion-short) var(--md-ease-standard);
    border-radius: 999px;
    position: relative;
}
.md3-bottom-nav__indicator {
    position: relative;
    width: 52px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 999px;
    transition: background var(--md-motion-medium) var(--md-ease-emphasized),
                transform  var(--md-motion-short) var(--md-ease-emphasized);
}
.md3-bottom-nav__indicator::before {
    content: '';
    position: absolute; inset: 0; border-radius: inherit;
    background: var(--md-sys-color-on-surface); opacity: 0;
    transition: opacity var(--md-motion-short) var(--md-ease-standard);
}
.md3-bottom-nav__tab:hover .md3-bottom-nav__indicator::before { opacity: 0.08; }
.md3-bottom-nav__tab:active .md3-bottom-nav__indicator { transform: scale(0.88); }
.md3-bottom-nav__indicator .material-symbols-rounded { font-size: 22px; position: relative; z-index: 1; }

.md3-bottom-nav__label { font-size: 10px; font-weight: 600; line-height: 1; white-space: nowrap; letter-spacing: 0.01em; }

.md3-bottom-nav__tab.active,
.md3-bottom-nav__tab[aria-current="page"],
.md3-bottom-nav__tab--more.open { color: var(--md-sys-color-primary); }
.md3-bottom-nav__tab.active .md3-bottom-nav__indicator,
.md3-bottom-nav__tab[aria-current="page"] .md3-bottom-nav__indicator,
.md3-bottom-nav__tab--more.open .md3-bottom-nav__indicator {
    background: var(--md-sys-color-primary-container);
}
.md3-bottom-nav__tab.active .md3-bottom-nav__label,
.md3-bottom-nav__tab[aria-current="page"] .md3-bottom-nav__label { font-weight: 700; }

/* Scrim */
.md3-bottom-nav__scrim {
    display: none;
    position: fixed; inset: 0; z-index: 398;
    background: rgba(20,5,15,.40);
    opacity: 0; pointer-events: none;
    transition: opacity var(--md-motion-medium) var(--md-ease-standard);
}
@media (max-width: 767px) { .md3-bottom-nav__scrim { display: block; } }
.md3-bottom-nav__scrim.active { opacity: 1; pointer-events: auto; }

/* Drop-up panel */
.md3-bottom-nav__more-panel {
    display: none;
    position: fixed;
    left: 16px; right: 16px;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    z-index: 399;
    transform: translateY(20px);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-lowest) 86%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(60,10,40,.16), 0 4px 12px rgba(60,10,40,.07);
    transition: transform var(--md-motion-medium) var(--md-ease-decel),
                opacity  var(--md-motion-medium) var(--md-ease-standard);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}
body.dark .md3-bottom-nav__more-panel {
    background: rgba(33, 28, 31, 0.92);
    box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
@media (max-width: 767px) { .md3-bottom-nav__more-panel { display: block; } }
.md3-bottom-nav__more-panel.active { transform: translateY(0); opacity: 1; pointer-events: auto; }

.md3-bottom-nav__more-handle {
    width: 32px; height: 4px;
    background: var(--md-sys-color-outline-variant);
    border-radius: 2px;
    margin: 12px auto 2px;
}
.md3-bottom-nav__more-header { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px 4px 20px; }
.md3-bottom-nav__more-title  { font-size: 15px; font-weight: 700; color: var(--md-sys-color-on-surface); }

.md3-bottom-nav__more-list {
    list-style: none;
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 4px 10px 14px; gap: 2px;
}
.md3-bottom-nav__more-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 14px; font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    position: relative; overflow: hidden;
    transition: background var(--md-motion-short) var(--md-ease-standard),
                color      var(--md-motion-short) var(--md-ease-standard);
    -webkit-tap-highlight-color: transparent;
}
.md3-bottom-nav__more-item::before {
    content: '';
    position: absolute; inset: 0; border-radius: inherit;
    background: currentColor; opacity: 0;
    transition: opacity var(--md-motion-short) var(--md-ease-standard);
}
.md3-bottom-nav__more-item:hover { background: color-mix(in srgb, var(--md-sys-color-primary) 6%, transparent); }
.md3-bottom-nav__more-item:active::before { opacity: 0.1; }
.md3-bottom-nav__more-item .material-symbols-rounded {
    font-size: 20px; color: var(--md-sys-color-primary);
    position: relative; z-index: 1; flex-shrink: 0;
}
.md3-bottom-nav__more-item span:last-child { position: relative; z-index: 1; }

@media (max-width: 767px) {
    .md3-main   { padding-bottom: 108px; }
    .md3-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.md3-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 24px;
    border-radius: var(--md-sys-shape-corner-full);
    border: none;
    font-size: 14px; font-weight: 500;
    cursor: pointer; overflow: hidden; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
    transition:
        background var(--md-motion-short) var(--md-ease-standard),
        box-shadow var(--md-motion-medium) var(--md-ease-emphasized),
        transform  var(--md-motion-short) var(--md-ease-emphasized);
}
.md3-btn::before {
    content: '';
    position: absolute; inset: 0; border-radius: inherit;
    background: currentColor; opacity: 0;
    transition: opacity var(--md-motion-short) var(--md-ease-standard);
}
.md3-btn:hover::before  { opacity: 0.08; }
.md3-btn:active         { transform: scale(0.97); }
.md3-btn:active::before { opacity: 0.14; }
.md3-btn:disabled       { opacity: .6; cursor: default; }

.md3-btn--filled       { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.md3-btn--filled:hover { box-shadow: var(--md-sys-elevation-1); }

.md3-btn--tonal-primary       { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.md3-btn--tonal-primary:hover { box-shadow: var(--md-sys-elevation-1); }

.md3-btn--outlined {
    background: transparent; color: var(--md-sys-color-primary);
    border: 1px solid var(--md-sys-color-outline);
}
.md3-btn--outlined:hover { border-color: var(--md-sys-color-primary); }

.md3-btn--large { padding: 14px 32px; font-size: 15px; }
.md3-btn--large .material-symbols-rounded { font-size: 20px; }

/* ============================================================================
   CHIPS
   ============================================================================ */

.md3-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    border-radius: var(--md-sys-shape-corner-small);
    font-size: 13px; font-weight: 500;
    border: 1px solid var(--md-sys-color-outline-variant);
    transition: background var(--md-motion-short) var(--md-ease-standard);
}
.md3-chip--assist { background: transparent; color: var(--md-sys-color-on-surface-variant); }
.md3-chip--assist:hover { background: var(--md-sys-color-surface-container); }
.md3-chip__icon  { font-size: 16px; color: var(--md-sys-color-primary); }

.gradient-text { color: var(--md-sys-color-on-background); }

/* ============================================================================
   DESKTOP HERO (hidden below 900px)
   ============================================================================ */

.md3-desk-hero { display: none; }

@media (min-width: 900px) {
    .md3-desk-hero {
        display: block; position: relative; isolation: isolate; overflow: hidden;
        padding: 80px 32px 40px;
    }
    .md3-desk-hero::before {
        content: ''; position: absolute; inset: 0; z-index: -2;
        background:
            radial-gradient(55% 80% at 88% 0%,  color-mix(in srgb, var(--c-brand-pink) 22%, transparent), transparent 70%),
            radial-gradient(45% 60% at 0% 100%, color-mix(in srgb, var(--c-brand-indigo) 16%, transparent), transparent 70%);
        -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
                mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
    }
    .md3-desk-hero::after {
        content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55;
        background-image:
            linear-gradient(var(--md-sys-color-outline-variant) 1px, transparent 1px),
            linear-gradient(90deg, var(--md-sys-color-outline-variant) 1px, transparent 1px);
        background-size: 48px 48px;
        -webkit-mask-image: radial-gradient(ellipse at 75% 20%, #000, transparent 65%);
                mask-image: radial-gradient(ellipse at 75% 20%, #000, transparent 65%);
    }
    .md3-desk-hero__inner {
        max-width: 1280px; margin: 0 auto;
        display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
    }
    .md3-desk-hero__title {
        font-size: clamp(44px, 5.2vw, 76px); font-weight: 600; line-height: 1.04;
        letter-spacing: -0.035em; margin: 20px 0 20px;
        color: var(--md-sys-color-on-background);
    }
    .md3-desk-hero__title em {
        font-style: normal;
        background: var(--brand-text-gradient);
        -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .md3-desk-hero__lead {
        font-size: 18px; line-height: 1.6; max-width: 540px;
        color: var(--md-sys-color-on-surface-variant); margin-bottom: 32px;
    }
    .md3-desk-hero__cta   { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
    .md3-desk-hero__stats { display: flex; gap: 12px; flex-wrap: wrap; }
    .md3-desk-stat {
        padding: 12px 20px; border-radius: var(--md-sys-shape-corner-large);
        background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 80%, transparent);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        border: 1px solid var(--md-sys-color-outline-variant);
    }
    .md3-desk-stat strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--md-sys-color-on-surface); }
    .md3-desk-stat span   { font-size: 12px; color: var(--md-sys-color-on-surface-variant); }

    .md3-desk-hero__art { display: flex; justify-content: center; }
    .md3-desk-hero__art svg {
        width: min(100%, 380px); height: auto;
        filter: drop-shadow(0 24px 40px color-mix(in srgb, var(--c-brand) 28%, transparent));
        animation: markFloat 6s ease-in-out infinite;
    }
    @keyframes markFloat { 50% { transform: translateY(-8px); } }

    .md3-image-carousel-section { padding-top: 24px; }

    .md3-section-header__accent {
        display: block; width: 5px; height: 30px; border-radius: 4px; margin-right: 14px;
        background: linear-gradient(180deg, var(--c-brand-indigo), var(--c-brand), var(--c-brand-pink));
    }

    .md3-feature-card { border: 1px solid var(--md-sys-color-outline-variant); }
    .md3-feature-card__body { justify-content: space-between; align-items: center; }
    .md3-feature-card__eyebrow {
        display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em;
        color: var(--md-sys-color-on-surface-variant);
    }
    .md3-feature-card__icon-box { box-shadow: 0 6px 16px rgba(60,10,40,.20); }

    .md3-news-two-col { gap: 24px; }
    .md3-news-card { border-top-width: 3px; border-top-color: var(--md-sys-color-primary); }
    .md3-news-card:hover { transform: translateY(-3px); box-shadow: var(--md-sys-elevation-3); }
    .md3-news-card { transition: transform var(--md-motion-medium) var(--md-ease-emphasized), box-shadow var(--md-motion-medium) var(--md-ease-emphasized); }

    .md3-search-bar__input { padding: 18px 0; font-size: 16px; }
}

/* ============================================================================
   IMAGE CAROUSEL
   ============================================================================ */

.md3-image-carousel-section { padding: 64px 24px 48px; max-width: 1440px; margin: 0 auto; }
@media (max-width: 768px) { .md3-image-carousel-section { padding: 48px 16px 36px; } }

.md3-image-carousel-container {
    position: relative; width: 100%; overflow: hidden;
    border-radius: var(--md-sys-shape-corner-extra-large);
    touch-action: pan-y pinch-zoom;
    user-select: none; -webkit-user-select: none;
}
.md3-image-carousel-track { display: flex; gap: 12px; transition: transform var(--md-motion-long) var(--md-ease-emphasized); }

.md3-carousel-slide { flex: 0 0 100%; position: relative; overflow: hidden; border-radius: var(--md-sys-shape-corner-extra-large); }
@media (min-width: 769px) { .md3-carousel-slide { flex: 0 0 calc((100% - 24px) / 3); } }
.md3-carousel-slide img { width: 100%; height: auto; display: block; }
.md3-carousel-slide:hover img { transform: scale(1.015); transition: transform var(--md-motion-long) var(--md-ease-emphasized); }

.md3-carousel-control {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10;
    background: color-mix(in srgb, var(--md-sys-color-surface-container) 88%, transparent);
    backdrop-filter: blur(12px);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-full);
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--md-sys-color-on-surface);
    transition: background var(--md-motion-short) var(--md-ease-standard), box-shadow var(--md-motion-short) var(--md-ease-standard);
}
.md3-carousel-control--prev { left: 16px; }
.md3-carousel-control--next { right: 16px; }
.md3-carousel-control:hover { background: var(--md-sys-color-surface-container); box-shadow: var(--md-sys-elevation-2); }
.md3-carousel-control:active { transform: translateY(-50%) scale(0.95); }
.md3-carousel-control .material-symbols-rounded { font-size: 24px; }
@media (max-width: 768px) { .md3-carousel-control { display: none; } }

.md3-carousel-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.md3-carousel-indicator {
    width: 8px; height: 8px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-outline-variant); cursor: pointer;
    transition: background var(--md-motion-short) var(--md-ease-standard), width var(--md-motion-medium) var(--md-ease-emphasized);
}
.md3-carousel-indicator.active { width: 24px; background: var(--md-sys-color-primary); }
.md3-carousel-indicator:hover  { background: var(--md-sys-color-on-surface-variant); }

/* ============================================================================
   SEARCH BAR
   ============================================================================ */

.md3-search-section { padding: 0 24px 48px; }
@media (max-width: 480px) { .md3-search-section { padding: 0 16px 36px; } }
.md3-search-section__inner { max-width: 896px; margin: 0 auto; position: relative; }
.md3-search-bar-wrap { position: relative; width: 100%; }

.md3-search-bar {
    display: flex; align-items: center;
    background: var(--md-sys-color-surface-container-low);
    border-radius: var(--md-sys-shape-corner-extra-large);
    border: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: var(--md-sys-elevation-1);
    overflow: hidden;
    transition: border-color var(--md-motion-short) var(--md-ease-standard), box-shadow var(--md-motion-medium) var(--md-ease-emphasized);
}
.md3-search-bar:focus-within {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--md-sys-color-primary) 16%, transparent);
}
.md3-search-bar__icon  { padding: 0 16px; color: var(--md-sys-color-on-surface-variant); font-size: 20px; flex-shrink: 0; }
.md3-search-bar__input {
    flex: 1; padding: 14px 0;
    background: transparent; border: none; outline: none;
    font-size: 15px; font-weight: 400;
    color: var(--md-sys-color-on-surface); font-family: inherit;
}
.md3-search-bar__input::placeholder { color: var(--md-sys-color-on-surface-variant); }
.md3-search-bar__btn { margin: 6px; font-weight: 600; }

/* Live dropdown */
.md3-search-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 500;
    background: var(--md-sys-color-surface-container-low);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-extra-large);
    box-shadow: var(--md-sys-elevation-3); overflow: hidden;
    max-height: 400px; display: flex; flex-direction: column;
    animation: dropIn 160ms var(--md-ease-decel) both;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px) scale(0.99); } to { opacity: 1; transform: none; } }
.md3-search-dropdown.hidden { display: none; }

#searchResultsContent {
    overflow-y: auto; overflow-x: hidden; flex: 1;
    scrollbar-width: thin; scrollbar-color: var(--md-sys-color-outline) transparent;
}
#searchResultsContent::-webkit-scrollbar { width: 4px; }
#searchResultsContent::-webkit-scrollbar-thumb { background: var(--md-sys-color-outline); border-radius: 9999px; }

.md3-search-section-header {
    padding: 8px 16px 5px; font-size: 12px; font-weight: 700;
    color: var(--md-sys-color-on-surface-variant);
    background: var(--md-sys-color-surface-container-low);
    position: sticky; top: 0; z-index: 1;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    user-select: none;
}
.md3-search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    cursor: pointer; color: inherit;
    transition: background var(--md-motion-short) var(--md-ease-standard);
    -webkit-tap-highlight-color: transparent;
}
.md3-search-result-item:last-child { border-bottom: none; }
.md3-search-result-item:hover,
.md3-search-result-item:focus-visible { background: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent); outline: none; }
.md3-search-result-item--highlighted { background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent); }

.md3-search-result-item__icon {
    flex-shrink: 0; width: 40px; height: 40px;
    border-radius: var(--md-sys-shape-corner-medium);
    background: var(--md-sys-color-primary-container);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.md3-search-result-item__icon img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.md3-search-result-item__icon .material-symbols-rounded { font-size: 20px; color: var(--md-sys-color-on-primary-container); }

.md3-search-result-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.md3-search-result-item__name {
    font-size: 14px; font-weight: 600; color: var(--md-sys-color-on-surface);
    margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.md3-search-result-item:hover .md3-search-result-item__name { color: var(--md-sys-color-primary); }
.md3-search-result-item__sub { font-size: 12px; color: var(--md-sys-color-on-surface-variant); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md3-search-result-item__badge {
    flex-shrink: 0; font-size: 10px; font-weight: 700; padding: 3px 8px;
    border-radius: 9999px;
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.md3-search-empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 8px; padding: 36px 24px;
    text-align: center; color: var(--md-sys-color-on-surface-variant);
}
.md3-search-empty .material-symbols-rounded { font-size: 36px; color: var(--md-sys-color-outline); opacity: 0.7; }
.md3-search-empty__title { font-size: 14px; font-weight: 600; color: var(--md-sys-color-on-surface); margin: 0; }
.md3-search-empty__sub   { font-size: 13px; margin: 0; }

.md3-search-footer {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 16px; border-top: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container-low);
    font-size: 13px; font-weight: 600; color: var(--md-sys-color-primary);
    cursor: pointer;
    transition: background var(--md-motion-short) var(--md-ease-standard);
    position: sticky; bottom: 0; z-index: 1;
}
.md3-search-footer:hover { background: color-mix(in srgb, var(--md-sys-color-primary) 8%, var(--md-sys-color-surface-container-low)); }
.md3-search-footer .material-symbols-rounded { font-size: 18px; }

.md3-search-loading {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--md-sys-color-surface-container-low);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: 20px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    z-index: 100; font-size: 14px; color: var(--md-sys-color-on-surface-variant);
}
.md3-search-loading.hidden { display: none; }

@media (max-width: 480px) {
    .md3-search-dropdown { max-height: 60vh; border-radius: var(--md-sys-shape-corner-large); }
    .md3-search-result-item { padding: 10px 14px; gap: 10px; }
    .md3-search-result-item__icon { width: 36px; height: 36px; }
}

/* ============================================================================
   FEATURE CARDS — one tonal magenta treatment for all four
   ============================================================================ */

.md3-cards-section { padding: 0 24px 64px; }
@media (max-width: 480px) { .md3-cards-section { padding: 0 16px 36px; } }
.md3-cards-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 1024px) { .md3-cards-grid { grid-template-columns: repeat(4, 1fr); } }

.md3-feature-card {
    position: relative;
    border-radius: var(--md-sys-shape-corner-extra-large);
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    height: clamp(170px, 19vw, 250px);
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--md-motion-medium) var(--md-ease-emphasized), box-shadow var(--md-motion-medium) var(--md-ease-emphasized);
}
.md3-feature-card:hover { transform: translateY(-4px); box-shadow: var(--md-sys-elevation-3); }

.md3-feature-card__bg {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--md-sys-color-primary) 20%, var(--md-sys-color-surface-container-low)),
        color-mix(in srgb, var(--md-sys-color-primary) 5%,  var(--md-sys-color-surface-container-low)));
}
.md3-feature-card::before, .md3-feature-card::after, .md3-feature-card__orb { display: none; }

.md3-feature-card__watermark {
    position: absolute; z-index: 1; pointer-events: none;
    right: -14px; bottom: -18px;
    font-size: clamp(96px, 11vw, 148px);
    line-height: 1;
    color: color-mix(in srgb, var(--md-sys-color-primary) 14%, transparent);
    transition: transform var(--md-motion-medium) var(--md-ease-emphasized);
}
.md3-feature-card:hover .md3-feature-card__watermark { transform: scale(1.06) rotate(-2deg); }

.md3-feature-card__body {
    position: relative; z-index: 2;
    display: flex; justify-content: flex-end; align-items: flex-start;
    padding: 16px 16px 0;
}
@media (min-width: 640px) { .md3-feature-card__body { padding: 20px 20px 0; } }

.md3-feature-card__eyebrow { display: none; }

.md3-feature-card__arrow {
    font-size: 18px; color: var(--md-sys-color-on-surface-variant);
    transition: transform var(--md-motion-medium) var(--md-ease-emphasized), color var(--md-motion-short);
}
.md3-feature-card:hover .md3-feature-card__arrow { transform: translate(3px,-3px); color: var(--md-sys-color-on-surface); }

.md3-feature-card__footer { position: relative; z-index: 2; padding: 0 16px 18px; }
@media (min-width: 640px) { .md3-feature-card__footer { padding: 0 20px 22px; } }

.md3-feature-card__icon-box {
    width: 40px; height: 40px;
    border-radius: var(--md-sys-shape-corner-medium);
    background: var(--md-sys-color-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
@media (min-width: 640px) { .md3-feature-card__icon-box { width: 44px; height: 44px; } }
.md3-feature-card__icon-box .material-symbols-rounded { font-size: 20px; color: var(--md-sys-color-on-primary); }
@media (min-width: 640px) { .md3-feature-card__icon-box .material-symbols-rounded { font-size: 22px; } }

.md3-feature-card__title { font-size: clamp(19px,2.6vw,28px); font-weight: 600; color: var(--md-sys-color-on-surface); margin: 0 0 4px; line-height: 1.15; letter-spacing: -0.01em; }
.md3-feature-card__desc  { font-size: clamp(11px,1.1vw,13px); color: var(--md-sys-color-on-surface-variant); margin: 0; display: none; }
@media (min-width: 640px) { .md3-feature-card__desc { display: block; } }

.md3-feature-card__lines, .md3-feature-card__dots,
.md3-feature-card__grid-lines, .md3-feature-card__pulse-dots { display: none; }

@media (max-width: 360px) {
    .md3-cards-grid { gap: 8px; }
    .md3-feature-card { height: clamp(130px,30vw,170px); }
    .md3-feature-card__title { font-size: 16px; }
    .md3-feature-card__watermark { font-size: 84px; right: -10px; bottom: -14px; }
}

/* ============================================================================
   MARQUEE
   ============================================================================ */

.md3-marquee { padding: 0 0 56px; overflow: hidden; }
.md3-marquee__label {
    text-align: center; margin-bottom: 18px;
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--md-sys-color-on-surface-variant);
}
.md3-marquee__viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.md3-marquee__track { display: flex; gap: 12px; width: max-content; animation: marqueeScroll 38s linear infinite; }
.md3-marquee__viewport:hover .md3-marquee__track { animation-play-state: paused; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }
.md3-marquee__item {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 10px 22px; border-radius: 999px;
    font-size: 14px; font-weight: 700; color: var(--md-sys-color-on-surface-variant);
    background: var(--sk-card);
    border: 1px solid var(--sk-line);
}
.md3-marquee__item .material-symbols-rounded { font-size: 18px; color: var(--md-sys-color-primary); }

/* ============================================================================
   SECTION HEADERS & DIVIDERS
   ============================================================================ */

.md3-section-header { margin-bottom: 32px; }
.md3-section-header--with-nav { display: flex; align-items: flex-start; justify-content: space-between; }
.md3-section-header__label { display: flex; align-items: center; margin-bottom: 8px; }
.md3-section-header__accent { display: none; }
.md3-section-header__title { font-size: clamp(24px,3.5vw,36px); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.md3-section-header__sub   { font-size: 15px; color: var(--md-sys-color-on-surface-variant); margin: 0; }

.section-divider, .md3-section-divider {
    max-width: 1280px; margin: 0 auto 56px;
    height: 1px;
    background: var(--md-sys-color-outline-variant);
}
.md3-section-cta { margin-top: 36px; text-align: center; }

/* ============================================================================
   CAROUSEL SECTIONS
   ============================================================================ */

.md3-carousel-section { padding: 64px 24px; }
@media (max-width: 480px) { .md3-carousel-section { padding: 36px 16px; } }
.md3-carousel-section__inner { max-width: 1280px; margin: 0 auto; }

.md3-carousel-track-wrap { overflow: visible; padding: 4px 0; clip-path: inset(-8px 0px); }
.md3-carousel-track {
    display: flex; gap: 16px; padding: 4px 0 12px;
    scroll-behavior: smooth; scroll-snap-type: x mandatory;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    cursor: grab;
}
.md3-carousel-track:active { cursor: grabbing; }
.md3-carousel-track::-webkit-scrollbar { display: none; }

.new-carousel-item, .soc-carousel-item, .blog-carousel-item {
    flex: 0 0 auto; scroll-snap-align: start; scroll-snap-stop: always; flex-shrink: 0; min-width: 0;
}
.new-carousel-item, .soc-carousel-item { width: calc(50% - 8px); }
@media (min-width: 640px)  { .new-carousel-item, .soc-carousel-item { width: calc(33.333% - 11px); } }
@media (min-width: 768px)  { .new-carousel-item, .soc-carousel-item { width: calc(25% - 12px); } }
@media (min-width: 1024px) { .new-carousel-item, .soc-carousel-item { width: calc(16.666% - 13px); } }

.md3-carousel-nav  { display: flex; gap: 8px; }
.md3-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }

.new-carousel-dot, .soc-carousel-dot, .blog-carousel-dot, .carousel-dot {
    width: 8px; height: 8px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-surface-container-highest);
    border: none; cursor: pointer; padding: 0;
    transition:
        width         var(--md-motion-medium) var(--md-ease-emphasized),
        background    var(--md-motion-short)  var(--md-ease-standard),
        border-radius var(--md-motion-medium) var(--md-ease-emphasized);
}
.new-carousel-dot.active, .soc-carousel-dot.active,
.blog-carousel-dot.active, .carousel-dot.active {
    width: 24px; border-radius: var(--md-sys-shape-corner-small);
    background: var(--md-sys-color-primary);
}
.new-carousel-dot:hover, .soc-carousel-dot:hover,
.blog-carousel-dot:hover, .carousel-dot:hover { background: var(--md-sys-color-outline); }

/* ============================================================================
   CARD COMPONENTS
   ============================================================================ */

.new-phone-card, .soc-card, .blog-card, .blog-grid-card, .featured-soc-card, .brand-tile {
    background: var(--sk-card);
    border-radius: var(--md-sys-shape-corner-extra-large);
    border: 1px solid var(--sk-line);
    overflow: hidden; position: relative;
    transition:
        transform    var(--md-motion-medium) var(--md-ease-emphasized),
        box-shadow   var(--md-motion-medium) var(--md-ease-emphasized),
        border-color var(--md-motion-short) var(--md-ease-standard);
    cursor: pointer;
}

/* MD3 state layer for press feedback */
.new-phone-card::before, .soc-card::before,
.blog-card::before, .blog-grid-card::before {
    content: '';
    position: absolute; inset: 0; z-index: 2;
    border-radius: inherit;
    background: var(--md-sys-color-primary);
    opacity: 0; pointer-events: none;
    transition: opacity var(--md-motion-short) var(--md-ease-standard);
}
.new-phone-card:active::before, .soc-card:active::before,
.blog-card:active::before, .blog-grid-card:active::before { opacity: 0.08; }

.new-phone-card:hover, .blog-card:hover, .blog-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-sys-elevation-3);
    border-color: transparent;
}
.soc-card:hover, .featured-soc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-sys-elevation-2);
    border-color: var(--md-sys-color-primary);
}

/* Phone cards */
.new-phone-card { display: flex; flex-direction: column; height: 100%; }
.new-phone-card img {
    object-fit: contain; width: 100%; height: 140px;
    filter: drop-shadow(0 2px 6px rgba(60,10,40,.10));
    padding: 16px;
    background: linear-gradient(to bottom, transparent 0%, var(--md-sys-color-surface-container) 100%);
    transition: transform var(--md-motion-medium) var(--md-ease-emphasized);
}
@media (max-width: 640px) { .new-phone-card img { height: 116px; } }
.new-phone-card:hover img { transform: scale(1.04) translateY(-3px); }

.new-phone-name, .new-phone-card h3 {
    font-size: 13px; font-weight: 700;
    color: var(--md-sys-color-on-surface);
    line-height: 1.3; padding: 0 12px;
    transition: color var(--md-motion-short) var(--md-ease-standard);
}
.new-phone-card:hover .new-phone-name, .new-phone-card:hover h3 { color: var(--md-sys-color-primary); }
.new-phone-specs, .new-phone-card p { font-size: 11px; color: var(--md-sys-color-on-surface-variant); padding: 0 12px; }

.new-badge {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    font-size: 9px; font-weight: 800;
    padding: 3px 8px; border-radius: var(--md-sys-shape-corner-small);
}
.new-category-badge {
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 9px; padding: 3px 8px;
    border-radius: var(--md-sys-shape-corner-small); font-weight: 700;
}
.new-price-badge {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    font-size: 12px; padding: 5px 12px;
    border-radius: var(--md-sys-shape-corner-medium); font-weight: 800;
}

/* SoC cards */
.soc-card { padding: 16px 12px; text-align: center; display: flex; flex-direction: column; height: 100%; }

.soc-icon {
    width: 48px; height: 48px;
    background: var(--md-sys-color-primary-container);
    border-radius: var(--md-sys-shape-corner-large);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; flex-shrink: 0;
    transition:
        transform     var(--md-motion-medium) var(--md-ease-emphasized),
        border-radius var(--md-motion-medium) var(--md-ease-emphasized),
        background    var(--md-motion-short)  var(--md-ease-standard);
}
.soc-card:hover .soc-icon { transform: scale(1.08); border-radius: var(--md-sys-shape-corner-full); background: var(--md-sys-color-primary); }
.soc-icon .material-symbols-rounded { font-size: 22px; color: var(--md-sys-color-on-primary-container); }
.soc-card:hover .soc-icon .material-symbols-rounded { color: var(--md-sys-color-on-primary); }

.soc-card h3, .soc-card__name {
    font-size: 13px; font-weight: 700;
    color: var(--md-sys-color-on-surface); margin: 0 0 8px; line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color var(--md-motion-short) var(--md-ease-standard);
}
.soc-card:hover h3, .soc-card:hover .soc-card__name { color: var(--md-sys-color-primary); }
.soc-card p, .soc-card__spec {
    font-size: 11px; color: var(--md-sys-color-on-surface-variant); margin: 0 0 3px;
    display: flex; align-items: center; justify-content: center; gap: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.soc-card__spec-icon { font-size: 12px !important; color: var(--md-sys-color-primary); flex-shrink: 0; }
.soc-card__score-row {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    transition: border-color var(--md-motion-short);
}
.soc-card:hover .soc-card__score-row { border-top-color: var(--md-sys-color-primary); }
.soc-card__score-icon { font-size: 13px !important; color: var(--md-sys-color-primary); }
.soc-card__score { font-size: 12px; font-weight: 800; color: var(--md-sys-color-on-surface); letter-spacing: -0.3px; }

.soc-icon-box {
    width: 56px; height: 56px;
    background: var(--md-sys-color-primary-container);
    border-radius: var(--md-sys-shape-corner-large);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    transition: transform var(--md-motion-medium) var(--md-ease-emphasized), background var(--md-motion-short) var(--md-ease-standard);
}
.featured-soc-card { padding: 20px; }
.featured-soc-card:hover .soc-icon-box { transform: scale(1.08); background: var(--md-sys-color-primary); }
.featured-soc-card:hover .soc-icon-box .material-symbols-rounded { color: var(--md-sys-color-on-primary); }

/* Blog cards */
.blog-grid-card { display: flex; flex-direction: column; height: 100%; }
.blog-grid-image { width: 100%; height: 180px; object-fit: cover; transition: transform var(--md-motion-long) var(--md-ease-emphasized); }
.blog-grid-card:hover .blog-grid-image { transform: scale(1.04); }
.blog-grid-content { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-grid-badge {
    display: inline-flex; align-items: center; padding: 4px 10px;
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    border-radius: var(--md-sys-shape-corner-extra-small);
    font-size: 10px; font-weight: 700;
    margin-bottom: 10px; width: fit-content;
}
.blog-grid-title {
    font-size: 1.05rem; font-weight: 700; color: var(--md-sys-color-on-surface);
    line-height: 1.4; margin: 0 0 8px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-grid-date { color: var(--md-sys-color-on-surface-variant); font-size: 12px; font-weight: 500; margin-top: auto; display: flex; align-items: center; gap: 6px; }
.blog-grid-date::before { content: ''; width: 3px; height: 3px; background: var(--md-sys-color-primary); border-radius: 50%; }

.blog-card { display: flex; flex-direction: column; height: 100%; }
.blog-image { width: 100%; height: 160px; object-fit: cover; transition: transform var(--md-motion-long) var(--md-ease-emphasized); }
.blog-card:hover .blog-image { transform: scale(1.04); }

/* ============================================================================
   BRANDS SECTION
   ============================================================================ */

.md3-brands-section { padding: 72px 24px; position: relative; }
@media (max-width: 480px) { .md3-brands-section { padding: 36px 16px; } }
.md3-brands-section__inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 10; }
.md3-brands-section__blobs, .md3-footer__blobs, .md3-blob { display: none; }

.md3-brands-section__header { text-align: center; margin-bottom: 40px; }
.md3-brands-section__title { font-size: clamp(26px,4.5vw,44px); font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 8px; }
.md3-brands-section__sub   { font-size: 14px; color: var(--md-sys-color-on-surface-variant); }

.md3-brand-pills-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 180px; }

.brand-pill {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px;
    background: var(--sk-card);
    border: 1px solid var(--sk-line);
    border-radius: var(--md-sys-shape-corner-full);
    font-weight: 600; font-size: 14px;
    color: var(--md-sys-color-on-surface);
    cursor: pointer; white-space: nowrap;
    position: relative; overflow: hidden;
    transition:
        background   var(--md-motion-short) var(--md-ease-standard),
        border-color var(--md-motion-short) var(--md-ease-standard),
        color        var(--md-motion-short) var(--md-ease-standard),
        transform    var(--md-motion-short) var(--md-ease-emphasized);
    animation: pillFadeIn 0.3s var(--md-ease-decel) backwards;
}
.brand-pill:hover {
    background: var(--md-sys-color-primary-container);
    border-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary-container);
    transform: translateY(-2px);
}
.brand-pill.active {
    background: var(--md-sys-color-secondary-container);
    border-color: var(--md-sys-color-secondary);
    color: var(--md-sys-color-on-secondary-container); font-weight: 700;
}
@keyframes pillFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.brand-pill:nth-child(1)  { animation-delay: .04s; }
.brand-pill:nth-child(2)  { animation-delay: .08s; }
.brand-pill:nth-child(3)  { animation-delay: .12s; }
.brand-pill:nth-child(4)  { animation-delay: .16s; }
.brand-pill:nth-child(5)  { animation-delay: .20s; }
.brand-pill:nth-child(6)  { animation-delay: .24s; }
.brand-pill:nth-child(7)  { animation-delay: .28s; }
.brand-pill:nth-child(8)  { animation-delay: .32s; }
.brand-pill:nth-child(9)  { animation-delay: .36s; }
.brand-pill:nth-child(10) { animation-delay: .40s; }
.brand-pill:nth-child(n+11) { animation-delay: .44s; }

/* Brand tiles (legacy grid) */
.brand-tile { padding: 28px 18px; min-height: 152px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.brand-tile:hover { transform: translateY(-6px); box-shadow: var(--md-sys-elevation-3); border-color: var(--md-sys-color-primary); }
.brand-name { font-size: 1.9rem; font-weight: 600; text-align: center; margin-bottom: 6px; line-height: 1.2; letter-spacing: -0.02em; color: var(--md-sys-color-on-surface); transition: color var(--md-motion-short) var(--md-ease-standard); }
.brand-tile:hover .brand-name { color: var(--md-sys-color-primary); }
.brand-count { font-size: .75rem; color: var(--md-sys-color-on-surface-variant); font-weight: 600; }
.brand-icon {
    width: 48px; height: 48px;
    background: var(--md-sys-color-primary);
    border-radius: var(--md-sys-shape-corner-large);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    transition: transform var(--md-motion-medium) var(--md-ease-emphasized);
}
.brand-tile:hover .brand-icon { transform: scale(1.1); }
@media (max-width: 640px) { .brand-name { font-size: 1.5rem; } .brand-tile { min-height: 130px; padding: 20px 14px; } .brand-icon { width: 42px; height: 42px; margin-bottom: 10px; } }

/* ============================================================================
   CONTENT SECTIONS — News / Articles
   ============================================================================ */

.md3-content-section { padding: 72px 24px; }
@media (max-width: 480px) { .md3-content-section { padding: 48px 16px; } }
.md3-content-section__inner { max-width: 1280px; margin: 0 auto; }
.md3-content-section--tight { padding-top: 8px; }

.md3-loading-state { display: flex; align-items: center; justify-content: center; padding: 40px; }
.md3-progress-circle {
    width: 24px; height: 24px;
    border: 3px solid var(--md-sys-color-surface-container-highest);
    border-top-color: var(--md-sys-color-primary);
    border-radius: 50%;
    animation: md3spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes md3spin { to { transform: rotate(360deg); } }

.md3-news-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 768px) { .md3-news-two-col { grid-template-columns: 1fr; } }

.md3-news-card {
    display: flex; flex-direction: column;
    border-radius: var(--md-sys-shape-corner-extra-large); overflow: hidden;
    border: 1px solid var(--sk-line);
    background: var(--sk-card);
    transition: box-shadow var(--md-motion-medium) var(--md-ease-emphasized);
}
.md3-news-card:hover { box-shadow: var(--md-sys-elevation-2); }
.md3-news-card__panel { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.md3-news-card__list  { flex: 1; display: flex; flex-direction: column; }

.md3-news-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    transition: background var(--md-motion-short) var(--md-ease-standard);
}
.md3-news-item:last-child { border-bottom: none; }
.md3-news-item:hover { background: color-mix(in srgb, var(--md-sys-color-primary) 6%, transparent); }

.md3-news-item__img-wrap {
    flex-shrink: 0; width: 128px; height: 84px;
    border-radius: var(--md-sys-shape-corner-medium); overflow: hidden;
    background: var(--md-sys-color-surface-container-high);
}
.md3-news-item__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.md3-news-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.md3-news-item__badge {
    display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: 0.06em;
    color: var(--md-sys-color-primary);
    background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
    padding: 2px 6px; border-radius: 4px; width: fit-content;
}
.md3-news-item__title {
    font-size: 15px; font-weight: 700; color: var(--md-sys-color-on-surface);
    margin: 0; line-height: 1.4;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    transition: color var(--md-motion-short);
}
.md3-news-item:hover .md3-news-item__title { color: var(--md-sys-color-primary); }
.md3-news-item__date { font-size: 12px; color: var(--md-sys-color-on-surface-variant); margin: 0; }

.md3-news-card__footer {
    padding: 12px 16px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.md3-news-card__section-label { font-size: 15px; font-weight: 600; color: var(--md-sys-color-primary); user-select: none; }

.md3-news-empty { padding: 28px 16px; text-align: center; color: var(--md-sys-color-on-surface-variant); font-size: 13px; }

@media (max-width: 480px) {
    .md3-news-item { padding: 12px 14px; gap: 12px; }
    .md3-news-item__img-wrap { width: 100px; height: 68px; }
    .md3-news-item__title { font-size: 14px; }
}

/* Hero card (Popular / Latest / Analysis / Chipset) */
.md3-latest-hero {
    display: block;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    transition: background var(--md-motion-short) var(--md-ease-standard);
}
.md3-latest-hero:hover { background: color-mix(in srgb, var(--md-sys-color-primary) 5%, transparent); }

.md3-latest-hero__img-wrap {
    position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
    background: var(--md-sys-color-surface-container-high);
}
.md3-latest-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--md-motion-medium) var(--md-ease-decel); }
.md3-latest-hero:hover .md3-latest-hero__img { transform: scale(1.03); }

.md3-latest-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, rgba(20,5,15,.45) 100%); pointer-events: none; }
.md3-latest-hero__badge,
.md3-cat-hero__badge--analysis,
.md3-cat-hero__badge--chipset {
    position: absolute; top: 10px; left: 10px;
    font-size: 11px; font-weight: 700;
    color: var(--md-sys-color-on-primary);
    background: var(--md-sys-color-primary);
    padding: 3px 8px; border-radius: 4px;
}
.md3-latest-hero__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; }
.md3-latest-hero__title {
    font-size: 18px; font-weight: 600; line-height: 1.3;
    color: var(--md-sys-color-on-surface); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    transition: color var(--md-motion-short);
}
.md3-latest-hero:hover .md3-latest-hero__title { color: var(--md-sys-color-primary); }
.md3-latest-hero__date { font-size: 12px; color: var(--md-sys-color-on-surface-variant); margin: 0; }

/* ============================================================================
   BENTO — Why impliedtech
   ============================================================================ */

.md3-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.md3-bento__tile {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
    padding: 22px; min-height: 176px; border-radius: 24px;
    background: var(--sk-card);
    border: 1px solid var(--sk-line);
    transition: transform var(--md-motion-medium) var(--md-ease-emphasized),
                box-shadow var(--md-motion-medium) var(--md-ease-emphasized),
                border-color var(--md-motion-short) var(--md-ease-standard);
}
.md3-bento__tile:hover {
    transform: translateY(-4px); box-shadow: var(--md-sys-elevation-3);
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 45%, transparent);
}
.md3-bento__tile--wide { grid-column: span 2; }
.md3-bento__icon {
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
    background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container);
}
.md3-bento__tile h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--md-sys-color-on-surface); }
.md3-bento__tile p  { font-size: 14px; line-height: 1.55; color: color-mix(in srgb, var(--md-sys-color-on-surface) 80%, var(--sk-card)); }
.md3-bento__more {
    margin-top: auto; display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 600; color: var(--md-sys-color-primary);
}
.md3-bento__more .material-symbols-rounded { font-size: 16px; transition: transform var(--md-motion-medium) var(--md-ease-emphasized); }
.md3-bento__tile:hover .md3-bento__more .material-symbols-rounded { transform: translateX(4px); }
.md3-bento__big { font-size: clamp(34px, 4vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--md-sys-color-primary); }

/* Accent tile: the logo gradient, white text in both themes */
.md3-bento__tile--accent { background: var(--brand-gradient); border-color: transparent; }
.md3-bento__tile--accent h3,
.md3-bento__tile--accent p,
.md3-bento__tile--accent .md3-bento__more { color: #fff; }
.md3-bento__tile--accent p { opacity: .9; }
.md3-bento__tile--accent .md3-bento__icon { background: rgba(255,255,255,.18); color: #fff; }

.md3-bento, .md3-bento__tile { opacity: 1 !important; }

@media (min-width: 900px) {
    .md3-bento { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .md3-bento__tile { padding: 26px; min-height: 200px; }
}

/* ============================================================================
   IDENTITY BAND
   ============================================================================ */

.sk-identity {
    position: relative; overflow: hidden; text-align: center;
    padding: 56px 24px 72px; border-radius: 32px;
    background: var(--sk-card); border: 1px solid var(--sk-line);
}
.sk-identity__word {
    position: absolute; left: 0; right: 0; bottom: -.2em;
    font-family: 'Montserrat', sans-serif; font-weight: 900; line-height: .8; letter-spacing: -.04em;
    font-size: min(14vw, 190px); white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1.5px var(--sk-line-strong); opacity: .45;
    pointer-events: none; user-select: none;
}
.sk-identity__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sk-identity__lockup { display: flex; align-items: center; justify-content: center; }
.sk-identity__lockup .sk-logo { height: 64px; width: auto; }
.sk-identity__tag { font-size: clamp(16px, 2.2vw, 22px); font-weight: 500; letter-spacing: -.01em; max-width: 520px; color: var(--md-sys-color-on-surface); }
.sk-identity__cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 480px) { .sk-identity { padding: 40px 16px 64px; border-radius: 24px; } .sk-identity__lockup .sk-logo { height: 52px; } }

/* ============================================================================
   AD SLOTS
   ============================================================================ */

.md3-ad-slot {
    max-width: 1280px; margin: 0 auto; width: 100%;
    min-height: 100px; padding: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: var(--sk-card);
    border: 1px solid var(--sk-line);
    border-radius: var(--md-sys-shape-corner-large);
    overflow: hidden;
}
.md3-ad-slot .adsbygoogle { width: 100%; }
.md3-ad-slot__label { font-size: 11px; font-weight: 600; color: var(--md-sys-color-on-surface-variant); opacity: 0.7; }

/* ============================================================================
   BACK TO TOP
   ============================================================================ */

.md3-to-top {
    position: fixed; right: 20px; bottom: 24px; z-index: 250;
    width: 48px; height: 48px; border-radius: 16px; cursor: pointer;
    display: grid; place-items: center;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 90%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: var(--md-sys-color-primary); box-shadow: var(--md-sys-elevation-2);
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity var(--md-motion-medium) var(--md-ease-standard), transform var(--md-motion-medium) var(--md-ease-emphasized);
}
.md3-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.md3-to-top:hover { background: var(--md-sys-color-primary-container); }
@media (max-width: 767px) { .md3-to-top { right: 16px; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); } }

/* ============================================================================
   FOOTER
   ============================================================================ */

.md3-footer { position: relative; margin-top: 72px; padding-top: 48px; background: transparent; }
.md3-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: var(--sk-line);
}
@media (max-width: 767px) { .md3-footer { margin-top: 48px; padding-top: 32px; } }

/* CTA card — logo gradient */
.md3-footer__cta {
    position: relative; z-index: 2;
    max-width: 1216px; width: calc(100% - 32px); margin: 0 auto;
    padding: 28px 32px; border-radius: 28px;
    display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: var(--md-sys-elevation-4);
    overflow: hidden;
}
.md3-footer__cta::after {
    content: 'memory'; font-family: 'Material Symbols Rounded'; font-size: 200px; line-height: 1;
    position: absolute; right: -20px; bottom: -60px; opacity: .14; pointer-events: none;
}
@media (min-width: 768px) {
    .md3-footer__cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 48px; }
}
.md3-footer__cta h3 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.md3-footer__cta p  { font-size: 14px; opacity: .9; }
.md3-footer__cta-btn { background: #fff; color: #A5216F; position: relative; z-index: 1; font-weight: 600; }

.md3-footer__inner {
    max-width: 1280px; margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid; grid-template-columns: 1fr; row-gap: 44px;
}
@media (min-width: 768px) { .md3-footer__inner { padding: 48px 32px 40px; } }
@media (max-width: 480px) { .md3-footer__inner { padding: 40px 16px 28px; } }

.md3-footer__top { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 900px) { .md3-footer__top { grid-template-columns: 1fr 1fr; gap: 64px; } }

.md3-footer__brand { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 900px) { .md3-footer__brand { align-items: flex-start; } }
.md3-footer__lockup { display: flex; align-items: center; justify-content: center; }
.md3-footer__logo-wrap { display: flex; align-items: center; justify-content: center; }
.md3-footer__logo-img { height: 56px; width: auto; object-fit: contain; }
.md3-footer__logo-fallback {
    width: 72px; height: 72px;
    background: var(--md-sys-color-primary-container);
    border-radius: var(--md-sys-shape-corner-extra-large);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 600;
    color: var(--md-sys-color-on-primary-container);
}
.md3-footer__tagline {
    margin: 14px auto 0; font-size: 13px; line-height: 1.6; max-width: 340px;
    color: var(--md-sys-color-on-surface-variant); text-align: center;
}
@media (min-width: 900px) { .md3-footer__tagline { margin-inline: 0; text-align: left; } }

/* Newsletter */
.md3-newsletter {
    padding: 24px; border-radius: 24px;
    background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 70%, transparent);
    border: 1px solid var(--md-sys-color-outline-variant);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.md3-newsletter__title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; color: var(--md-sys-color-on-surface); }
.md3-newsletter__lead  { font-size: 13px; line-height: 1.5; margin-bottom: 16px; color: var(--md-sys-color-on-surface-variant); }
.md3-newsletter__form {
    display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px;
    border-radius: 999px; background: var(--md-sys-color-surface);
    border: 1.5px solid var(--md-sys-color-outline-variant);
    transition: border-color var(--md-motion-short), box-shadow var(--md-motion-short);
}
.md3-newsletter__form:focus-within {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--md-sys-color-primary) 16%, transparent);
}
.md3-newsletter__form .material-symbols-rounded { font-size: 20px; color: var(--md-sys-color-on-surface-variant); }
.md3-newsletter__form input {
    flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    font: inherit; font-size: 14px; padding: 10px 0; color: var(--md-sys-color-on-surface);
}
.md3-newsletter__form .md3-btn { padding: 10px 20px; }
.md3-newsletter__note { min-height: 1.2em; margin-top: 10px; font-size: 12px; color: var(--md-sys-color-on-surface-variant); }
.md3-newsletter__note.is-ok    { color: var(--md-sys-color-primary); }
.md3-newsletter__note.is-error { color: var(--md-sys-color-error); }

/* Link columns */
.md3-footer__links { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px 24px; text-align: center; }
@media (min-width: 480px) { .md3-footer__links { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 768px) { .md3-footer__links { text-align: left; } }
.md3-footer__col-title {
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
    color: var(--md-sys-color-primary); margin: 0 0 16px;
}
.md3-footer__link {
    display: block; width: fit-content; font-size: 14px;
    color: var(--md-sys-color-on-surface-variant); margin-bottom: 10px;
    transition: color var(--md-motion-short), transform var(--md-motion-medium) var(--md-ease-emphasized);
}
.md3-footer__link:hover { color: var(--md-sys-color-primary); transform: translateX(4px); }
@media (max-width: 767px) { .md3-footer__link { margin-inline: auto; } }
@media (max-width: 480px) { .md3-footer__links { gap: 20px 28px; } }

.md3-footer__divider { height: 1px; background: var(--md-sys-color-outline-variant); margin: 0; }

.md3-footer__bottom {
    display: flex; flex-direction: column; align-items: center;
    gap: 14px 20px; text-align: center;
}
@media (min-width: 768px) {
    .md3-footer__bottom { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; }
}
.md3-footer__copyright { font-size: 13px; color: var(--md-sys-color-on-surface-variant); margin: 0; }
.md3-footer__meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.md3-footer__pill {
    font-size: 11px; font-weight: 600; letter-spacing: .02em;
    padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
}
.md3-footer__pill--brand { color: var(--md-sys-color-on-primary-container); background: var(--md-sys-color-primary-container); border-color: transparent; }

.md3-footer__social { display: flex; align-items: center; gap: 8px; }
.md3-footer__social .md3-icon-btn {
    background: var(--md-sys-color-surface-container-high);
    border: 1px solid var(--md-sys-color-outline-variant);
}
.social-icon-btn { color: var(--md-sys-color-on-surface-variant); }
.social-icon-btn:hover { color: var(--md-sys-color-primary); }
.md3-footer__social .md3-icon-btn:hover { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-primary); }

/* Giant cropped wordmark */
.md3-footer__wordmark {
    display: block; overflow: hidden; text-align: center; white-space: nowrap;
    font-family: 'Montserrat', sans-serif; font-weight: 900; line-height: .8;
    letter-spacing: -0.04em;
    font-size: min(14vw, 220px);
    height: calc(min(14vw, 220px) * .5);
    margin-top: 8px;
    color: transparent; -webkit-text-stroke: 1.5px var(--md-sys-color-outline-variant);
    user-select: none; pointer-events: none;
}

/* ============================================================================
   MAIN, PERFORMANCE, UTILITIES
   ============================================================================ */

.md3-main { position: relative; }

.md3-feature-card, .new-phone-card, .soc-card,
.blog-card, .blog-grid-card, .brand-pill, .brand-tile,
.md3-icon-btn, .md3-btn { will-change: transform; }

img { image-rendering: -webkit-optimize-contrast; }
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s ease-in; }
img[loading="lazy"].loaded { opacity: 1; }
img[loading="lazy"]:not([data-src]):not([data-observe]) { opacity: 1; }

.text-charcoal   { color: var(--md-sys-color-on-surface); }
.text-slate      { color: var(--md-sys-color-on-surface-variant); }
.text-muted      { color: var(--md-sys-color-on-surface-variant); opacity: 0.7; }
.flex            { display: flex; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-1          { flex: 1; }
.flex-col        { flex-direction: column; }
.flex-wrap       { flex-wrap: wrap; }
.gap-2           { gap: 8px; }
.gap-3           { gap: 12px; }
.p-3             { padding: 12px; }
.p-4             { padding: 16px; }
.px-2            { padding-left: 8px; padding-right: 8px; }
.py-1            { padding-top: 4px; padding-bottom: 4px; }
.mb-1            { margin-bottom: 4px; }
.mb-2            { margin-bottom: 8px; }
.mb-3            { margin-bottom: 12px; }
.text-sm         { font-size: 13px; line-height: 1.4; }
.text-xs         { font-size: 11px; line-height: 1.4; }
.font-bold       { font-weight: 700; }
.font-semibold   { font-weight: 600; }
.block           { display: block; }
.hidden          { display: none !important; }
.relative        { position: relative; }
.overflow-hidden { overflow: hidden; }
.rounded-lg      { border-radius: var(--md-sys-shape-corner-large); }
.border-t        { border-top: 1px solid var(--md-sys-color-outline-variant); }
.w-full          { width: 100%; }
.h-full          { height: 100%; }
.mt-auto         { margin-top: auto; }
.w-fit           { width: fit-content; }
.grid            { display: grid; }
.grid-cols-2     { grid-template-columns: repeat(2, 1fr); }
.space-y-2 > * + * { margin-top: 8px; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

@media (max-width: 480px) {
    .md3-btn--large  { padding: 12px 24px; font-size: 14px; }
    .md3-section-header__title { font-size: clamp(18px,5vw,26px); }
    .md3-top-app-bar__inner { height: 56px; padding: 0 12px; }
    .md3-top-app-bar__logo-img { height: 34px; }
}
@media (max-width: 400px) {
    .md3-search-bar__btn { padding: 10px 14px; font-size: 12px; }
}

@media print {
    .md3-top-app-bar, .md3-bottom-nav, .md3-to-top, button, nav { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
}
