/* ==========================================================================
   toolswiki.com — homepage v2
   Scoped under .tw-home so shared pages keep their existing styles.
   ========================================================================== */

.tw-home {
    --tw-brand: #474BFF;
    --tw-brand-2: #7A5CFF;
    --tw-brand-soft: #F0F1FF;
    --tw-ink: #26274B;
    --tw-muted: #6B6D88;
    --tw-line: #E7E8F3;
    --tw-bg: #FAFAFE;
    --tw-card: #FFFFFF;
    --tw-radius: 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--tw-ink);
    background: var(--tw-bg);
    padding-top: 70px;
    -webkit-font-smoothing: antialiased;
}

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

.tw-home a {
    color: inherit;
    text-decoration: none;
}

.tw-home img {
    max-width: 100%;
    border: 0;
}

.tw-home h1,
.tw-home h2,
.tw-home p,
.tw-home ul,
.tw-home li {
    margin: 0;
    padding: 0;
}

.tw-home ul {
    list-style: none;
}

.tw-home button,
.tw-home input {
    font-family: inherit;
}

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

/* ---------- Hero ---------- */

.tw-hero {
    position: relative;
    overflow: visible;
    background: linear-gradient(180deg, #F2F3FD 0%, #FAFAFE 100%);
    border-bottom: 1px solid #EDEEF7;
}

.tw-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.tw-hero-bg::before {
    content: "";
    position: absolute;
    width: 640px;
    height: 640px;
    right: -180px;
    top: -260px;
    background: radial-gradient(circle, rgba(71, 75, 255, 0.14) 0%, rgba(71, 75, 255, 0) 68%);
    border-radius: 50%;
}

.tw-hero-bg::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    left: -220px;
    bottom: -280px;
    background: radial-gradient(circle, rgba(122, 92, 255, 0.12) 0%, rgba(122, 92, 255, 0) 70%);
    border-radius: 50%;
}

.tw-hero-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 84px;
}

.tw-hero-copy {
    max-width: 620px;
}

.tw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(71, 75, 255, 0.08);
    color: var(--tw-brand);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.tw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tw-brand);
    box-shadow: 0 0 0 4px rgba(71, 75, 255, 0.12);
}

.tw-hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(38px, 4.6vw, 60px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.tw-hero h1 span {
    background: linear-gradient(115deg, var(--tw-brand) 10%, var(--tw-brand-2) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tw-hero-sub {
    max-width: 560px;
    color: var(--tw-muted);
    font-size: 18px;
    line-height: 1.7;
}

/* Search */

.tw-search-wrap {
    position: relative;
    margin-top: 30px;
}

.tw-search {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    padding: 0 16px;
    background: #FFFFFF;
    border: 1.5px solid #E1E3F0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(38, 39, 75, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tw-search:focus-within {
    border-color: var(--tw-brand);
    box-shadow: 0 14px 36px rgba(71, 75, 255, 0.16);
}

.tw-search-icon {
    flex: 0 0 auto;
    color: #8B8DA6;
}

.tw-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    color: var(--tw-ink);
}

.tw-search input::placeholder {
    color: #9A9CB4;
}

.tw-search input::-webkit-search-cancel-button {
    cursor: pointer;
}

.tw-search kbd {
    flex: 0 0 auto;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border: 1px solid #E1E3F0;
    border-radius: 7px;
    background: #F7F8FC;
    color: #7C7E99;
    font-family: inherit;
    font-size: 12px;
    line-height: 24px;
    text-align: center;
}

.tw-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: 372px;
    overflow-y: auto;
    padding: 8px;
    background: #FFFFFF;
    border: 1px solid #E5E7F2;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(38, 39, 75, 0.16);
}

.tw-search-results[hidden] {
    display: none;
}

.tw-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background-color 0.15s;
}

.tw-result:hover,
.tw-result.is-active {
    background: #F5F6FF;
}

.tw-result img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 auto;
}

.tw-result-text {
    min-width: 0;
}

.tw-result-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--tw-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tw-result-cat {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--tw-muted);
}

.tw-result-arrow {
    margin-left: auto;
    color: #B8BAD2;
    flex: 0 0 auto;
}

.tw-result-empty {
    padding: 18px 14px;
    font-size: 14px;
    color: var(--tw-muted);
}

.tw-result-empty a {
    color: var(--tw-brand);
    font-weight: 600;
}

