/* ─── RESET & ROOT ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

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

:root {
    --bg: #ffffff;
    --bg2: #fbeeed;
    --heading: #090412;
    --text: #767396;
    --accent: #c15040;
    --btn-bg: #c15040;
    --btn-text: #ffffff;
    --btn-hover: #090412;
    --border: #e7e5e4;
    --font: 'Mona Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ─── UTILITIES ─── */
.text-center {
    text-align: center;
}

.section--bg2 {
    background: var(--bg2);
}

.em--accent {
    color: var(--accent);
}

/* ─── BUTTONS ─── */
.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 2px solid var(--btn-bg);
    padding: 16px 40px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .5s;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
}

.btn-primary:hover {
    background: var(--btn-hover);
    border-color: var(--btn-hover);
}

.btn-primary--block {
    display: inline-block;
}

.btn-primary--lg {
    font-size: 16px;
    padding: 20px 60px;
    letter-spacing: 2px;
}

.btn-ghost {
    background: transparent;
    color: var(--heading);
    border: 2px solid var(--border);
    padding: 16px 32px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .5s;
    border-radius: 8px;
}

.btn-ghost:hover {
    border-color: var(--heading);
    background: var(--heading);
    color: #fff;
}

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all .5s;
}

.nav-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: .5px;
    transition: all .5s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-cta {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 12px 28px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .5s;
    border-radius: 8px;
}

.nav-cta:hover {
    background: var(--btn-hover);
}

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 60px 60px;
    gap: 60px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: -200px;
    top: -200px;
    width: 700px;
    height: 700px;
    background: var(--bg2);
    border-radius: 50%;
    z-index: 0;
    opacity: .6;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--bg2);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(52px, 6vw, 64px);
    font-weight: 500;
    line-height: 1.05;
    color: var(--heading);
    margin-bottom: 24px;
}

