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

:root {
    --background: #f8fbfd;
    --foreground: #1a1f36;
    --card: #ffffff;
    --card-foreground: #1a1f36;
    --primary: #3b5bdb;
    --primary-foreground: #f8fbfd;
    --secondary: #f0f4f8;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --primary-light: #e8ecf9;
    --radius: 12px;
}

html.dark {
    --background: #0f1419;
    --foreground: #f0f4f8;
    --card: #1a202c;
    --card-foreground: #f0f4f8;
    --primary: #4f7dff;
    --primary-foreground: #0f1419;
    --secondary: #2d3748;
    --muted-foreground: #cbd5e0;
    --border: #2d3748;
    --primary-light: #1a2847;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Navbar */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background-color: rgba(248, 251, 253, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

html.dark nav {
    background-color: rgba(15, 20, 25, 0.8);
}

html.dark .nav-logo,
html.dark .logo-brand {
    color: #7dd3fc;
    text-shadow: 0 0 12px rgba(125, 211, 252, 0.45);
}

.nav-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .logo-img {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 28px;
        height: 28px;
    }
}

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

.nav-links {
    display: flex;
    gap: 16px;
    font-size: 13px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .nav-links {
        gap: 24px;
        font-size: 14px;
    }
}

.nav-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s;
}

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

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 50%;
}

.theme-toggle:hover {
    background-color: var(--secondary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: transparent;
}

html.dark .hero-bg {
    background: transparent;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--background));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: slideInDown 0.8s ease-out;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 24px;
    background-color: var(--primary-light);
    border-radius: 50%;
    border: 1px solid rgba(59, 91, 219, 0.2);
    backdrop-filter: blur(4px);
}

.hero-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--foreground);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

.hero p {
    font-size: 20px;
    color: var(--muted-foreground);
    max-width: 700px;
    margin: 0 auto 16px;
    font-weight: 300;
    line-height: 1.6;
}

