/* ========================================
   STENIUM - Scandinavian Design
   Warm minimalism, hygge comfort
   ======================================== */

:root {
    --bg: #fafafa;
    --bg-warm: #f4f4f5;
    --bg-card: #ffffff;
    --text: #18181b;
    --text-light: #52525b;
    --text-muted: #a1a1aa;
    --primary: #18181b;
    --primary-hover: #27272a;
    --accent: #2563eb;
    --accent-light: #dbeafe;
    --border: #e4e4e7;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;

    --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.06);
    --shadow-md: 0 8px 30px rgba(45, 52, 54, 0.08);
    --shadow-lg: 0 20px 50px rgba(45, 52, 54, 0.12);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.75rem, 5vw, 4rem); }
h2 { font-size: clamp(2.25rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s var(--ease);
}

.nav.scrolled {
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.15em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    padding: 10px 24px;
    background: var(--text);
    color: white !important;
    border-radius: var(--radius-full);
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-primary {
    background: var(--text);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text);
    background: var(--text);
    color: white;
}

.btn-full { width: 100%; }

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.btn:hover svg { transform: translateX(4px); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.4) 0%, rgba(139, 92, 246, 0.3) 100%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(251, 146, 60, 0.2) 100%);
    bottom: -100px;
    left: -150px;
    animation-delay: -5s;
}

.shape-3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(59, 130, 246, 0.2) 100%);
    top: 30%;
    right: -200px;
    animation-delay: -10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%);
    top: 10%;
    left: 10%;
    animation-delay: -15s;
}

.hero-content {
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--text);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.hero h1 { margin-bottom: 20px; }

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; }

.stat-number {
    display: flex;
    align-items: baseline;
    height: 3rem;
}

.stat-value {
    font-family: var(--font-body);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Sections */
.section { padding: 100px 0; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Solutions Cards */
.solutions { background: var(--bg-warm); }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--accent);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card h3 { margin-bottom: 12px; }

.card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Process */
.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    text-align: center;
    padding: 24px;
}

.step-num {
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    display: block;
    margin-bottom: 16px;
}

.step h3 { margin-bottom: 8px; }

.step p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin-top: 48px;
    flex-shrink: 0;
}

/* Industries */
.industries { background: var(--bg-warm); }

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s var(--ease);
}

.industry-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.industry-item svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.industry-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

/* Choice Section */
.choice-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.choice-text .section-tag { display: block; text-align: left; }
.choice-text h2 { text-align: left; margin-bottom: 20px; }
.choice-text p { margin-bottom: 16px; color: var(--text-light); }

.choice-compare {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compare-box {
    padding: 28px;
    border-radius: var(--radius-lg);
}

.compare-box h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.compare-box ul {
    list-style: none;
}

.compare-box li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.compare-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.compare-old {
    background: var(--bg-warm);
    border: 1px solid var(--border);
}

.compare-old li { color: var(--text-muted); }
.compare-old li::before { background: var(--text-muted); opacity: 0.3; }

.compare-new {
    background: var(--text);
    color: white;
}

.compare-new h4 { color: white; }
.compare-new li { color: rgba(255, 255, 255, 0.9); }
.compare-new li::before { background: white; }

/* CTA */
.cta { background: var(--bg-warm); }

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.cta-text h2 { margin-bottom: 16px; }
.cta-text p { color: var(--text-light); font-size: 1.1rem; }

.cta-form {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
}

.form-group textarea { resize: vertical; min-height: 80px; }

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.footer-logo {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-location { margin-top: 8px; font-size: 0.875rem !important; }

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-bottom { text-align: center; }

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* Animations */
[data-motion] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-motion].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .choice-content,
    .cta-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .choice-text { text-align: center; }
    .choice-text .section-tag { text-align: center; }
    .choice-text h2 { text-align: center; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg);
        padding: 20px;
        gap: 16px;
        border-top: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }

    .nav-cta { width: 100%; text-align: center; }

    .mobile-menu-btn { display: flex; }

    .mobile-menu-btn.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero { text-align: center; padding-top: 100px; }
    .hero-content { margin: 0 auto; }
    .hero-actions { justify-content: center; }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        text-align: center;
    }

    .step-line { display: none; }

    .form-row { grid-template-columns: 1fr; }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .btn { width: 100%; }
    .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    [data-motion] { opacity: 1; transform: none; }
}
