/* flatexDEGIRO Bank SE — Main Stylesheet */
:root {
    --orange: #F47323;
    --orange-hover: #d9621a;
    --orange-light: rgba(244, 115, 35, 0.08);
    --dark: #080707;
    --dark-800: #1a1a1a;
    --dark-700: #2d2d2d;
    --cream: #F9F6F8;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --text: #2b2b2b;
    --text-muted: #6c757d;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-hover); }

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

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    backdrop-filter: blur(8px);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.logo span { color: var(--orange); }
.logo:hover { color: var(--dark); }
.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-menu a {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}
.nav-menu a:hover {
    color: var(--orange);
    border-bottom-color: var(--orange);
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    padding: 8px;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-800) 100%);
    color: var(--white);
    padding: 80px 0 96px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244,115,35,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { max-width: 640px; position: relative; z-index: 1; }
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244,115,35,0.15);
    color: var(--orange);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}
.hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 520px;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--orange);
}
.hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-800); color: var(--white); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--dark); color: var(--white); }
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.6;
}
.section-header {
    margin-bottom: 48px;
}
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}
.card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.card-icon {
    width: 48px;
    height: 48px;
    background: var(--orange-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--orange);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== FEATURE ROWS ===== */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 40px 0;
}
.feature-row.reverse .feature-visual { order: -1; }
.feature-visual {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    border: 1px solid var(--gray-200);
}
.feature-visual svg { width: 120px; height: 120px; color: var(--orange); opacity: 0.6; }
.feature-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}
.feature-content p {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.7;
}
.feature-list {
    list-style: none;
    margin-top: 20px;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
}
.feature-list li svg {
    width: 20px;
    height: 20px;
    color: var(--orange);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== PRICING TABLE ===== */
.price-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
}
.price-table th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    padding: 16px 24px;
    text-align: left;
}
.price-table td {
    padding: 14px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-200);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--orange-light); }
.price-highlight {
    color: var(--orange);
    font-weight: 600;
}

/* ===== TIMELINE ===== */
.timeline { max-width: 720px; margin: 0 auto; }
.timeline-item {
    display: flex;
    gap: 24px;
    padding-bottom: 32px;
    position: relative;
}
.timeline-marker {
    width: 36px;
    height: 36px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}
.timeline-content h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.timeline-content p { font-size: 14px; color: var(--text-muted); }

/* ===== CONTACT FORM ===== */
.form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 640px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(244,115,35,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--orange);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}
.form-submit:hover { background: var(--orange-hover); }

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--dark);
    color: var(--white);
    padding: 56px 0 48px;
}
.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}
.page-header p {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    max-width: 520px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.4); }
.breadcrumb a:hover { color: var(--orange); }

/* ===== LEGAL PAGES ===== */
.legal-content {
    max-width: 800px;
    padding: 48px 0 80px;
}
.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 14px;
    color: var(--dark);
}
.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 10px;
}
.legal-content p {
    margin-bottom: 14px;
    line-height: 1.7;
    color: var(--gray-700);
}
.legal-content ul, .legal-content ol {
    margin: 12px 0 16px 24px;
    color: var(--gray-700);
}
.legal-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}
.legal-content a { color: var(--orange); }
.legal-content strong { color: var(--text); }

/* ===== TAB SYSTEM ===== */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-200); margin-bottom: 32px; }
.tab-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover {
    color: var(--orange);
    border-bottom-color: var(--orange);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== RISK BANNER ===== */
.risk-banner {
    background: var(--orange-light);
    border: 1px solid rgba(244,115,35,0.2);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.5;
}
.risk-banner svg { flex-shrink: 0; margin-top: 1px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    display: inline-block;
    margin-bottom: 12px;
}
.footer-logo span { color: var(--orange); }
.footer-logo:hover { color: var(--white); }
.footer-tagline {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.45);
}
.footer h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }
.footer-risk {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-risk svg { flex-shrink: 0; margin-top: 2px; }
.footer-risk p {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.45);
}
.footer-regulatory {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-regulatory p {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}
.footer-bottom {
    padding-top: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 16px 24px;
        border-bottom: 1px solid var(--gray-200);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
    .hero { padding: 48px 0 64px; }
    .hero h1 { font-size: 30px; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .section { padding: 48px 0; }
    .section-title { font-size: 26px; }
    .card-grid, .card-grid-4, .card-grid-2 { grid-template-columns: 1fr; }
    .feature-row { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.reverse .feature-visual { order: 0; }
    .feature-visual { min-height: 200px; padding: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .page-header h1 { font-size: 28px; }
    .price-table { font-size: 13px; }
    .price-table th, .price-table td { padding: 10px 12px; }
    .form-card { padding: 24px; }
}
