/* ===== NASCRETE — Premium Industrial Design System ===== */
:root {
    /* Brand — Bold industrial palette */
    --primary: #E63946;
    --primary-dark: #C41E3A;
    --primary-light: #FF5A6A;
    --primary-glow: rgba(230, 57, 70, 0.4);
    --accent: #F4A261;
    --accent-muted: rgba(244, 162, 97, 0.15);
    
    /* Dark industrial surfaces */
    --bg-base: #09090B;
    --bg-surface: #111113;
    --bg-elevated: #18181B;
    --bg-card: #1C1C1F;
    
    /* Light section (for contrast) */
    --light-bg: #FAFAFC;
    --light-surface: #FFFFFF;
    --white: #FFFFFF;
    
    /* Typography */
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --text-light: #94A3B8;
    --text-dark: #18181B;
    
    /* Borders & effects */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px rgba(230, 57, 70, 0.15);
    
    /* Layout */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.4s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Signika', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(230, 57, 70, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 9999;
}

body.menu-open {
    overflow: hidden;
}

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

/* ===== Navigation — Minimal glassmorphism ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.9);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: inherit;
}

.logo h2 {
    font-family: 'DM Sans', 'Signika', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

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

.logo .motto {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.nav-link.active {
    color: var(--primary);
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    padding: 10px 18px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-phone:hover {
    background: rgba(230, 57, 70, 0.2);
}

.btn-login {
    padding: 10px 24px;
    background: var(--primary);
    color: white !important;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.btn-login:hover {
    background: var(--primary-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Hero — Split layout with gradient mesh ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 90%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(230, 57, 70, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(244, 162, 97, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-base) 0%, rgba(9, 9, 11, 0.85) 40%, rgba(9, 9, 11, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 140px 0 100px;
}

.hero-title {
    font-family: 'DM Sans', 'Signika', sans-serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #c4c4c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.hero-subtitle strong {
    color: var(--primary);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

.service-area-badge,
.service-badge-24-7,
.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
}

.service-badge-24-7 {
    border-color: rgba(230, 57, 70, 0.3);
    background: rgba(230, 57, 70, 0.08);
}

.trust-stars {
    color: var(--accent);
    letter-spacing: 2px;
}

.service-area-text,
.badge-text,
.trust-text {
    color: var(--text-primary);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

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

.btn-block {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'DM Sans', 'Signika', sans-serif;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

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

/* ===== Service Area — Bento grid ===== */
.service-area {
    padding: 120px 0;
    background: var(--bg-surface);
}

.service-area .section-header h2 {
    color: var(--text-primary);
}

.service-area-content {
    max-width: 100%;
}

.service-area-details {
    width: 100%;
}

.service-area-map {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.area-card {
    background: var(--bg-card);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.area-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 57, 70, 0.2);
    box-shadow: var(--shadow);
}

.area-card:hover::before {
    opacity: 1;
}

.area-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', 'Signika', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.area-icon {
    flex-shrink: 0;
}

.area-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.service-area-note {
    padding: 40px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(244, 162, 97, 0.05) 100%);
    border: 1px solid rgba(230, 57, 70, 0.15);
    border-radius: var(--radius-lg);
    text-align: center;
}

.service-area-note p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-area-note strong {
    color: var(--primary);
}

/* ===== Services — Bento asymmetric grid ===== */
.services {
    padding: 120px 0;
    background: var(--light-bg);
}

.services .section-label {
    color: var(--primary-dark);
}

.services .section-header h2 {
    color: var(--text-dark);
}