.tw-noscript {
    margin-top: 12px;
    font-size: 13px;
    color: var(--tw-muted);
}

.tw-noscript a {
    color: var(--tw-brand);
    font-weight: 600;
}

.tw-quicklinks {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    font-size: 13px;
    color: var(--tw-muted);
}

.tw-quicklinks > span {
    margin-right: 2px;
}

.tw-quicklinks a {
    padding: 7px 12px;
    background: #FFFFFF;
    border: 1px solid #E3E4F0;
    border-radius: 999px;
    color: var(--tw-ink);
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.tw-quicklinks a:hover {
    border-color: rgba(71, 75, 255, 0.45);
    color: var(--tw-brand);
    transform: translateY(-1px);
}

/* Hero visual */

.tw-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.tw-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.tw-orb-a {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(71, 75, 255, 0.22), rgba(122, 92, 255, 0.08));
}

.tw-orb-b {
    width: 190px;
    height: 190px;
    right: 28px;
    bottom: 18px;
    background: linear-gradient(135deg, rgba(255, 195, 0, 0.2), rgba(255, 195, 0, 0.02));
}

.tw-visual-card {
    position: relative;
    z-index: 2;
    width: 340px;
    background: #FFFFFF;
    border: 1px solid #ECEDF6;
    border-radius: 24px;
    box-shadow: 0 34px 64px rgba(38, 39, 75, 0.16);
    transform: rotate(-2deg);
    overflow: hidden;
}

.tw-visual-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #F0F1F7;
    background: linear-gradient(120deg, #F7F8FF, #FFFFFF);
}

.tw-visual-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--tw-brand), var(--tw-brand-2));
    color: #FFFFFF;
    flex: 0 0 auto;
}

.tw-visual-head strong {
    display: block;
    font-size: 16px;
}

.tw-visual-head small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--tw-muted);
}

.tw-visual-rows {
    padding: 8px 12px 14px;
}

.tw-visual-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 8px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px dashed #EEF0F8;
}

.tw-visual-row:last-child {
    border-bottom: 0;
}

.tw-visual-row em {
    margin-left: auto;
    font-size: 12px;
    font-style: normal;
    color: var(--tw-brand);
}

.tw-vicon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex: 0 0 auto;
}

.tw-vicon-1 {
    background: #EDEEFF;
    color: #474BFF;
}

.tw-vicon-2 {
    background: #FFF1F0;
    color: #E5484D;
}

.tw-vicon-3 {
    background: #EAF9F2;
    color: #0E9F6E;
}

.tw-float {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid #ECEDF6;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(38, 39, 75, 0.14);
    font-size: 13px;
    font-weight: 700;
    color: var(--tw-ink);
    animation: tw-float 6s ease-in-out infinite alternate;
}

.tw-float i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #19B47B;
    box-shadow: 0 0 0 4px rgba(25, 180, 123, 0.14);
}

.tw-float-1 {
    top: 42px;
    left: 0;
    animation-delay: -1s;
}

.tw-float-2 {
    right: 0;
    top: 148px;
    animation-delay: -2.5s;
}

.tw-float-3 {
    left: 26px;
    bottom: 34px;
    animation-delay: -4s;
}

@keyframes tw-float {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* ---------- Stats ---------- */

.tw-stats-wrap {
    position: relative;
    z-index: 3;
    margin-top: -44px;
}

.tw-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 26px 10px;
    background: #FFFFFF;
    border: 1px solid #EDEEF7;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(38, 39, 75, 0.08);
}

.tw-stat {
    text-align: center;
    padding: 4px 12px;
    border-right: 1px solid #F0F1F7;
}

.tw-stat:last-child {
    border-right: 0;
}

.tw-stat strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tw-ink);
    line-height: 1.2;
}

.tw-stat span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--tw-muted);
}

/* ---------- Sections ---------- */

.tw-section {
    padding: 74px 0;
}

.tw-section-tint {
    background: #F3F4FB;
}

.tw-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.tw-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--tw-brand);
}

.tw-section-head h2 {
    margin: 8px 0 8px;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tw-section-head p {
    max-width: 640px;
    color: var(--tw-muted);
    font-size: 15px;
    line-height: 1.65;
}

.tw-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--tw-brand);
    white-space: nowrap;
}

.tw-link svg {
    transition: transform 0.2s;
}

.tw-link:hover svg {
    transform: translateX(3px);
}