.hero-title em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    max-width: 420px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Hero right cards */
.hero-right {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.hero-img-card {
    background: var(--bg2);
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.hero-img-card:first-child {
    grid-column: 1 / -1;
}

.hero-img-card--offset {
    margin-top: 40px;
}

.hero-card-inner {
    display: flex;
    flex-direction: column;
}

.hero-card-light {
    background: linear-gradient(135deg, #fdf0ee 0%, #f0d4cf 100%);
    border-radius: 8px;
    padding: 0 40px;
}

.hero-card-light img {
    margin-bottom: 40px;
    border-radius: 8px;
}

.hero-card-dark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.hero-img-card--offset img {
    width: 100%;
    border-radius: 8px;
}

.hero-card-pink {
    height: 180px;
}

.hero-card-content {
    text-align: center;
    padding: 40px 16px;
}

.hero-card-title {
    font-size: 42px;
    font-weight: 300;
    color: var(--heading);
    line-height: 1;
}

.hero-card-title em {
    color: var(--accent);
    font-weight: 500;
}

.hero-card-title--white {
    color: #fff;
}

.hero-card-title--white {
    font-size: 30px;
    line-height: 1.1;
}

.hero-card-sub {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    margin-top: 16px;
}

.hero-card-pages-label {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
}

.hero-img-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, .9);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    color: var(--heading);
}

/* ─── STATS BAR ─── */
.stats-bar {
    background: var(--heading);
    padding: 50px 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat {
    text-align: center;
}

.stat-num {
    font-size: 36px;
    font-weight: 300;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 12px;
}

/* ─── SECTIONS ─── */
section {
    padding: 100px 60px;
}

.section-label {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 400;
    color: var(--heading);
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-title em {
    font-style: normal;
}

.section-sub {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    max-width: 560px;
    margin: 0 auto 60px;
}

/* ─── HOME PREVIEWS ─── */
.previews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.preview-card {
    cursor: pointer;
}

.preview-card:hover .preview-overlay {
    opacity: 1;
}

.preview-card:hover .preview-img-wrap {
    transform: scale(1.03);
}

.preview-img-wrap {
    transition: all .5s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.preview-img {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.home1-mock {
    background: linear-gradient(160deg, #fdf8f7 0%, #f7e8e5 100%);
}

.home2-mock {
    background: linear-gradient(160deg, #090412 0%, #2a1f1d 100%);
}

/* Mock UI inside preview cards */
.mock-inner {
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-nav {
    height: 24px;
    background: rgba(255, 255, 255, .5);
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.mock-nav-dark {
    height: 24px;
    background: rgba(255, 255, 255, .08);
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.mock-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.mock-nav-bar {
    height: 6px;
    flex: 1;
    background: rgba(9, 4, 18, .1);
    border-radius: 1px;
}

.mock-nav-bar--dark {
    background: rgba(255, 255, 255, .1);
}

.mock-nav-btn {
    height: 14px;
    width: 50px;
    background: #c15040;
    border-radius: 1px;
}

.mock-hero-area {
    flex: 1;
    display: flex;
    gap: 8px;
}

.mock-hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    padding: 16px;
}

.mock-h1 {
    height: 12px;
    width: 70%;
    background: var(--heading);
    border-radius: 1px;
    opacity: .8;
}

.mock-h2 {
    height: 8px;
    width: 50%;
    background: var(--heading);
    border-radius: 1px;
    opacity: .4;
}

.mock-h2--mt {
    margin-top: 4px;
}

.mock-h2--sm {
    width: 40%;
    margin-top: 2px;
    opacity: .25;
}

.mock-h1-light {
    height: 12px;
    width: 70%;
    background: rgba(255, 255, 255, .8);
    border-radius: 1px;
}

.mock-h2-light {
    height: 8px;
    width: 50%;
    background: rgba(255, 255, 255, .4);
    border-radius: 1px;
}

.mock-btn {
    height: 14px;
    width: 35%;
    background: var(--accent);
    border-radius: 1px;
    margin-top: 8px;
}

.mock-btn--mt {
    margin-top: 8px;
}

.mock-hero-img {
    width: 45%;
    background: linear-gradient(135deg, #e8bfbb, #d4a099);
    border-radius: 2px;
}

.mock-hero-img-dark {
    width: 45%;
    background: linear-gradient(135deg, #c15040, #8b3020);
    border-radius: 2px;
}

.mock-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.mock-product {
    background: rgba(255, 255, 255, .6);
    border-radius: 2px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-product-dark {
    background: rgba(255, 255, 255, .07);
    border-radius: 2px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-prod-img {
    height: 36px;
    background: linear-gradient(135deg, #f0d8d4, #e0b8b3);
    border-radius: 1px;
}

.mock-prod-img-dark {
    height: 36px;
    background: linear-gradient(135deg, #c15040, #8b3020);
    border-radius: 1px;
    opacity: .7;
}

.mock-prod-txt {
    height: 5px;
    background: var(--heading);
    opacity: .3;
    border-radius: 1px;
}

.mock-prod-txt-light {
    height: 5px;
    background: rgba(255, 255, 255, .4);
    border-radius: 1px;
}

.mock-prod-price {
    height: 5px;
    width: 50%;
    background: var(--accent);
    opacity: .7;
    border-radius: 1px;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 4, 18, .75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all .5s;
}

.preview-overlay-btn {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    padding: 14px 36px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .5s;
    text-align: center;
    border-radius: 4px;
}

.preview-overlay-btn:hover {
    background: #fff;
    color: var(--heading);
}

.preview-info {
    padding: 24px 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-name {
    font-size: 22px;
    font-weight: 400;
    color: var(--heading);
}

.preview-tag {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--bg2);
    padding: 5px 12px;
    border-radius: 4px;
}

/* ─── FEATURES ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-col h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.feature-col ul {
    list-style: none;
}

.feature-col li {
    font-size: 16px;
    color: var(--text);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.feature-col li::before {
    content: '✓';
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── PAGES GRID ─── */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-card {
    position: relative;
    overflow: hidden;
    transition: all .5s;
    cursor: pointer;
    border-radius: 8px;
    aspect-ratio: 1/1;
}

.page-card:hover {
    box-shadow: 0 20px 60px rgba(193, 80, 64, .15);
    transform: translateY(-4px);
}

.page-card--center {
    grid-column: 2 / 3;
}

.page-mock {
    height: 160px;
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 6px;
    background: #fdf9f9;
}

.page-card-label {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    color: var(--heading);
    background: #fff;
    z-index: 10;
    border-top: 1px solid var(--border);
}

.page-card-label--dark {
    background: var(--heading);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

/* Page mock building blocks */
.pm-row {
    height: 8px;
    background: rgba(9, 4, 18, .1);
    border-radius: 1px;
}

.pm-row--short {
    width: 60%;
}

.pm-row--med {
    width: 80%;
}

.pm-row--accent {
    background: var(--accent);
    opacity: .6;
}

.pm-row--btn {
    width: 40%;
    height: 16px;
    border-radius: 1px;
}

.pm-row--sm-btn {
    width: 35%;
    height: 12px;
}

.pm-row--form-btn {
    width: 30%;
    height: 14px;
    margin-top: 4px;
}

.pm-row--dark-btn {
    width: 30%;
    height: 12px;
    margin: 4px auto 0;
}

.pm-row--faded {
    opacity: .15;
}

.pm-row--center {
    margin: 0 auto;
}

.pm-row--faq-line {
    opacity: .4;
}

.pm-row--w60 {
    width: 60%;
}

.pm-row--w70 {
    width: 70%;
}

.pm-row--w50 {
    width: 50%;
}

.pm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.pm-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.pm-grid--fill {
    flex: 1;
}

.pm-grid--mt {
    margin-top: 6px;
}

.pm-card {
    background: rgba(193, 80, 64, .12);
    border-radius: 1px;
}

.pm-card--row-span {
    grid-row: 1 / 3;
}

.pm-card--thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.pm-card--banner {
    height: 60px;
    width: 100%;
}

.pm-col-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pm-col-group--flex {
    flex: 1;
    gap: 4px;
}

.pm-col-group--center {
    justify-content: center;
}

.pm-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pm-list--mt {
    margin-top: 8px;
}

.pm-list-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pm-text-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pm-text-block--mt {
    margin-top: 8px;
}

.pm-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pm-form--mt {
    margin-top: 8px;
}

.pm-input {
    height: 20px;
    background: rgba(9, 4, 18, .06);
    border-radius: 1px;
}

.pm-service-card {
    background: var(--bg2);
    padding: 6px;
    border-radius: 1px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pm-service-icon {
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    opacity: .6;
}

.pm-faq {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pm-faq--mt {
    margin-top: 8px;
}

.pm-faq-row {
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 1px;
    padding: 0 6px;
    display: flex;
    align-items: center;
}

.pm-dark {
    background: var(--heading);
}

.pm-dark--centered {
    align-items: center;
    justify-content: center;
}

.pm-dark .pm-row {
    background: rgba(255, 255, 255, .15);
}

.pm-dark .pm-row--accent {
    background: var(--accent);
    opacity: .8;
}

.pm-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: var(--heading);
}

.pm-404 span {
    font-size: 40px;
    font-weight: 300;
    color: rgba(255, 255, 255, .3);
}

.pm-dark-footer {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.pm-coming-soon {
    text-align: center;
}

.pm-coming-soon-title {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.pm-countdown {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pm-countdown-box {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-countdown-box span {
    font-size: 12px;
    color: #fff;
}

/* ─── CORE FEATURES ─── */
.core-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.core-card {
    text-align: center;
    padding: 32px 20px;
    border: 1px solid var(--border);
    transition: all .5s;
    border-radius: 8px;
}

.core-icon {
    width: 52px;
    height: 52px;
    background: var(--bg2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
}

.core-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--heading);
    letter-spacing: .3px;
}

/* ─── SUPPORT ─── */
.support-section {
    background: var(--heading);
    text-align: center;
    padding: 80px 60px;
}

.support-section .section-title {
    color: #fff;
}

.support-section .section-label {
    color: var(--accent);
}

.support-desc {
    color: rgba(255, 255, 255, .5);
    font-size: 16px;
    margin-bottom: 16px;
}

.support-email {
    font-style: normal;
    font-size: clamp(16px, 2.5vw, 28px);
    color: rgba(255, 255, 255, .7);
    margin: 20px 0 40px;
    display: block;
    text-decoration: none;
    transition: all .5s;
}

.support-email:hover {
    color: #fff;
}

/* ─── CTA ─── */
.cta-section {
    background: var(--bg2);
    text-align: center;
    padding: 120px 60px;
    position: relative;
    overflow: hidden;
}

.cta-section::before,
.cta-section::after {
    content: 'ORNIX';
    position: absolute;
    font-size: 150px;
    font-weight: 100;
    color: rgba(193, 80, 64, .06);
    letter-spacing: 10px;
    white-space: nowrap;
    top: 50%;
    transform: translateY(-50%);
}

.cta-section::before {
    left: -100px;
}

.cta-section::after {
    right: -100px;
}

.cta-title {
    font-size: clamp(48px, 6vw, 70px);
    font-weight: 500;
    color: var(--heading);
    margin-bottom: 12px;
}

.cta-title em {
    font-style: normal;
    color: var(--accent);
}

em {
    font-style: normal !important;
}

.cta-sub {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 48px;
}

/* ─── FOOTER ─── */
footer {
    background: var(--heading);
    padding: 48px 60px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-logo span {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    letter-spacing: .5px;
    transition: all .5s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    font-size: 14px;
    color: rgba(255, 255, 255, .3);
    width: 100%;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 24px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    animation: fadeUp .8s ease forwards;
}

.fade-up-1 {
    animation-delay: .1s;
}

.fade-up-2 {
    animation-delay: .25s;
}

.fade-up-3 {
    animation-delay: .4s;
}

.fade-up-4 {
    animation-delay: .55s;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    nav {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 100px 24px 60px;
        text-align: center;
    }

    .hero::before {
        display: none;
    }

    .hero-sub,
    .hero-actions {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-right {
        display: none;
    }

    section {
        padding: 70px 24px;
    }

    .stats-bar {
        padding: 36px 24px;
        gap: 20px;
        flex-wrap: wrap;
    }

    .previews-grid,
    .features-grid,
    .pages-grid {
        grid-template-columns: 1fr;
    }

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

    footer {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .cta-section {
        padding: 80px 24px;
    }
}

@media (max-width: 479px) {
    .core-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 480px) and (max-width: 749px) {
    .core-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 750px) and (max-width: 900px) {
    .core-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    width: 40px;
    height: 40px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s, visibility .3s, transform .3s, background .25s;
    border-radius: 50%;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--btn-hover);
}

.demo-popup {
    position: fixed;
    inset: 0;
    background: rgba(9, 4, 18, 0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}

.demo-popup.active {
    opacity: 1;
}

.demo-popup-box {
    background: var(--bg);
    padding: 48px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform .3s;
    border-radius: 12px;
}

.demo-popup.active .demo-popup-box {
    transform: translateY(0);
}

.demo-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
    transition: color .2s;
}

.demo-popup-close:hover {
    color: var(--heading);
}

.demo-popup-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.demo-popup-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 12px;
}

.demo-popup-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.demo-popup-password {
    display: inline-block;
    background: var(--bg2);
    border: 2px dashed var(--accent);
    color: var(--heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 6px;
    padding: 12px 40px;
    margin-bottom: 28px;
}

.demo-popup-btn {
    width: 100%;
    text-align: center;
}