:root {
    --bg: #f8f9fc;
    --surface: #ffffff;
    --surface-2: #f1f3f8;
    --text: #171923;
    --text-soft: #626878;
    --primary: #6c4df6;
    --secondary: #ff7a59;
    --border: #e7e9ef;
    --shadow: 0 20px 50px rgba(30, 30, 60, 0.08);
    --radius: 24px;
    --header-height: 76px;
}

body.dark {
    --bg: #101117;
    --surface: #181a23;
    --surface-2: #22242e;
    --text: #f6f7fb;
    --text-soft: #a7abba;
    --border: #2c2f3b;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background .3s ease, color .3s ease;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.hidden {
    display: none !important;
}

.bg-decoration {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .1;
    pointer-events: none;
    z-index: -1;
}

.decoration-1 {
    background: var(--primary);
    top: 100px;
    left: -250px;
}

.decoration-2 {
    background: var(--secondary);
    right: -250px;
    top: 700px;
}

/* Header */
.header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248,249,252,.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(220,222,230,.6);
}

body.dark .header {
    background: rgba(16,17,23,.85);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -.7px;
    white-space: nowrap;
}

.logo > span:last-child > span {
    color: var(--primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #9a85ff);
    box-shadow: 0 8px 20px rgba(108,77,246,.3);
}

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

.nav-link {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 10px;
    transition: .25s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(108,77,246,.08);
}

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

.icon-button,
.menu-button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    transition: .25s;
}

.icon-button:hover,
.menu-button:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.menu-button {
    display: none;
}

/* Hero */
.hero {
    padding: 90px 0 70px;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 70px;
    align-items: center;
}

.eyebrow,
.section-label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255,122,89,.12);
}

.hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(60px, 8vw, 105px);
    line-height: .9;
    letter-spacing: -5px;
    margin-bottom: 30px;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero-description {
    color: var(--text-soft);
    font-size: 19px;
    max-width: 540px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.secondary-button {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    transition: .25s;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #8b73ff);
    box-shadow: 0 10px 25px rgba(108,77,246,.25);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108,77,246,.32);
}

.secondary-button {
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
}

.secondary-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.large {
    min-height: 54px;
    padding: 0 24px;
}

.hero-stats {
    margin-top: 55px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 23px;
}

.stat span {
    color: var(--text-soft);
    font-size: 12px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* Featured fact */
.hero-fact-wrapper {
    position: relative;
    padding: 35px 20px;
}

.featured-fact {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 32px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: .3s;
}

.featured-fact::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(108,77,246,.1);
    border-radius: 50%;
    top: -80px;
    right: -70px;
}

.fact-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--primary);
    background: rgba(108,77,246,.09);
    font-size: 11px;
    font-weight: 800;
}

.fact-number {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

.fact-icon {
    width: 78px;
    height: 78px;
    margin: 35px 0 25px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 38px;
    background: var(--surface-2);
}

.featured-fact h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 25px;
    line-height: 1.25;
    margin-bottom: 15px;
    letter-spacing: -.7px;
}

.featured-fact p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.fact-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fact-footer span {
    color: #35a56a;
    font-size: 11px;
    font-weight: 700;
}

.fact-footer i {
    margin-right: 5px;
}

.small-save-button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    border-radius: 10px;
}

.small-save-button.saved {
    color: var(--primary);
    background: rgba(108,77,246,.1);
}

.floating-badge {
    position: absolute;
    z-index: 2;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 9px 13px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 10px;
    font-weight: 800;
}

.badge-top {
    top: 0;
    left: 0;
}

.badge-bottom {
    bottom: 0;
    right: 0;
}

/* Search */
.search-section {
    padding: 0 0 70px;
}

.search-box {
    max-width: 700px;
    margin: auto;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(30,30,60,.05);
}