/* ---------- Category grid ---------- */

.tw-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tw-cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 18px;
    background: #FFFFFF;
    border: 1px solid #E9EAF4;
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tw-cat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(71, 75, 255, 0.35);
    box-shadow: 0 18px 36px rgba(38, 39, 75, 0.1);
}

.tw-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--tw-brand-soft);
    flex: 0 0 auto;
}

.tw-cat-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tw-cat-text {
    min-width: 0;
    flex: 1 1 auto;
}

.tw-cat-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.tw-cat-text small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--tw-muted);
}

.tw-cat-arrow {
    flex: 0 0 auto;
    color: #B8BAD2;
    transition: color 0.2s, transform 0.2s;
}

.tw-cat-card:hover .tw-cat-arrow {
    color: var(--tw-brand);
    transform: translateX(3px);
}

/* ---------- Popular tools ---------- */

.tw-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tw-tool-card {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 20px;
    padding-bottom: 44px;
    background: #FFFFFF;
    border: 1px solid #E9EAF4;
    border-radius: 18px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tw-tool-card:hover {
    transform: translateY(-3px);
    border-color: rgba(71, 75, 255, 0.35);
    box-shadow: 0 20px 42px rgba(38, 39, 75, 0.1);
}

.tw-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #F6F7FD;
    flex: 0 0 auto;
}

.tw-tool-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.tw-tool-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tw-tool-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tw-brand);
}

.tw-tool-body strong {
    display: block;
    margin-top: 3px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.tw-tool-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--tw-muted);
}

.tw-tool-open {
    position: absolute;
    left: 82px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tw-brand);
    opacity: 0.75;
    transition: opacity 0.2s;
}

.tw-tool-card:hover .tw-tool-open {
    opacity: 1;
}

/* ---------- World clock ---------- */

.tw-clock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tw-clock-card {
    position: relative;
    display: block;
    padding: 22px;
    background: #FFFFFF;
    border: 1px solid #E9EAF4;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tw-clock-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tw-brand), var(--tw-brand-2));
    opacity: 0;
    transition: opacity 0.2s;
}

.tw-clock-card:hover {
    transform: translateY(-3px);
    border-color: rgba(71, 75, 255, 0.35);
    box-shadow: 0 20px 42px rgba(38, 39, 75, 0.1);
}

.tw-clock-card:hover::before {
    opacity: 1;
}

.tw-clock-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--tw-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tw-clock-top img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    flex: 0 0 auto;
}

.tw-clock-top span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tw-clock-city {
    display: block;
    margin-top: 14px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.tw-clock-time {
    display: block;
    margin-top: 4px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.tw-clock-date {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--tw-muted);
}

.tw-clock-open {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tw-brand);
}

.tw-clock-note {
    margin-top: 26px;
    text-align: center;
    font-size: 14px;
    color: var(--tw-muted);
}

.tw-clock-note a {
    color: var(--tw-brand);
    font-weight: 700;
}

/* ---------- Quizzes ---------- */

.tw-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.tw-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1px solid #E3E4F0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tw-ink);
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.tw-chip em {
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--tw-brand-soft);
    color: var(--tw-brand);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.tw-chip:hover {
    border-color: rgba(71, 75, 255, 0.45);
    color: var(--tw-brand);
    transform: translateY(-1px);
}

.tw-quiz-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tw-quiz-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E9EAF4;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tw-quiz-card:hover {
    transform: translateY(-3px);
    border-color: rgba(71, 75, 255, 0.35);
    box-shadow: 0 20px 42px rgba(38, 39, 75, 0.1);
}

.tw-quiz-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #E9EAF5;
}

.tw-quiz-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.tw-quiz-card:hover .tw-quiz-thumb img {
    transform: scale(1.045);
}

.tw-quiz-body {
    display: block;
    padding: 14px 16px 18px;
}

.tw-quiz-cat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tw-brand);
}

.tw-quiz-body strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

/* ---------- About & support ---------- */

.tw-about {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    padding: 44px;
    background: #FFFFFF;
    border: 1px solid #EDEEF7;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(38, 39, 75, 0.06);
}

.tw-about-copy h2 {
    margin: 8px 0 14px;
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tw-about-copy p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--tw-muted);
}

.tw-about-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: center;
}

