/* ============================================
   SafeReport Landing Page – Styles
   Based on vilepuhuja-landing design system
   ============================================ */

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

:root {
    --primary: #0e7c86;
    --primary-dark: #095c64;
    --primary-light: #12a3b0;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f7f9fc;
    --bg-dark: #0f172a;
    --bg-dark-card: #1e293b;
    --border: #e2e8f0;
    --border-light: #edf2f7;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1140px;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 700;
    color: var(--text-dark);
}

ul, ol { list-style: none; }

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   NAVIGATION
   =========================== */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.topnav:hover {
    box-shadow: var(--shadow);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nav-brand:hover {
    color: var(--primary) !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    text-decoration: none;
    transition: color var(--transition);
    white-space: nowrap;
}

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

.lang-link {
    background: var(--bg-light);
    padding: 6px 14px !important;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 13px !important;
}

.lang-link:hover {
    background: var(--border) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===========================
   HERO
   =========================== */
.hero {
    padding: 140px 24px 80px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 30%, #eff6ff 70%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 124, 134, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

.hero-sub {
    font-size: 19px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-trust span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(14, 124, 134, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(14, 124, 134, 0.4);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 14px 34px;
    font-size: 16px;
}

.btn-xl {
    padding: 18px 44px;
    font-size: 18px;
    border-radius: 12px;
    width: 100%;
}

/* ===========================
   SECTIONS
   =========================== */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--bg-dark);
    color: #e2e8f0;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #f1f5f9;
}

.section-dark p {
    color: #94a3b8;
}

.section-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    color: #fff;
}

.section-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    text-align: center;
    padding: 80px 24px;
}

.section-cta h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 12px;
}

.section-cta p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-header.light h2 {
    color: #fff;
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===========================
   CARDS (Problem section)
   =========================== */
.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 36px;
    margin-bottom: 16px;
    text-align: center;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

.card-warning {
    border-top: 3px solid #f59e0b;
}

.card-success {
    border-top: 3px solid var(--primary);
}

/* ===========================
   FEATURES GRID
   =========================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 14px;
    text-align: center;
}

.feature h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ===========================
   STEPS (How it works)
   =========================== */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.step {
    flex: 0 1 280px;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 16px;
}

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

.step p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
}

.step-arrow {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
    padding-top: 48px;
    flex-shrink: 0;
}

/* ===========================
   PRICING / REGISTRATION
   =========================== */
.pricing-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 8px;
    margin-top: 8px;
}

.pricing-price {
    margin: 16px 0 24px;
}

.price-amount {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.price-period {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

.pricing-features {
    text-align: left;
    margin-bottom: 28px;
}

.pricing-features li {
    font-size: 15px;
    color: var(--text-medium);
    padding: 7px 0;
    border-bottom: 1px solid var(--border-light);
    line-height: 1.5;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ===========================
   REGISTRATION FORM
   =========================== */
.register-form {
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-family);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.15);
    outline: none;
}

.form-group input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.valid {
    border-color: #22c55e;
}

.subdomain-wrapper {
    display: flex;
    align-items: center;
}

.subdomain-wrapper input {
    border-radius: 8px 0 0 8px;
    border-right: none;
    flex: 1;
}

.subdomain-suffix {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.35;
}

.subdomain-status {
    font-size: 13px;
    margin-top: 6px;
    min-height: 20px;
}

.subdomain-status.available { color: #16a34a; }
.subdomain-status.taken { color: #ef4444; }
.subdomain-status.checking { color: var(--text-light); }

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 6px;
    background: var(--border);
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    width: 0;
}

.strength-weak { width: 33% !important; background: #ef4444; }
.strength-medium { width: 66% !important; background: #f59e0b; }
.strength-strong { width: 100% !important; background: #22c55e; }

.field-error {
    font-size: 13px;
    color: #ef4444;
    margin-top: 4px;
}

/* Success state */
.register-success {
    display: none;
    text-align: center;
    padding: 24px 0;
}

.register-success .success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.register-success h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.register-success p {
    color: var(--text-medium);
    font-size: 15px;
    margin-bottom: 12px;
}

.success-links {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.success-link {
    display: block;
    background: var(--bg-light);
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--border);
    transition: all var(--transition);
    word-break: break-all;
}

.success-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.success-link small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 4px;
}

.success-link:hover small {
    color: rgba(255,255,255,0.8);
}

/* Loading button state */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   FAQ
   =========================== */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item summary:hover {
    background: var(--bg-light);
}

.faq-item p {
    padding: 0 24px 18px;
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #f1f5f9;
}

.footer-company-name {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #64748b;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 40px;
    }

    .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-inner.open .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

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

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

    .steps {
        flex-direction: column;
        align-items: stretch;
    }

    .step {
        flex: none;
    }

    .step-arrow {
        text-align: center;
        padding-top: 0;
        transform: rotate(90deg);
        font-size: 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .section-cta {
        padding: 60px 20px;
    }

    .section-cta h2 {
        font-size: 28px;
    }

    .pricing-card {
        padding: 36px 24px;
    }

    .price-amount {
        font-size: 44px;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .lang-link {
        margin-top: 4px;
    }

    .subdomain-suffix {
        font-size: 11px;
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

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

    .container {
        padding: 0 16px;
    }

    .feature {
        padding: 20px 18px;
    }
}

@media print {
    .topnav,
    .hero-cta,
    .section-cta,
    .nav-toggle {
        display: none !important;
    }

    .hero {
        padding-top: 20px;
    }

    .section {
        padding: 30px 0;
    }

    body {
        font-size: 12pt;
    }
}