.hero-date {
    font-size: 12px;
    font-weight: 500;
    color: rgba(59, 91, 219, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main Content */
main {
    max-width: 1200px;
    width: 100%;
    margin: -80px auto 0;
    position: relative;
    z-index: 20;
    padding: 0 24px;
    box-sizing: border-box;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 250px 1fr;
    }
}

/* Sidebar */
aside {
    display: none;
}

@media (min-width: 1024px) {
    aside {
        display: block;
    }

    .toc {
        position: sticky;
        top: 100px;
        border-left: 2px solid var(--border);
        padding-left: 24px;
        space-y: 8px;
    }

    .toc h3 {
        font-family: 'Playfair Display', serif;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 24px;
        color: var(--foreground);
    }

    .toc a {
        display: block;
        font-size: 14px;
        color: var(--muted-foreground);
        text-decoration: none;
        padding: 8px 0;
        transition: color 0.3s;
        border-left: 2px solid transparent;
        padding-left: 8px;
        margin-left: -8px;
    }

    .toc a:hover {
        color: var(--primary);
    }
}

/* Content Card */
.content-card {
    background-color: var(--card);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .content-card {
        padding: 24px;
    }
}

.intro-text {
    font-size: 18px;
    color: var(--muted-foreground);
    line-height: 1.8;
    margin-bottom: 48px;
}

.intro-text strong {
    color: var(--foreground);
    font-weight: 600;
}

/* Sections */
section {
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out backwards;
    scroll-margin-top: 100px;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-icon {
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.section-icon svg {
    width: 24px;
    height: 24px;
}

section:hover .section-icon {
    transform: scale(1.1);
}

/* Icon colors */
.icon-blue { background-color: #eff6ff; color: #0284c7; }
html.dark .icon-blue { background-color: rgba(2, 132, 199, 0.2); }

.icon-indigo { background-color: #f0f4ff; color: #4f46e5; }
html.dark .icon-indigo { background-color: rgba(79, 70, 229, 0.2); }

.icon-amber { background-color: #fffbeb; color: #d97706; }
html.dark .icon-amber { background-color: rgba(217, 119, 6, 0.2); }

.icon-emerald { background-color: #f0fdf4; color: #059669; }
html.dark .icon-emerald { background-color: rgba(5, 150, 105, 0.2); }

.icon-purple { background-color: #faf5ff; color: #a855f7; }
html.dark .icon-purple { background-color: rgba(168, 85, 247, 0.2); }

.icon-rose { background-color: #ffe4e6; color: #e11d48; }
html.dark .icon-rose { background-color: rgba(225, 29, 72, 0.2); }

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: bold;
    color: var(--foreground);
}

section p {
    color: var(--muted-foreground);
    margin-bottom: 16px;
    line-height: 1.8;
}

section strong {
    color: var(--foreground);
    font-weight: 600;
}

/* Lists */
section ul {
    list-style: none;
    margin-top: 24px;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
    background-color: var(--secondary);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.feature-item:hover {
    border-color: rgba(59, 91, 219, 0.2);
}

.feature-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    flex-shrink: 0;
}

.highlight-box {
    background-color: var(--secondary);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.highlight-box strong {
    color: var(--foreground);
}

/* Grid Layout */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 48px 0;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-item {
    background-color: var(--secondary);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(59, 91, 219, 0.1);
}

.grid-item h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--foreground);
}

.grid-item h3 svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.grid-item p {
    font-size: 14px;
    color: var(--muted-foreground);
}

/* Alert Box */
.alert-box {
    background-color: var(--primary-light);
    border: 1px solid rgba(59, 91, 219, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    color: var(--foreground);
}

html.dark .alert-box {
    background-color: rgba(59, 91, 219, 0.1);
}

/* Divider Section */
.divider {
    border-top: 1px solid var(--border);
    padding-top: 48px;
    margin-top: 48px;
}

/* CTA Section */
.cta-section {
    background-color: var(--secondary);
    border-radius: 16px;
    padding: 56px 48px;
    text-align: center;
    margin-top: 48px;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #4f46e5 50%, var(--primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    border-radius: 20px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(59, 91, 219, 0.25);
}

.cta-icon svg {
    width: 36px;
    height: 36px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.cta-section h2 {
    margin-bottom: 16px;
    font-size: 32px;
    position: relative;
    z-index: 1;
    color: var(--foreground);
}

.cta-subtitle {
    color: var(--muted-foreground);
    font-size: 17px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--foreground);
    padding: 8px 16px;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.cta-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cta-feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.cta-button-primary {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

html.dark .cta-button-primary {
    color: var(--foreground);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-button-primary:hover {
    background-color: var(--card);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 91, 219, 0.15);
}

html.dark .cta-button-primary:hover {
    background-color: rgba(59, 91, 219, 0.1);
    border-color: var(--primary);
}

.cta-button-primary:active {
    transform: translateY(0);
}

.cta-button-primary:hover svg {
    transform: translateX(3px);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

html.dark .cta-button-secondary {
    color: var(--foreground);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-button-secondary:hover {
    background-color: var(--card);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 91, 219, 0.15);
}

html.dark .cta-button-secondary:hover {
    background-color: rgba(59, 91, 219, 0.1);
    border-color: var(--primary);
}

.cta-button-secondary:active {
    transform: translateY(0);
}

.cta-button-secondary:hover svg {
    transform: translateX(3px);
}

/* Footer */
footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    padding: 60px 24px 32px;
    margin-top: 120px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer-grid {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground);
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 14px;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--secondary);
    transition: all 0.3s;
    color: var(--foreground);
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom p,
.footer-bottom a {
    font-size: 14px;
    color: var(--muted-foreground);
}

.footer-bottom p,
.footer-bottom a {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
}

.footer-bottom { justify-content: center; align-items: center; text-align: center; }
@media (min-width: 768px) { .footer-bottom { justify-content: center; align-items: center; text-align: center; } }
.footer-bottom i { color: var(--primary); }

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.3s;
}

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

.logo-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 16px;
}

.logo-brand svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

html::selection {
    background-color: rgba(59, 91, 219, 0.2);
    color: var(--primary);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet devices (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .nav-content {
        padding: 0 20px;
    }

    .nav-logo {
        font-size: 22px;
    }

    .nav-right {
        gap: 16px;
    }

    .hero {
        height: 50vh;
        min-height: 450px;
    }

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

    .hero p {
        font-size: 18px;
    }

    main {
        padding: 0 20px;
    }

    .container {
        padding: 0 20px;
    }

    .content-card {
        padding: 28px;
    }

    .intro-text {
        font-size: 17px;
        margin-bottom: 40px;
    }

    section {
        margin-bottom: 40px;
    }

    section h2 {
        font-size: 26px;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-item {
        padding: 14px;
        font-size: 13px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }

    .grid-item {
        padding: 20px;
    }

    .grid-item h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .grid-item p {
        font-size: 13px;
    }

    .cta-section {
        padding: 48px 32px;
    }

    .cta-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .cta-icon svg {
        width: 32px;
        height: 32px;
    }

    .cta-section h2 {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .cta-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .cta-features {
        gap: 24px;
        margin-bottom: 32px;
    }

    .cta-feature-item {
        font-size: 14px;
        padding: 7px 14px;
    }

    .cta-buttons {
        gap: 12px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 15px;
        min-width: 160px;
    }

    .cta-button svg {
        width: 18px;
        height: 18px;
    }

    .footer-grid {
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-section h4 {
        margin-bottom: 12px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .footer-section ul li {
        margin-bottom: 10px;
    }

    .footer-section ul li a {
        font-size: 13px;
    }
}

/* Mobile devices (up to 767px) */
@media (max-width: 767px) {
    .nav-content {
        padding: 0 16px;
        height: 56px;
    }

    .nav-logo {
        font-size: 18px;
        gap: 6px;
    }

    .nav-logo svg {
        width: 20px;
        height: 20px;
    }

    .nav-right {
        gap: 10px;
    }

    .nav-links {
        gap: 12px;
        font-size: 12px;
    }

    .nav-links a {
        padding: 4px 0;
    }

    .hero {
        height: 45vh;
        min-height: 380px;
        padding: 20px 16px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .hero-date {
        font-size: 11px;
    }

    main {
        margin-top: -60px;
        padding: 0 16px;
    }

    .container {
        padding: 0 16px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    aside {
        display: none !important;
    }

    .toc {
        display: none !important;
    }

    .content-card {
        padding: 24px;
        border-radius: 14px;
    }

    .intro-text {
        font-size: 16px;
        margin-bottom: 32px;
        line-height: 1.6;
    }

    section {
        margin-bottom: 36px;
        scroll-margin-top: 80px;
    }

    .section-header {
        gap: 10px;
        margin-bottom: 20px;
    }

    .section-icon {
        padding: 6px;
        border-radius: 6px;
    }

    .section-icon svg {
        width: 20px;
        height: 20px;
    }

    section h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    section p {
        font-size: 15px;
        margin-bottom: 14px;
        line-height: 1.7;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }

    .feature-item {
        padding: 12px;
        font-size: 13px;
        gap: 10px;
    }

    .highlight-box {
        padding: 16px;
        border-left-width: 3px;
        margin-top: 14px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 32px 0;
    }

    .grid-item {
        padding: 20px;
        border-radius: 12px;
    }

    .grid-item h3 {
        font-size: 16px;
        margin-bottom: 10px;
        gap: 10px;
    }

    .grid-item h3 svg {
        width: 18px;
        height: 18px;
    }

    .grid-item p {
        font-size: 14px;
        line-height: 1.5;
    }

    .alert-box {
        padding: 16px;
        border-radius: 10px;
        margin-top: 14px;
        font-size: 14px;
    }

    .divider {
        border-top: 1px solid var(--border);
        padding-top: 36px;
        margin-top: 36px;
    }

    .cta-section {
        padding: 36px 24px;
        margin-top: 36px;
        border-radius: 14px;
    }

    .cta-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .cta-icon svg {
        width: 28px;
        height: 28px;
    }

    .cta-section h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .cta-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .cta-features {
        gap: 12px;
        margin-bottom: 28px;
        flex-direction: row;
        justify-content: center;
    }

    .cta-feature-item {
        font-size: 12px;
        padding: 5px 10px;
    }

    .cta-feature-item svg {
        width: 18px;
        height: 18px;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 13px;
        border-radius: 10px;
        min-width: 140px;
        flex: 0 1 auto;
    }

    .cta-button svg {
        width: 18px;
        height: 18px;
    }

    footer {
        padding: 40px 16px 24px;
        margin-top: 80px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 28px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .footer-section p {
        font-size: 13px;
        line-height: 1.6;
    }

    .logo-brand {
        justify-content: center;
        margin-bottom: 12px;
        font-size: 16px;
    }

    .logo-brand svg {
        width: 18px;
        height: 18px;
    }

    .footer-section ul {
        list-style: none;
    }

    .footer-section ul li {
        margin-bottom: 8px;
    }

    .footer-section ul li a {
        font-size: 13px;
    }

    .social-links {
        justify-content: center;
        gap: 12px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 6px;
    }

    .social-links a svg {
        width: 16px;
        height: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        border-top: 1px solid var(--border);
        padding-top: 16px;
    }

    .footer-bottom p,
    .footer-bottom a {
        font-size: 12px;
    }

    .footer-links {
        gap: 16px;
        justify-content: center;
    }
}

/* Very small mobile devices (320px - 480px) */
@media (max-width: 480px) {
    .nav-content {
        padding: 0 12px;
        height: 52px;
    }

    .nav-logo {
        font-size: 16px;
        gap: 5px;
    }

    .nav-logo svg {
        width: 18px;
        height: 18px;
    }

    .nav-links {
        gap: 10px;
        font-size: 11px;
    }

    .theme-toggle {
        padding: 6px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .hero {
        height: 42vh;
        min-height: 340px;
        padding: 18px 12px;
    }

    .hero h1 {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .hero-icon {
        padding: 10px;
        margin-bottom: 18px;
    }

    .hero-icon svg {
        width: 22px;
        height: 22px;
    }

    .hero-date {
        font-size: 10px;
    }

    main {
        margin-top: -50px;
        padding: 0 12px;
    }

    .container {
        padding: 0 12px;
    }

    .content-card {
        padding: 20px;
        border-radius: 12px;
    }

    .intro-text {
        font-size: 15px;
        margin-bottom: 28px;
        line-height: 1.6;
    }

    section {
        margin-bottom: 32px;
    }

    .section-header {
        gap: 8px;
        margin-bottom: 16px;
    }

    .section-icon {
        padding: 5px;
        border-radius: 5px;
    }

    .section-icon svg {
        width: 18px;
        height: 18px;
    }

    section h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    section p {
        font-size: 14px;
        margin-bottom: 12px;
        line-height: 1.6;
    }

    .feature-list {
        gap: 10px;
        margin-top: 16px;
    }

    .feature-item {
        padding: 10px;
        font-size: 12px;
        gap: 8px;
    }

    .feature-item::before {
        width: 6px;
        height: 6px;
    }

    .highlight-box {
        padding: 14px;
        border-left-width: 3px;
        margin-top: 12px;
        font-size: 14px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 28px 0;
    }

    .grid-item {
        padding: 18px;
        border-radius: 10px;
    }

    .grid-item h3 {
        font-size: 15px;
        margin-bottom: 8px;
        gap: 8px;
    }

    .grid-item h3 svg {
        width: 16px;
        height: 16px;
    }

    .grid-item p {
        font-size: 13px;
        line-height: 1.5;
    }

    .alert-box {
        padding: 14px;
        border-radius: 8px;
        margin-top: 12px;
        font-size: 13px;
    }

    .divider {
        padding-top: 32px;
        margin-top: 32px;
    }

    .cta-section {
        padding: 32px 20px;
        margin-top: 32px;
        border-radius: 12px;
    }

    .cta-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .cta-icon svg {
        width: 26px;
        height: 26px;
    }

    .cta-section h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .cta-subtitle {
        margin-bottom: 24px;
        font-size: 14px;
    }

    .cta-features {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 24px;
        justify-content: center;
    }

    .cta-feature-item {
        font-size: 11px;
        padding: 4px 8px;
    }

    .cta-feature-item svg {
        width: 15px;
        height: 15px;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }

    .cta-button {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 10px;
        min-width: 120px;
        flex: 0 1 auto;
    }

    .cta-button svg {
        width: 16px;
        height: 16px;
    }

    footer {
        padding: 32px 12px 20px;
        margin-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        font-size: 12px;
        letter-spacing: 0.05em;
        margin-bottom: 10px;
    }

    .footer-section p {
        font-size: 12px;
        line-height: 1.6;
    }

    .logo-brand {
        justify-content: center;
        margin-bottom: 12px;
        font-size: 15px;
    }

    .logo-brand svg {
        width: 16px;
        height: 16px;
    }

    .footer-section ul li {
        margin-bottom: 6px;
    }

    .footer-section ul li a {
        font-size: 12px;
    }

    .social-links {
        justify-content: center;
        gap: 10px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .social-links a svg {
        width: 14px;
        height: 14px;
    }

    .footer-bottom {
        gap: 10px;
        padding-top: 12px;
    }

    .footer-bottom p,
    .footer-bottom a {
        font-size: 11px;
    }

    .footer-links {
        gap: 12px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .nav-content {
        height: 48px;
    }

    .hero {
        height: 35vh;
        min-height: 300px;
        padding: 15px 16px;
    }

    .hero h1 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    main {
        margin-top: -50px;
    }

    .content-card {
        padding: 20px;
    }

    .intro-text {
        font-size: 14px;
        margin-bottom: 24px;
    }

    section {
        margin-bottom: 28px;
    }

    section h2 {
        font-size: 20px;
    }

    section p {
        font-size: 13px;
    }

    .feature-list {
        gap: 10px;
    }

    .feature-item {
        padding: 10px;
        font-size: 12px;
    }

    footer {
        margin-top: 40px;
        padding: 24px 16px;
    }
}