.tw-about-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tw-about-list li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--tw-brand-soft);
    color: var(--tw-brand);
    font-size: 14px;
    font-weight: 800;
    flex: 0 0 auto;
}

.tw-about-list strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.tw-about-list small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--tw-muted);
}

.tw-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 26px 32px;
    background: linear-gradient(135deg, #FFF7DA 0%, #FFFDF4 100%);
    border: 1px solid #F3E5AF;
    border-radius: 20px;
}

.tw-support strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.tw-support p {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #7A6A2E;
}

.tw-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 13px 22px;
    background: #FFC300;
    border-radius: 12px;
    color: #3A2E00;
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tw-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 195, 0, 0.35);
}

/* ---------- Focus states ---------- */

.tw-home a:focus-visible,
.tw-home input:focus-visible {
    outline: 2px solid rgba(71, 75, 255, 0.6);
    outline-offset: 2px;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
    .tw-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tw-quiz-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tw-hero-grid {
        gap: 36px;
    }

    .tw-visual-card {
        width: 310px;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
    .tw-home {
        padding-top: 0;
    }

    .tw-container {
        padding: 0 16px;
    }

    .tw-hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 36px;
        padding-bottom: 44px;
    }

    .tw-hero-visual {
        display: none;
    }

    .tw-hero h1 {
        font-size: clamp(30px, 8vw, 40px);
        margin: 16px 0 14px;
    }

    .tw-hero-sub {
        font-size: 15px;
        line-height: 1.65;
    }

    .tw-search {
        height: 54px;
        padding: 0 13px;
        border-radius: 14px;
    }

    .tw-search input {
        font-size: 15px;
    }

    .tw-search kbd {
        display: none;
    }

    .tw-search-results {
        max-height: 55vh;
    }

    .tw-stats-wrap {
        margin-top: 0;
    }

    .tw-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
        border-radius: 16px;
    }

    .tw-stat {
        padding: 18px 8px;
        border-right: 0;
        border-bottom: 1px solid #F0F1F7;
    }

    .tw-stat:nth-child(odd) {
        border-right: 1px solid #F0F1F7;
    }

    .tw-stat:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .tw-stat strong {
        font-size: 26px;
    }

    .tw-section {
        padding: 46px 0;
    }

    .tw-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 24px;
    }

    .tw-section-head h2 {
        margin: 6px 0;
        font-size: 24px;
    }

    .tw-section-head p {
        font-size: 14px;
    }

    .tw-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tw-cat-card {
        min-height: 78px;
        padding: 14px;
        gap: 10px;
    }

    .tw-cat-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .tw-cat-icon img {
        width: 26px;
        height: 26px;
    }

    .tw-cat-text strong {
        font-size: 13px;
    }

    .tw-cat-text small {
        font-size: 12px;
    }

    .tw-cat-arrow {
        display: none;
    }

    .tw-tool-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tw-tool-card {
        padding: 16px 16px 42px;
    }

    .tw-tool-icon {
        width: 42px;
        height: 42px;
    }

    .tw-tool-icon img {
        width: 30px;
        height: 30px;
    }

    .tw-tool-body strong {
        font-size: 14px;
    }

    .tw-tool-desc {
        font-size: 12px;
    }

    .tw-tool-open {
        left: 72px;
        bottom: 16px;
    }

    .tw-clock-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tw-clock-card {
        padding: 18px;
    }

    .tw-clock-time {
        font-size: 28px;
    }

    .tw-quiz-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tw-quiz-body {
        padding: 12px 14px 16px;
    }

    .tw-about {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 26px 22px;
        border-radius: 20px;
    }

    .tw-support {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }
}

@media (max-width: 600px) {
    .tw-tool-grid {
        grid-template-columns: 1fr;
    }

    .tw-chip-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .tw-chip {
        flex: 0 0 auto;
    }

    .tw-clock-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tw-clock-card {
        padding: 15px;
    }

    .tw-clock-city {
        font-size: 16px;
        margin-top: 10px;
    }

    .tw-clock-time {
        font-size: 24px;
    }

    .tw-clock-open {
        margin-top: 10px;
    }

    .tw-eyebrow {
        font-size: 11px;
        padding: 7px 11px;
    }
}

@media (max-width: 360px) {
    .tw-cat-grid {
        grid-template-columns: 1fr;
    }

    .tw-clock-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tw-float {
        animation: none;
    }

    .tw-home * {
        transition-duration: 0.01ms !important;
    }
}
