:root {
    --primary-blue: #0052CC;
    --dark-gray: #212529;
    --light-bg: #F8F9FA;
    --border-color: #E5E5E5;
    --text-muted: #6C757D;
    --blueprint-line: rgba(0, 82, 204, 0.04);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-gray);
    background-color: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: 0;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 0;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

section:hover h2::after {
    width: 80px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #FFFFFF;
    border: 1px solid var(--primary-blue);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #0043a4;
    border-color: #0043a4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 82, 204, 0.2);
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: var(--dark-gray);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.form-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 540px;
    margin-top: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.form-group:focus-within {
    box-shadow: 0 12px 24px rgba(0, 82, 204, 0.1);
    transform: translateY(-2px);
}

.form-input {
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-right: none;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-blue);
}

.form-message {
    grid-column: 1 / -1;
    min-height: 24px;
    padding-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-message.success {
    color: #137333;
}

.form-message.error {
    color: #B3261E;
}

header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.logo span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover span {
    transform: rotate(45deg) scale(1.3);
}

.logo-button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-left: 32px;
    transition: color 0.2s ease;
    position: relative;
    padding: 4px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

nav .nav-cta {
    padding: 8px 16px;
    margin-left: 24px;
    min-height: 38px;
}

nav .nav-cta::after {
    display: none;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF;
}

.hero-background-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-background-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(115%) brightness(102%);
    opacity: 0.09;
}

.hero-background-overlay::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(to top, #FFFFFF, transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-info ul {
    list-style: none;
    margin-top: 24px;
}

.hero-info li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-muted);
    transform: translateX(-10px);
    opacity: 0;
    animation: slideInLeft 0.5s forwards;
}

.hero-info li:nth-child(1) { animation-delay: 0.2s; }
.hero-info li:nth-child(2) { animation-delay: 0.3s; }
.hero-info li:nth-child(3) { animation-delay: 0.4s; }
.hero-info li:nth-child(4) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-info li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 2px;
    background-color: var(--primary-blue);
}

.hero-mockup-container {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 550px;
}

.magazine-cover {
    width: 370px;
    height: 523px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 70px rgba(0, 82, 204, 0.1), 0 15px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(6deg);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

.magazine-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 10px;
    background: linear-gradient(to right, rgba(0,0,0,0.08), transparent);
    z-index: 3;
}

.cover-image {
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.magazine-cover:hover .cover-image {
    transform: scale(1.04);
}

.issue-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.flat-cover {
    width: 100%;
    aspect-ratio: 1 / 1.414;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.flat-cover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 82, 204, 0.08);
    border-color: var(--primary-blue);
}

.flat-cover-img {
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.flat-cover:hover .flat-cover-img {
    transform: scale(1.04);
}

.content-blocks {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.content-card {
    border-left: 2px solid var(--border-color);
    padding-left: 24px;
    transition: var(--transition-smooth);
}

.content-card:hover {
    border-left-color: var(--primary-blue);
    transform: translateX(6px);
}

.content-card p,
.cta-box p {
    color: var(--text-muted);
}

.tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-blue);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.issue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.archive-section {
    background-color: var(--light-bg);
}

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

.section-heading-row h2 {
    margin-bottom: 0;
}

.archive-filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.archive-filter select {
    min-width: 130px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    color: var(--dark-gray);
    font: inherit;
}

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

.archive-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: var(--transition-smooth);
}

.archive-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.mini-cover {
    width: 100%;
    aspect-ratio: 1 / 1.414;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.mini-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    color: #fff;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.archive-card:hover .mini-cover-overlay {
    transform: translateY(0);
}

.archive-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 6px;
}

.stat-item {
    border-top: 2px solid var(--dark-gray);
    padding-top: 20px;
    transition: var(--transition-smooth);
}

.stat-item:hover {
    border-top-color: var(--primary-blue);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.cta-box {
    background-color: var(--light-bg);
    padding: 40px;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--border-color);
}

.cta-box h3 {
    margin-bottom: 8px;
}

.cta-box p {
    max-width: 600px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

footer {
    background-color: #FFFFFF;
    padding: 60px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.footer-info .logo {
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.footer-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-form > span {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-gray);
}

.footer-form .form-group {
    margin-top: 0;
    width: 100%;
}

.copyright {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    font-size: 12px;
}

@media (max-width: 992px) {
    h1 {
        font-size: 34px;
    }

    section {
        padding: 72px 0;
    }

    .hero-grid,
    .issue-grid,
    .archive-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-mockup-container {
        order: -1;
        height: auto;
    }

    .magazine-cover {
        width: 100%;
        max-width: 340px;
        height: 450px;
        transform: none !important;
    }

    .cta-box,
    .section-heading-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-form {
        align-items: flex-start;
    }

    nav {
        display: none;
    }
}

@media (max-width: 620px) {
    .container {
        padding: 0 18px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 26px;
    }

    .form-group {
        grid-template-columns: 1fr;
        box-shadow: none;
    }

    .form-input {
        border-right: 1px solid var(--border-color);
    }

    .form-group .btn {
        width: 100%;
    }

    .cta-actions,
    .issue-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-actions .btn,
    .issue-actions .btn {
        width: 100%;
    }
}
