@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap");

:root {
    --tai-red: #e63946;
    --tai-red-dark: #c81e2c;
    --tai-violet: #6d5efc;
    --tai-gold: #f5c542;
    --tai-ink: #12141c;
    --tai-muted: #667085;
    --tai-line: #e8ebf2;
    --tai-paper: #f6f7fb;
    --tai-dark: #0b0d14;
    --tai-dark-2: #151826;
    --tai-shell: 1320px;
    --tai-radius: 14px;
    --tai-font: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Hide Astra chrome on landing */
body.home #masthead,
body.home .main-header-bar,
body.home .ast-above-header-bar,
body.home .ast-main-header-wrap,
body.home .ast-desktop-header,
body.home .ast-mobile-header-wrap,
body.home #colophon,
body.home .site-footer,
body.home .ast-breadcrumbs-wrapper,
body.home .ast-archive-description,
body.home .page-header {
    display: none !important;
}

/* Force Astra wrappers full-bleed */
body.home,
body.home #page,
body.home #content,
body.home .site-content,
body.home .ast-container,
body.home #primary,
body.home .content-area,
body.home .site-main,
body.home .ast-plain-container,
body.home.ast-page-builder-template .site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.home {
    --ast-normal-container-width: 100%;
    --ast-narrow-container-width: 100%;
    background: #fff;
    font-family: var(--tai-font);
    color: var(--tai-ink);
    overflow-x: hidden;
}

.tai-landing {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: hidden;
    font-family: var(--tai-font);
    box-sizing: border-box;
}

.tai-shell {
    width: min(var(--tai-shell), calc(100% - 48px));
    margin: 0 auto;
    box-sizing: border-box;
}

/* Topbar */
.tai-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(18, 20, 28, 0.06);
}

.tai-topbar-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.tai-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--tai-ink);
    flex-shrink: 0;
}

.tai-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ff4d5a, #c81e2c);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.tai-logo-text {
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 18px;
}

.tai-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tai-nav-list,
.tai-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.tai-nav-list a,
.tai-mobile-list a {
    text-decoration: none;
    color: #3d4454;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
}

.tai-nav-list a:hover,
.tai-mobile-list a:hover {
    color: var(--tai-red);
    background: rgba(230, 57, 70, 0.06);
}

.tai-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.tai-link-quiet {
    color: #5b6475;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.tai-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--tai-line);
    border-radius: 10px;
    background: #fff;
    place-items: center;
    gap: 5px;
    padding: 0;
    cursor: pointer;
}

.tai-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #222;
}

.tai-mobile-nav {
    border-top: 1px solid var(--tai-line);
    padding: 12px 20px 18px;
    background: #fff;
}

.tai-mobile-list {
    flex-direction: column;
    align-items: stretch;
}

/* Buttons */
.tai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.tai-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.tai-btn-sm {
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
}

.tai-btn-red {
    background: var(--tai-red);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(230, 57, 70, 0.28);
}

.tai-btn-violet {
    background: var(--tai-violet);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(109, 94, 252, 0.25);
}

.tai-btn-gold {
    background: var(--tai-gold);
    color: #1a1404 !important;
    box-shadow: 0 10px 24px rgba(245, 197, 66, 0.28);
}