.search-box > i {
    color: var(--text-soft);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.search-box input::placeholder {
    color: var(--text-soft);
}

.clear-search {
    border: none;
    background: transparent;
    color: var(--text-soft);
    display: none;
}

.clear-search.visible {
    display: block;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(32px,4vw,46px);
    letter-spacing: -2px;
    margin-top: 7px;
}

.section-heading h2 span {
    color: var(--primary);
}

.section-heading p {
    max-width: 420px;
    color: var(--text-soft);
    font-size: 14px;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 12px;
}

.category-card {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 20px 15px;
    min-height: 130px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    transition: .25s;
}

.category-card:hover,
.category-card.active {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(108,77,246,.1);
}

.category-card.active {
    background: rgba(108,77,246,.06);
}

.category-icon {
    font-size: 28px;
}

.category-name {
    font-size: 13px;
    font-weight: 700;
}

.category-count {
    color: var(--text-soft);
    font-size: 11px;
}

/* Daily */
.daily-section {
    padding: 30px 0 90px;
}

.daily-card {
    min-height: 300px;
    border-radius: 30px;
    padding: 50px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background: linear-gradient(120deg,#5740d6,#8c67f7);
    box-shadow: 0 25px 60px rgba(87,64,214,.22);
}

.daily-card::before,
.daily-card::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
}

.daily-card::before {
    width: 350px;
    height: 350px;
    right: -150px;
    top: -180px;
}

.daily-card::after {
    width: 250px;
    height: 250px;
    left: -150px;
    bottom: -150px;
}

.daily-decoration {
    position: absolute;
    font-size: 160px;
    opacity: .05;
    right: 30%;
}

.daily-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.daily-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.daily-content h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(26px,4vw,40px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.daily-content p {
    color: rgba(255,255,255,.78);
    max-width: 700px;
    font-size: 15px;
}

.daily-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    font-size: 11px;
    font-weight: 700;
    opacity: .8;
}

.daily-illustration {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 40px;
    font-size: 70px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
}

/* Facts */
.facts-section {
    background: var(--surface-2);
}

.facts-heading {
    margin-bottom: 25px;
}

.results-info {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.facts-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.filter-button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 700;
    transition: .2s;
}

.filter-button:hover,
.filter-button.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(108,77,246,.08);
}

.random-button {
    border: none;
    color: #fff;
    background: var(--text);
    border-radius: 11px;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    gap: 8px;
    align-items: center;
    transition: .2s;
}

.random-button:hover {
    transform: translateY(-2px);
}

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

.fact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    transition: .3s;
    animation: cardIn .45s ease both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-actions {
    display: flex;
    gap: 5px;
}

.card-action {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--surface-2);
    color: var(--text-soft);
    border-radius: 9px;
    transition: .2s;
}

.card-action:hover,
.card-action.active {
    color: var(--primary);
    background: rgba(108,77,246,.1);
}

.card-action.like.active {
    color: #ff4d6d;
}

.card-icon {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border-radius: 18px;
    font-size: 31px;
    margin: 25px 0 18px;
}

.fact-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -.4px;
    margin-bottom: 10px;
}

.fact-card p {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
    flex: 1;
}

.card-bottom {
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-source {
    color: var(--text-soft);
    font-size: 10px;
}

.card-share {
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-size: 12px;
}

.card-share:hover {
    color: var(--primary);
}

/* Empty states */
.empty-state,
.empty-saved {
    text-align: center;
    padding: 70px 20px;
}

.empty-icon,
.empty-saved > div {
    font-size: 45px;
    margin-bottom: 15px;
}

.empty-state h3,
.empty-saved h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
}

.empty-state p,
.empty-saved p {
    color: var(--text-soft);
    font-size: 14px;
    margin: 8px 0 20px;
}

/* Random */
.random-section {
    padding: 100px 0;
    overflow: hidden;
}

.random-inner {
    min-height: 480px;
    display: grid;
    grid-template-columns: .8fr 1fr;
    align-items: center;
    gap: 80px;
}

.random-text h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(35px,5vw,55px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 15px 0;
}

.random-text h2 span {
    color: var(--primary);
    display: block;
}

.random-text p {
    color: var(--text-soft);
    max-width: 480px;
    margin-bottom: 25px;
}

.random-preview {
    position: relative;
    min-height: 380px;
    display: grid;
    place-items: center;
}

.random-dots {
    position: absolute;
    width: 330px;
    height: 330px;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: .8;
}

.random-card {
    width: min(400px,90%);
    min-height: 270px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 30px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.random-emoji {
    font-size: 60px;
    margin-bottom: 15px;
}

.random-label {
    font-size: 10px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.random-card strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
}

/* About */
.about-section {
    background: var(--surface-2);
}

.about-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 90px;
}

