/* Inter - self-host */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('/fonts/inter-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('/fonts/inter-latin-ext-500-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url('/fonts/inter-latin-ext-600-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('/fonts/inter-latin-ext-700-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: 10px;
    z-index: 10000;
    background: #1d2f7a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    transform: translateY(-140%);
    transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #2f6df6;
    outline-offset: 2px;
    border-radius: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    color: #667EEA;
    text-decoration: none;
    text-decoration-color: transparent;
    transition: color 0.3s, text-decoration-color 0.3s;
}

a:hover {
    text-decoration: underline;
    text-decoration-color: currentColor;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.site-brand span {
    white-space: nowrap;
}

.site-logo {
    width: 40px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-left: auto;
}

.main-nav span {
    color: #6c757d;
    white-space: nowrap;
}

.main-nav a {
    color: #667eea;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #764ba2;
}

.main-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.main-nav a.btn,
.main-nav a.btn-small,
.main-nav a.btn:hover,
.main-nav a.btn-small:hover {
    color: #fff;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #d6dcf0;
    border-radius: 10px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #5867a8;
    border-radius: 2px;
}

.site-footer {
    margin-top: 24px;
    padding: 20px 10px 4px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(25, 35, 79, 0.78);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(8, 12, 28, 0.25);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 980;
}

.back-to-top:hover {
    transform: translateY(6px);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.legal-page {
    width: 100%;
}

.legal-page h1 {
    font-size: 36px;
    line-height: 1.2;
}

.legal-page h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.legal-page h3 {
    font-size: 19px;
    margin: 18px 0 8px;
}

.legal-page ul {
    margin: 10px 0 14px 20px;
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-section {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #eceff5;
}

.legal-section:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* Components */
.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    padding: 20px 30px;
}

.card-auth {
    max-width: 500px;
    margin: 60px auto;
}

.card-auth h2 {
    margin-bottom: 30px;
    color: #333;
}

.card-error {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 50px 30px;
}

.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.error-code {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 10px;
}

.error-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.error-message {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.alert-info {
    background: #eef;
    color: #33c;
    border: 1px solid #ccf;
}

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

.form-group-no-margin {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: #fff;
    color: #333;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Form Layouts */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-actions {
    grid-column: span 2;
    display: flex;
    gap: 10px;
}

/* Input Groups (e.g. Rate + Type) */
.input-group {
    display: flex;
    gap: 0;
}

.input-group input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-group select {
    width: 80px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: #f8f9fa;
    cursor: pointer;
}

.input-group select:focus {
    border-left: 2px solid #667eea;
}

.form-inline {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.form-inline .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.form-inline button {
    height: 46px;
    margin-top: 31px;
}

/* Buttons */
button,
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Status Dot */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-dot-active {
    background-color: #28a745;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

.status-dot-inactive {
    background-color: #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

/* Utilities */
.text-muted {
    color: #6c757d;
    font-size: 14px;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: #667eea;
}

.pricing-back-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.pricing-back-link:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.pricing-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
}

.text-bold {
    font-weight: bold;
}

.py-5 {
    padding-top: 50px;
    padding-bottom: 50px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 40px;
}

.d-inline-block {
    display: inline-block;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.gap-15 {
    gap: 15px;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.w-100 {
    width: 100%;
}

.no-decoration {
    text-decoration: none;
}

.no-decoration:hover,
.site-brand:hover,
a.btn:hover,
a.btn-small:hover,
.pricing-back-link:hover {
    text-decoration: none;
}

.word-break {
    word-break: break-all;
}

/* Stats specific */
.stats-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

#evolution {
    scroll-margin-top: 90px;
}

.stats-summary h3 {
    margin-bottom: 10px;
    font-size: 18px;
    opacity: 0.9;
}

.stats-summary p {
    font-size: 48px;
    font-weight: bold;
    margin: 0;
}

/* Period Selector */
.period-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: #f0f2f5;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.period-btn:hover {
    background: #e4e6e9;
    color: #333;
}

.period-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.period-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.period-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.period-nav-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.period-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.period-nav-link:hover .period-nav-btn {
    background: #e4e6e9;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.period-nav-text {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Chart */
.chart-container {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    position: relative;
}

.chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-line {
    fill: none;
    stroke: #667eea;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-area {
    fill: url(#chart-gradient);
    opacity: 0.2;
}

.chart-point {
    fill: white;
    stroke: #667eea;
    stroke-width: 2;
    transition: r 0.2s;
}

.chart-point:hover {
    r: 6;
    cursor: pointer;
}

.chart-point-clickable {
    cursor: pointer;
}

.chart-axis {
    stroke: #e0e0e0;
    stroke-width: 1;
}

.chart-label {
    fill: #999;
    font-size: 11px;
    text-anchor: middle;
}

.chart-grid {
    stroke: #f0f0f0;
    stroke-width: 1;
    stroke-dasharray: 4;
}

.chart-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    display: none;
    z-index: 10;
}

/* Responsiveness */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.actions-cell {
    padding: 8px;
}

.actions-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.actions-wrapper form {
    display: inline-block;
    margin: 0;
}

.mobile-only {
    display: none;
}

@media (max-width: 1100px) {
    .btn-text {
        display: none;
    }

    .btn-small {
        padding: 8px;
        min-width: 40px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 10px;
    }

    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    header.has-user-status {
        display: flex;
        row-gap: 0;
    }

    .header-top {
        width: 100%;
        justify-content: center;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
    }

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

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

    .form-inline button {
        margin-top: 10px;
        width: 100%;
    }

    .card {
        padding: 20px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }
}

/* Mobile Card Layout */
@media (max-width: 900px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .table-container {
        overflow-x: visible;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    td {
        border: none;
        padding: 5px 0;
        position: relative;
    }

    .col-public {
        font-size: 18px;
        padding-bottom: 5px;
    }

    .col-target {
        font-size: 14px;
        color: #667eea;
        padding-bottom: 10px;
        border-bottom: 1px solid #f5f5f5;
        margin-bottom: 10px;
    }

    .col-mobile-info {
        padding-bottom: 15px;
    }

    .mobile-info {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #666;
    }

    .actions-wrapper {
        padding-top: 10px;
        border-top: 1px solid #f5f5f5;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    header {
        padding: 16px 18px;
    }

    .header-top {
        justify-content: space-between;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 14px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a,
    .main-nav span {
        margin-left: 0;
    }

    .header-user-status {
        display: none;
    }

    .header-user-status.is-open {
        display: block;
        width: 100%;
        text-align: left;
        align-self: stretch;
    }

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

    .form-group.full-width,
    .form-actions {
        grid-column: span 1;
    }
}

/* Collapsible Section */
.collapsible-card {
    padding: 0;
    overflow: hidden;
}

.collapsible-header {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.3s;
}

.collapsible-header:hover {
    background: #f8f9fa;
}

.collapsible-header h2 {
    margin-bottom: 0;
}

.collapsible-toggle {
    font-size: 20px;
    transition: transform 0.3s;
    color: #667eea;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 30px;
}

.collapsible-card.open .collapsible-content {
    max-height: 1000px;
    /* Large enough to fit content */
    padding: 0 30px 30px 30px;
}

.collapsible-card.open .collapsible-toggle {
    transform: rotate(180deg);
}

@media (max-width: 480px) {
    .stats-summary p {
        font-size: 36px;
    }

    .period-selector {
        justify-content: center;
    }
}

/* Landing Page Styles */
.hero {
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 60px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-layout {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.hero-content {
    max-width: 720px;
}

.hero-brand-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-mini-logo {
    width: 60px;
    height: 36px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(19, 34, 86, 0.28));
}

.hero-brand-title {
    font-size: clamp(1.9rem, 3.1vw, 2.5rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.96);
    letter-spacing: 0.3px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-layout .hero-actions {
    justify-content: flex-start;
}

.hero-media {
    width: 100%;
    max-width: 620px;
    justify-self: end;
}

.hero-video-trigger {
    width: 100%;
    display: block;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    overflow: hidden;
    background: #1d2f7a;
    box-shadow: 0 14px 34px rgba(12, 19, 48, 0.28);
    cursor: pointer;
    line-height: 0;
    padding: 0;
}

.hero-video-trigger:hover {
    transform: translateY(-2px);
}

.hero-video-trigger:focus-visible {
    outline-offset: 4px;
}

.hero-video-thumb,
.hero-video-player {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-video-player {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    overflow: hidden;
    background: #1d2f7a;
    box-shadow: 0 14px 34px rgba(12, 19, 48, 0.28);
}

.hero-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: rgba(10, 16, 36, 0.78);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.hero-video-play svg {
    width: 28px;
    height: 28px;
    margin-left: 2px;
}

.hero-video-link-wrap {
    margin-top: 10px;
    text-align: center;
}

.hero-video-link {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.hero-video-error {
    margin-top: 10px;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.features {
    margin-bottom: 80px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.cta-bottom {
    text-align: center;
    padding: 60px 40px;
    background: white;
    margin-bottom: 80px;
}

.cta-bottom h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.hero-proof {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 600;
}

.landing-section {
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid #e8edf8;
    box-shadow: 0 10px 26px rgba(26, 38, 92, 0.1);
}

.landing-section h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.step-card {
    border: 1px solid #d2dcff;
    border-radius: 14px;
    padding: 18px;
    background: #f3f6ff;
    box-shadow: 0 4px 12px rgba(29, 47, 115, 0.06);
}

.step-badge {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.audience-list,
.benefits-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 12px;
}

.audience-list li,
.benefits-list li {
    padding-left: 24px;
    position: relative;
}

.audience-list li::before,
.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #4d63d7;
    font-weight: 700;
}

.example-box {
    background: #eaf0ff;
    border: 1px solid #c8d6ff;
    color: #2b3e73;
    border-radius: 10px;
    padding: 14px 16px;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.offer-item {
    border: 1px solid #d2dcff;
    border-radius: 14px;
    padding: 20px;
    background: #f3f6ff;
    box-shadow: 0 4px 12px rgba(29, 47, 115, 0.06);
}

.offer-item h3 {
    margin-bottom: 8px;
}

.reassurance {
    font-weight: 600;
    color: #4b5566;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.faq-item {
    border: 1px solid #d2dcff;
    border-radius: 12px;
    padding: 16px;
    background: #f3f6ff;
    box-shadow: 0 4px 12px rgba(29, 47, 115, 0.06);
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.faq-item p {
    color: #5e6573;
}

.forwho-hero {
    text-align: center;
}

.forwho-hero h1 {
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.15;
    margin-bottom: 12px;
}

.forwho-intro {
    max-width: 820px;
    margin: 0 auto;
    color: #5e6573;
    font-size: 19px;
}

.forwho-problem-list,
.forwho-not-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.forwho-problem-list li,
.forwho-not-list li {
    position: relative;
    padding-left: 28px;
}

.forwho-problem-list li::before {
    content: "!";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: #e2872d;
}

.forwho-not-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #4d63d7;
}

.forwho-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.forwho-profile-card {
    border: 1px solid #d2dcff;
    border-radius: 14px;
    padding: 18px;
    background: #f3f6ff;
    box-shadow: 0 4px 12px rgba(29, 47, 115, 0.06);
}

.forwho-profile-card h3 {
    margin-bottom: 8px;
}

.forwho-profile-card p {
    color: #5e6573;
    margin-bottom: 8px;
}

.forwho-profile-card p:last-child {
    margin-bottom: 0;
}

.forwho-not-section {
    border-color: #f2d3d8;
    background: #fff8f8;
}

.scenario-list {
    margin-left: 20px;
    display: grid;
    gap: 10px;
}

.scenario-list li {
    color: #4f5664;
    padding-left: 4px;
}

.usages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.usages-card {
    border: 1px solid #d2dcff;
    border-radius: 14px;
    padding: 18px;
    background: #f3f6ff;
    box-shadow: 0 4px 12px rgba(29, 47, 115, 0.06);
}

.usages-card h3 {
    margin-bottom: 10px;
}

.usages-card p {
    color: #5e6573;
    margin-bottom: 8px;
}

.usages-card p:last-child {
    margin-bottom: 0;
}

.usages-before-after {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.usages-ba-col {
    border: 1px solid #d2dcff;
    border-radius: 12px;
    background: #f8faff;
    padding: 16px;
}

.usages-ba-col h3 {
    margin-bottom: 8px;
}

.usages-ba-col p {
    margin-bottom: 8px;
    color: #5e6573;
}

.usages-ba-col p:last-child {
    margin-bottom: 0;
}

.usages-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.usages-activity-item {
    border: 1px solid #d2dcff;
    border-radius: 12px;
    background: #f8faff;
    padding: 14px;
}

.usages-activity-item h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.usages-activity-item p {
    color: #5e6573;
}

@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

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

    .hero-brand-row {
        margin-bottom: 10px;
    }

    .hero-brand-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-layout .hero-actions {
        justify-content: flex-start;
    }

    .hero-media {
        max-width: 100%;
        justify-self: stretch;
    }

    .hero-video-play {
        width: 68px;
        height: 68px;
    }

    .hero {
        padding: 60px 20px;
    }

    #evolution {
        scroll-margin-top: 70px;
    }

    .landing-section h2 {
        font-size: 24px;
    }

    .forwho-intro {
        font-size: 17px;
    }
}
