/* Base Variables */
:root {
    --primary-hsl: 164 85% 16%;
    --primary: hsl(var(--primary-hsl));
    --primary-hover: hsl(164 85% 12%);
    --primary-foreground: hsl(0 0% 100%);
    
    --secondary-hsl: 155 12% 93%;
    --secondary: hsl(var(--secondary-hsl));
    --secondary-hover: hsl(155 12% 88%);
    --secondary-foreground: hsl(160 30% 18%);
    
    --foreground: hsl(160 30% 18%);
    --muted-foreground: hsl(160 8% 42%);
    --accent: hsl(164 55% 28%);
    --accent-hover: hsl(164 55% 22%);
    --border: hsl(155 15% 88%);
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-premium: 0 4px 24px -4px hsl(164 85% 16% / 0.18);
    --shadow-card: 0 1px 3px 0 hsl(164 30% 20% / 0.06), 0 1px 2px -1px hsl(164 30% 20% / 0.04);
    --shadow-card-hover: 0 12px 40px -10px hsl(164 85% 16% / 0.22), 0 4px 14px -2px hsl(164 30% 20% / 0.1);
    
    --gradient-section: linear-gradient(180deg, transparent 0%, hsl(164 85% 16% / 0.03) 100%);
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
}

.section-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 72rem; /* 1152px */
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}
@media (min-width: 640px) {
    .section-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .section-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.page-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    position: relative;
}
@media (min-width: 768px) {
    .page-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

.prose-content {
    font-size: 1rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}
@media (min-width: 768px) {
    .prose-content {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
}

.pattern-bg {
    background-image: radial-gradient(hsl(164 85% 16% / 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

.section-gradient {
    background: linear-gradient(180deg, #ffffff, #edf0f2);
}

.bg-secondary-subtle {
    background-color: hsla(155, 12%, 93%, 0.3);
}

.section-divider {
    position: relative;
    height: 1px;
    width: 6rem;
    margin: 3rem auto;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* Grid columns & utilities */
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-12 { gap: 3rem; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-with-icon {
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground) !important;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffffff;
    transition: var(--transition);
}

.shadow-scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Fixed height for header */
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 48px;
    max-height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

/* Navigation */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--foreground);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-actions .nav-link {
    font-weight: 500;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--foreground);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Account for fixed header */
    overflow: hidden;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* Darken video to make text readable */
    z-index: 2;
}

.hero-content {
    display: flex;
    justify-content: flex-start; /* Left aligned or centered? Screenshot shows it centered in its wrapper, but maybe the wrapper is center-left */
    /* Screenshot shows the text slightly left-aligned or centered within a central max-width box. Let's center it or align it based on typical layouts. */
    justify-content: flex-start;
    position: relative;
    z-index: 10;
}

.hero-text-wrapper {
    max-width: 800px;
    color: #ffffff;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-body {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero-body p {
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Sections General */
.section {
    padding: 6rem 0;
}

.section-container {
    max-width: 900px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(6, 75, 57, 0.05);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--muted-foreground);
    font-size: 1.1rem;
    line-height: 1.6;
}

.bg-white { background-color: #ffffff; }
.bg-secondary { background-color: var(--secondary); }

/* Anlagelösungen Section */
.section-container-left {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.badge-dot {
    margin-right: 0.3rem;
    font-size: 1.2rem;
    line-height: 1;
}

.mb-12 {
    margin-bottom: 4rem;
}

.pill-label {
    font-family: var(--font-serif);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.card-group {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.anlage-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: var(--foreground);
    padding: 1rem;
    min-width: 150px;
    height: 90px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.anlage-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card-main-text {
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-sans);
}

.card-sub-text {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    opacity: 0.8;
}

.anlage-card.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(6, 75, 57, 0.15);
}

/* FINMA Section */
.finma-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}
@media (min-width: 1024px) {
    .finma-flex {
        flex-direction: row;
        justify-content: space-between;
        gap: 4rem;
    }
}

.finma-text {
    flex: 1;
}

.finma-image-wrapper {
    flex-shrink: 0;
}

.finma-logo-img {
    height: 48px; /* h-12 */
    width: auto;
    display: block;
    transition: var(--transition);
}
@media (min-width: 768px) {
    .finma-logo-img {
        height: 64px; /* h-16 */
    }
}

.finma-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.finma-link:hover {
    color: var(--accent-hover);
}
.finma-link svg {
    width: 1rem;
    height: 1rem;
}

/* Premium Card */
.premium-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background-color: #ffffff;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-card:before {
    content: "";
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, hsl(164 85% 16% / 0.03) 0%, transparent 50%);
}
.premium-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    border-color: rgba(6, 75, 57, 0.2);
}
.premium-card:hover:before {
    opacity: 1;
}

/* Accent Line under Headings */
.accent-line {
    position: relative;
}
.accent-line:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 4rem;
    border-radius: 9999px;
    background-color: var(--primary);
}

/* Blur backgrounds */
.absolute-blur {
    position: absolute;
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background-color: hsla(164, 85%, 16%, 0.05);
    border-radius: 50%;
    filter: blur(64px);
    transform: translate(50%, -50%);
    pointer-events: none;
}

.absolute-blur-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 18rem;
    height: 18rem;
    background-color: hsla(164, 55%, 28%, 0.05);
    border-radius: 50%;
    filter: blur(64px);
    transform: translate(-50%, 50%);
    pointer-events: none;
}

/* Card Glow and layouts */
.icon-glow {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background-color: rgba(6, 75, 57, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
    transition: background-color 0.3s ease;
}
.premium-card:hover .icon-glow {
    background-color: rgba(6, 75, 57, 0.15);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* About Section Graphic */
.absolute-pulse-ring {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    border: 1px solid rgba(6, 75, 57, 0.1);
    animation: pulse-ring 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@media (min-width: 768px) {
    .absolute-pulse-ring {
        width: 20rem;
        height: 20rem;
    }
}
@keyframes pulse-ring {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.08); }
}

.main-circle {
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background-color: #f2f7f5; /* Very subtle green/grey from screenshot */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5ebe9;
    position: relative;
}
@media (min-width: 768px) {
    .main-circle {
        width: 20rem;
        height: 20rem;
    }
}

.circle-backdrop {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    left: 1.5rem;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); /* Extremely subtle inner shadow effect to lift it */
}

.block-text {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.small-badge-70 {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background-color: #317b62; /* Matched to the specific green in the screenshot */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white {
    color: #ffffff;
}

.active-highlight {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

.active-highlight .text-foreground {
    color: #ffffff !important;
}

/* Media Section */
.media-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(155, 155, 155, 0.2);
}
@media (max-width: 1024px) {
    .media-logos-container {
        flex-wrap: wrap;
        gap: 2rem;
        padding: 1.5rem;
    }
}

.logo-item {
    transition: var(--transition);
}
.logo-item:hover {
    transform: scale(1.05);
}

/* CTA Section */
.absolute-blur-cta {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background-color: rgba(32, 110, 87, 0.1);
    border-radius: 50%;
    filter: blur(64px);
    transform: translate(50%, 50%);
    pointer-events: none;
}

.cta-btn {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    background-color: transparent !important;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.cta-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Footer */
.footer {
    background-color: #032a20; /* Darker green */
    color: white;
    padding: 4rem 0 2rem 0;
}

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

.footer-logo {
    height: 35px;
    display: block;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}

.footer-heading {
    color: white;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.finma-text-small {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-list { gap: 1.5rem; }
    .hero-title { font-size: 3.5rem; }
    .finma-grid, .regulation-grid, .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-graphic { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .header-actions { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; }
    .btn-large { width: 100%; }
    
    .grid-2x2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