.about-visual {
    height: 430px;
    position: relative;
    display: grid;
    place-items: center;
}

.about-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.circle-one {
    width: 330px;
    height: 330px;
}

.circle-two {
    width: 230px;
    height: 230px;
    border-style: dashed;
}

.about-logo {
    width: 145px;
    height: 145px;
    border-radius: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg,var(--primary),#a38fff);
    box-shadow: 0 30px 60px rgba(108,77,246,.3);
    position: relative;
    z-index: 2;
}

.about-logo span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 75px;
    font-weight: 700;
}

.about-floating {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-size: 26px;
    position: absolute;
    z-index: 3;
}

.float-one { top: 50px; left: 25px; }
.float-two { top: 90px; right: 25px; }
.float-three { bottom: 50px; right: 80px; }

.about-content h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(35px,4vw,52px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 10px 0 25px;
}

.about-content h2 span {
    color: var(--primary);
}

.about-content > p {
    color: var(--text-soft);
    max-width: 600px;
    margin-bottom: 15px;
}

.about-features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
}

.about-features div {
    color: var(--text-soft);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.about-features span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(108,77,246,.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

/* Footer */
.footer {
    background: #101117;
    color: #fff;
    padding: 70px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-brand p {
    max-width: 300px;
    color: #9295a3;
    font-size: 13px;
    margin-top: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-column h4 {
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-column a {
    color: #9295a3;
    font-size: 12px;
    transition: .2s;
}

.footer-column a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: #1c1e27;
    border-radius: 10px;
}

.footer-bottom {
    border-top: 1px solid #262832;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: #737683;
    font-size: 10px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--text);
    color: var(--bg);
    box-shadow: var(--shadow);
    font-size: 12px;
    font-weight: 700;
    transform: translateY(100px);
    opacity: 0;
    transition: .3s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: #43d17b;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10,10,15,.7);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.random-modal {
    width: min(550px,100%);
    background: var(--surface);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(.97);
    transition: .25s;
}

.modal-overlay.active .random-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: none;
    background: var(--surface-2);
    color: var(--text-soft);
    border-radius: 10px;
}

.modal-icon {
    font-size: 65px;
    margin-bottom: 18px;
}

.random-modal h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
    line-height: 1.2;
    margin: 18px 0 12px;
}

.random-modal > p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.modal-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 1000px) {
    .nav {
        position: absolute;
        top: var(--header-height);
        left: 20px;
        right: 20px;
        padding: 12px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        padding: 12px;
    }

    .menu-button {
        display: grid;
    }

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

    .hero-content {
        text-align: center;
    }

    .eyebrow {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

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

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

    .random-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .random-text {
        text-align: center;
    }

    .random-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .random-text .primary-button {
        margin: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-content {
        text-align: center;
    }

    .about-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .about-features {
        text-align: left;
    }

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

    .footer-column:last-child {
        grid-column: 2;
    }
}

@media (max-width: 650px) {
    .container {
        width: min(100% - 28px,1180px);
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 65px;
        letter-spacing: -4px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-divider {
        height: 25px;
    }

    .stat strong {
        font-size: 18px;
    }

    .stat span {
        font-size: 10px;
    }

    .hero-fact-wrapper {
        padding: 20px 5px;
    }

    .featured-fact {
        padding: 24px;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

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

    .daily-card {
        padding: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .daily-illustration {
        width: 90px;
        height: 90px;
        font-size: 45px;
    }

    .facts-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .random-button {
        justify-content: center;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .random-section {
        padding: 70px 0;
    }

    .random-text h2 {
        font-size: 38px;
    }

    .about-visual {
        height: 330px;
    }

    .circle-one {
        width: 260px;
        height: 260px;
    }

    .circle-two {
        width: 180px;
        height: 180px;
    }

    .about-logo {
        width: 115px;
        height: 115px;
        border-radius: 32px;
    }

    .about-logo span {
        font-size: 58px;
    }

    .about-floating {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-column:last-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .random-modal {
        padding: 30px 22px;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 55px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a,
    .hero-buttons button {
        width: 100%;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-card {
        min-height: 115px;
    }
}