/* Hero */
.tai-hero {
    position: relative;
    background:
        radial-gradient(ellipse 70% 60% at 70% 20%, rgba(109, 94, 252, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 50% at 15% 80%, rgba(230, 57, 70, 0.16), transparent 50%),
        linear-gradient(160deg, #090b12 0%, #121528 45%, #0b0d14 100%);
    color: #fff;
    padding: 72px 0 88px;
    overflow: hidden;
}

.tai-hero-glow {
    position: absolute;
    inset: auto -10% -30% auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.25), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.tai-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.tai-eyebrow,
.tai-kicker {
    margin: 0 0 12px;
    color: var(--tai-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tai-hero .tai-eyebrow {
    color: #ff8a94;
}

.tai-hero-title {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.tai-hero-title em {
    font-style: normal;
    color: #ff5a66;
}

.tai-hero-desc {
    margin: 0 0 28px;
    max-width: 34em;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    line-height: 1.75;
}

.tai-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.tai-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 480px;
}

.tai-stats strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.tai-stats span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.tai-window {
    background: linear-gradient(180deg, #1c2030, #12151f);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    animation: tai-float 5.5s ease-in-out infinite;
}

.tai-window-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.tai-window-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff5f57;
}

.tai-window-bar span:nth-child(2) { background: #febc2e; }
.tai-window-bar span:nth-child(3) { background: #28c840; }

.tai-window-bar b {
    margin-left: 8px;
    font-weight: 600;
}

.tai-window-cta {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--tai-red);
    font-size: 13px;
    font-weight: 700;
}

.tai-window-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tai-window-grid i {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
}

.tai-window-grid .c1 { background: linear-gradient(135deg, #ff7a85, #c81e2c); }
.tai-window-grid .c2 { background: linear-gradient(135deg, #7a6dff, #4338ca); }
.tai-window-grid .c3 { background: linear-gradient(135deg, #34d399, #059669); }
.tai-window-grid .c4 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.tai-window-grid .c5 { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.tai-window-grid .c6 { background: linear-gradient(135deg, #f472b6, #db2777); }

@keyframes tai-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Sections */
.tai-section {
    padding: 88px 0;
}

.tai-section-muted {
    background: var(--tai-paper);
}

.tai-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.tai-section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
}

.tai-section-head p {
    margin: 0;
    color: var(--tai-muted);
    line-height: 1.7;
}

.tai-section-head-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    text-align: left;
    max-width: none;
    gap: 20px;
}

.tai-center-link {
    text-align: center;
    margin: 36px 0 0;
}

.tai-center-link a:not(.tai-btn),
.tai-text-link {
    color: var(--tai-red);
    font-weight: 700;
    text-decoration: none;
}

/* Daily */
.tai-daily-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tai-daily-card {
    display: block;
    background: #fff;
    border: 1px solid var(--tai-line);
    border-radius: var(--tai-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tai-daily-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(18, 20, 28, 0.08);
}

.tai-daily-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
}

.tai-daily-thumb.tone-a { background-image: linear-gradient(135deg, #1f2937, #7f1d1d); }
.tai-daily-thumb.tone-b { background-image: linear-gradient(135deg, #111827, #3730a3); }
.tai-daily-thumb.tone-c { background-image: linear-gradient(135deg, #0f172a, #065f46); }
.tai-daily-thumb.tone-d { background-image: linear-gradient(135deg, #1e1b4b, #9d174d); }

.tai-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.tai-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tai-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent var(--tai-red);
}

.tai-daily-body {
    padding: 16px;
}

.tai-daily-body h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.4;
}

.tai-daily-meta {
    margin: 0 0 12px;
    color: var(--tai-muted);
    font-size: 13px;
}

.tai-daily-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.tai-daily-foot b {
    color: var(--tai-red);
    font-size: 1.05rem;
}

.tai-daily-foot span {
    color: #98a2b3;
    font-size: 12px;
}

/* Why */
.tai-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.tai-why-card {
    background: #fff;
    border: 1px solid var(--tai-line);
    border-radius: var(--tai-radius);
    padding: 24px 20px;
}

.tai-why-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(230, 57, 70, 0.08);
    color: var(--tai-red);
    font-size: 20px;
}

.tai-icon-grid::before { content: "▦"; }
.tai-icon-flame::before { content: "✦"; }
.tai-icon-bolt::before { content: "⚡"; }
.tai-icon-box::before { content: "▣"; }

.tai-why-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.tai-why-card p {
    margin: 0;
    color: var(--tai-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Split panels */
.tai-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.tai-split-reverse {
    grid-template-columns: 0.85fr 1.15fr;
}

.tai-split-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 900;
}

.tai-split-copy > p {
    margin: 0 0 20px;
    color: var(--tai-muted);
    line-height: 1.7;
}

.tai-checklist {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.tai-checklist li {
    position: relative;
    padding-left: 28px;
    line-height: 1.5;
    font-weight: 600;
}

.tai-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--tai-red);
    box-shadow: inset 0 0 0 3px #fff;
}

.tai-panel {
    border-radius: 18px;
    padding: 32px 28px;
}

.tai-panel-dark {
    background: linear-gradient(160deg, #171b2a, #0d1018);
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.tai-panel-dark h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.tai-panel-dark p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* News */
.tai-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tai-news-col {
    background: #fff;
    border: 1px solid var(--tai-line);
    border-radius: var(--tai-radius);
    padding: 22px;
}

.tai-news-col h3 {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tai-line);
    font-size: 1.05rem;
}

.tai-news-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f7;
}

.tai-news-item:last-child {
    border-bottom: 0;
}

.tai-news-item time {
    display: block;
    margin-bottom: 6px;
    color: #98a2b3;
    font-size: 12px;
}

.tai-news-item strong {
    display: block;
    line-height: 1.45;
    font-size: 0.98rem;
}

.tai-news-item:hover strong {
    color: var(--tai-red);
}

.tai-empty {
    color: var(--tai-muted);
    font-size: 0.95rem;
}

/* Footer */
.tai-footer {
    background: #0b0d14;
    color: rgba(255, 255, 255, 0.72);
    padding: 64px 0 28px;
}

.tai-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tai-footer .tai-logo-text {
    color: #fff;
}

.tai-footer-brand p {
    margin: 14px 0 0;
    max-width: 28em;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tai-footer h4 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 14px;
}

.tai-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.tai-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 14px;
}

.tai-footer a:hover {
    color: #fff;
}

.tai-footer-bottom {
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* Motion */
.tai-hero-copy,
.tai-daily-card,
.tai-why-card,
.tai-split-copy,
.tai-panel {
    animation: tai-rise 0.7s ease both;
}

.tai-daily-card:nth-child(2) { animation-delay: 0.06s; }
.tai-daily-card:nth-child(3) { animation-delay: 0.12s; }
.tai-daily-card:nth-child(4) { animation-delay: 0.18s; }

@keyframes tai-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
    .tai-nav { display: none; }
    .tai-nav-toggle { display: grid; }
    .tai-link-quiet { display: none; }
    .tai-hero-grid,
    .tai-daily-grid,
    .tai-why-grid,
    .tai-split,
    .tai-split-reverse,
    .tai-news-grid,
    .tai-footer-grid {
        grid-template-columns: 1fr;
    }
    .tai-hero {
        padding: 48px 0 64px;
    }
    .tai-section {
        padding: 64px 0;
    }
    .tai-section-head-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .tai-stats {
        grid-template-columns: 1fr;
    }
    .tai-topbar-actions .tai-btn-sm {
        display: none;
    }
}