.services .section-header p {
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

.service-card {
    background: var(--light-surface);
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:nth-child(1) { grid-column: span 2; }
.service-card:nth-child(3) { grid-row: span 2; }
.service-card:nth-child(5) { grid-column: span 2; }

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(230, 57, 70, 0.12);
    border-color: rgba(230, 57, 70, 0.15);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    padding: 14px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: var(--radius);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: 'DM Sans', 'Signika', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ===== About — Split with stats ===== */
.about {
    padding: 120px 0;
    background: var(--bg-surface);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text h2 {
    font-family: 'DM Sans', 'Signika', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.check-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.feature-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-family: 'DM Sans', 'Signika', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

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

/* ===== Contact — Dark card with gradient border ===== */
.contact {
    padding: 120px 0;
    background: var(--bg-base);
}

.contact .section-header h2 {
    color: var(--text-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    padding: 12px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: var(--radius);
    color: var(--primary);
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-item h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-item p a {
    color: var(--primary);
    text-decoration: none;
}

.info-item p a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.08);
}

.contact-form:focus-within {
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.1);
}

.form-title {
    font-family: 'DM Sans', 'Signika', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.concrete-info-section {
    background: var(--bg-elevated);
    padding: 28px;
    border-radius: var(--radius);
    margin: 28px 0;
    border: 1px solid var(--border);
}

.concrete-info-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.concrete-info-section .form-row {
    grid-template-columns: 1fr 1fr 1fr;
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.file-upload-group {
    margin: 20px 0;
    padding: 24px;
    background: var(--bg-elevated);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.file-upload-group:hover {
    border-color: var(--primary);
}

.file-upload-wrapper input[type="file"] {
    padding: 12px;
    color: var(--text-secondary);
}

.date-input-wrapper {
    position: relative;
}

.calendar-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-surface);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    font-family: 'DM Sans', 'Signika', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.motto-footer {
    color: var(--primary) !important;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem !important;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Floating phone ===== */
.floating-phone {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.floating-phone:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.5);
}

.floating-phone .phone-icon {
    width: 22px;
    height: 22px;
}

/* ===== Logo update for new brand ===== */
.logo h2::first-letter {
    color: var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .service-card:nth-child(1),
    .service-card:nth-child(3),
    .service-card:nth-child(5) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .service-area-map {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        background: var(--bg-surface);
        transition: left 0.4s var(--ease-out);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hero-content {
        max-width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .concrete-info-section .form-row {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .service-area-map {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .service-area-badge,
    .service-badge-24-7,
    .hero-trust-badge {
        justify-content: center;
    }

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

    .btn {
        width: 100%;
    }

    .floating-phone .phone-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .contact-form {
        padding: 32px 24px;
    }
}

/* ===== Shared page styles (calculator, login, terms, etc.) ===== */
.calculator-section,
.login-section {
    background: var(--bg-surface);
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.calculator-container,
.login-container {
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-form,
.calculator-results,
.login-box {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.calculator-form h3,
.calculator-results h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
}

.result-value {
    color: var(--primary);
}

.terms-content,
.release-form {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.terms-section-item h2,
.form-section h3 {
    color: var(--primary);
}

.page-header h1 {
    color: var(--text-primary);
}

/* ===== Downloads Page — Beautification ===== */
.downloads-section {
    min-height: 100vh;
    padding: 140px 0 100px;
    background: var(--bg-base);
}

.downloads-section .page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.downloads-section .page-header h1 {
    font-family: 'DM Sans', 'Signika', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.downloads-section .page-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.downloads-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.download-category {
    position: relative;
}

.download-category h2 {
    font-family: 'DM Sans', 'Signika', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.download-category h2::before {
    content: '';
    width: 6px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.download-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.download-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.download-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition);
}

.download-item:hover {
    transform: translateY(-6px);
    border-color: rgba(230, 57, 70, 0.2);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.download-item:hover::before {
    transform: scaleX(1);
}

.download-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.1);
    border-radius: var(--radius);
    transition: var(--transition);
}

.download-item:hover .download-icon {
    background: rgba(230, 57, 70, 0.18);
    transform: scale(1.08);
}

.download-info {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.download-info h3 {
    font-family: 'DM Sans', 'Signika', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.download-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.download-item .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
}

.downloads-note {
    margin-top: 3rem;
    padding: 28px 36px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(244, 162, 97, 0.05) 100%);
    border: 1px solid rgba(230, 57, 70, 0.15);
    border-radius: var(--radius-lg);
    text-align: center;
}

.downloads-note p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.7;
}

.downloads-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.downloads-note a:hover {
    text-decoration: underline;
}

.downloads-note strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .download-items {
        grid-template-columns: 1fr;
    }
}

/* ===== Modal base styles ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 28px;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Light theme modal for auth pages (white background) */
.auth-page .modal-content {
    background: var(--light-surface);
    border-color: var(--border-light);
}

.auth-page .modal-header h2 {
    color: var(--text-dark);
}

.auth-page .modal-description {
    color: var(--text-secondary);
}

.auth-page .modal-body .form-group label {
    color: var(--text-dark);
}

.auth-page .modal-body input {
    background: var(--light-bg);
    border-color: var(--border-light);
    color: var(--text-dark);
}

/* Form message (success/error) */
.form-message {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-message.info {
    background: rgba(59, 130, 246, 0.15);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Light theme form messages for auth pages */
.auth-page .form-message.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.auth-page .form-message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
