/* ============================================
   Torzon Market — torzon.finance
   Dark retro aesthetic · Noise grain · Terminal accents
   Inspired by pixel-art / dark vaporwave style
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* --- Custom Properties --- */
:root {
    --bg-primary: #09090b;
    --bg-secondary: #0f0f13;
    --bg-card: #131318;
    --bg-card-hover: #19191f;
    --bg-card-bar: #1e1e25;
    --text-primary: #d4d4d8;
    --text-secondary: #71717a;
    --text-heading: #fafafa;
    --accent: #38bdf8;
    --accent-hover: #22d3ee;
    --accent-dim: rgba(56, 189, 248, 0.06);
    --accent-border: rgba(56, 189, 248, 0.18);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.06);
    --red-border: rgba(239, 68, 68, 0.2);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.06);
    --border: #1f1f24;
    --border-light: #2a2a32;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --max-width: 1100px;
    --header-height: 60px;
    --radius: 4px;
    --radius-lg: 6px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* --- Noise Grain Overlay --- */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Subtle Scanline Effect --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

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

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    line-height: 1.3;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

h2 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

h4 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 34px;
    width: auto;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--text-secondary);
    font-weight: 400;
}

/* --- Navigation --- */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.main-nav a {
    display: block;
    padding: 0.4rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: color var(--transition), background-color var(--transition);
    font-family: var(--font-main);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-heading);
    background-color: var(--accent-dim);
}

.nav-cta {
    background-color: var(--accent) !important;
    color: var(--bg-primary) !important;
    font-weight: 600 !important;
    font-family: var(--font-mono) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.02em;
}

.nav-cta:hover {
    background-color: var(--accent-hover) !important;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.375rem 0;
    z-index: 50;
}

.dropdown-menu a {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    border-radius: 0;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}

/* --- Hero --- */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Faint grid pattern behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Gradient fade at bottom of hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(transparent, var(--bg-primary));
    pointer-events: none;
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero .lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-border);
}

.btn-outline:hover {
    background-color: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

/* --- Cards (retro window style) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    position: relative;
}

/* Window-style top bar on cards */
.card::before {
    content: '● ● ●';
    display: block;
    background-color: var(--bg-card-bar);
    border-bottom: 1px solid var(--border);
    padding: 0.375rem 0.75rem;
    font-size: 0.5rem;
    letter-spacing: 3px;
    color: var(--border-light);
    line-height: 1;
}

.card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.05);
}

.card-inner {
    padding: 1.5rem;
}

/* Fallback for existing HTML without .card-inner wrapper */
.card> :not(.card-inner):not(:first-child) {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.card> :last-child {
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    margin-left: 1.5rem;
}

.card h3 {
    margin-bottom: 0.4rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Link Cards (links.html) — terminal-window style --- */
.link-card {
    background-color: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    position: relative;
}

/* Terminal-style title bar */
.link-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
}

.link-card h3 {
    color: var(--accent);
    font-size: 0.9rem;
    margin: 1.25rem 1.5rem 0.625rem;
    font-family: var(--font-mono);
}

.link-card>p {
    margin: 0 1.5rem 1.25rem;
}

.link-url {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--bg-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 0 1.5rem 0.75rem;
}

.link-url code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    word-break: break-all;
}

.link-url .copy-btn {
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    transition: all var(--transition);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.link-url .copy-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* --- Steps --- */
.steps {
    counter-reset: step;
    margin-top: 2rem;
}

.step {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2.5rem;
}

.step::before {
    counter-increment: step;
    content: '0' counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--accent-dim);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- FAQ --- */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.625rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background-color: var(--bg-card);
    border: none;
    color: var(--text-heading);
    padding: 1rem 1.125rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-card-hover);
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 400;
    font-family: var(--font-mono);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-question::after {
    content: '−';
}

.faq-item.open .faq-question {
    border-bottom: 1px solid var(--border);
}

.faq-answer {
    display: none;
    padding: 1rem 1.125rem 1.125rem;
    background-color: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

.faq-item.open .faq-answer {
    display: block;
}

/* --- Article / News --- */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.article-meta .tag {
    background-color: var(--accent-dim);
    color: var(--accent);
    padding: 0.2rem 0.625rem;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--accent-border);
}

.article-body h2 {
    margin-top: 2.5rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.article-body li {
    margin-bottom: 0.5rem;
    list-style: disc;
    font-size: 0.95rem;
}

.article-body ol li {
    list-style: decimal;
}

/* --- Screenshots --- */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.screenshot {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
}

/* Window bar on screenshots */
.screenshot::before {
    content: '● ● ●';
    display: block;
    background-color: var(--bg-card-bar);
    border-bottom: 1px solid var(--border);
    padding: 0.375rem 0.75rem;
    font-size: 0.5rem;
    letter-spacing: 3px;
    color: var(--border-light);
    line-height: 1;
}

.screenshot img {
    width: 100%;
    height: auto;
}

.screenshot-single {
    max-width: 600px;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
}

.screenshot-single::before {
    content: '● ● ●';
    display: block;
    background-color: var(--bg-card-bar);
    border-bottom: 1px solid var(--border);
    padding: 0.375rem 0.75rem;
    font-size: 0.5rem;
    letter-spacing: 3px;
    color: var(--border-light);
    line-height: 1;
}

/* --- Warning / Info Box --- */
.info-box {
    background-color: var(--accent-dim);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.125rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.info-box p {
    color: var(--text-primary);
    margin-bottom: 0;
}

.warning-box {
    background-color: rgba(245, 158, 11, 0.05);
    border-left: 3px solid #f59e0b;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.125rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.warning-box p {
    color: var(--text-primary);
    margin-bottom: 0;
}

.danger-box {
    background-color: var(--red-dim);
    border-left: 3px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.125rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.danger-box p {
    color: var(--text-primary);
    margin-bottom: 0;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2::before {
    content: '// ';
    color: var(--text-secondary);
    font-weight: 400;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0.5rem auto 0;
    font-size: 0.95rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.page-header .container {
    position: relative;
}

.page-header h1 {
    margin-bottom: 0.75rem;
}

.page-header .lead {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
}

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

.breadcrumb span {
    color: var(--text-secondary);
}

/* --- CTA Banner --- */
.cta-banner {
    background-color: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* Faint decorative corner marks */
.cta-banner::before {
    content: '┌';
    position: absolute;
    top: 8px;
    left: 12px;
    color: var(--accent-border);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    line-height: 1;
}

.cta-banner::after {
    content: '┘';
    position: absolute;
    bottom: 8px;
    right: 12px;
    color: var(--accent-border);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    line-height: 1;
}

.cta-banner h2 {
    margin-bottom: 0.75rem;
}

.cta-banner h2::before {
    content: none;
}

.cta-banner p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
}

/* --- Two Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* --- Content Prose --- */
.prose {
    max-width: 720px;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose h3 {
    margin-top: 2rem;
}

.prose ul,
.prose ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    list-style: disc;
    color: var(--text-secondary);
    line-height: 1.7;
}

.prose ol li {
    list-style: decimal;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col ul li {
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    margin: 0;
}

/* --- News List --- */
.news-list {
    margin-top: 2rem;
}

.news-card {
    display: flex;
    gap: 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.news-card:hover {
    border-color: var(--accent-border);
    border-left-color: var(--accent-hover);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.04);
}

.news-card-body h3 a {
    color: var(--text-heading);
}

.news-card-body h3 a:hover {
    color: var(--accent);
}

.news-card-meta {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.news-card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Decorative Elements --- */

/* Section divider with dot */
.section+.section:not(.section-alt),
.section-alt+.section {
    position: relative;
}

/* Monospace accents for labels */
.label-mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

/* Glow effect for important elements */
.glow-accent {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.05rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .page-header {
        padding: 2.5rem 0 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: 0.75rem;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 0.65rem 0.875rem;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        background-color: transparent;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-banner {
        padding: 1.5rem;
    }

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

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

    .hero h1 {
        font-size: 1.5rem;
    }

    .link-url {
        flex-direction: column;
        align-items: stretch;
    }

    .link-url .copy-btn {
        text-align: center;
    }
}