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

:root {
    --color-primary: #1e3a5f;
    --color-primary-dark: #152a45;
    --color-accent: #2d7d46;
    --color-accent-light: #3a9957;
    --color-gold: #b8860b;
    --color-bg: #fafbfc;
    --color-white: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #5a6a7a;
    --color-border: #e5e9ed;
    --color-success: #22c55e;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Ticker - Slower speed */
.ticker-wrapper {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 120s linear infinite;
}

.ticker-content {
    display: flex;
    gap: 80px;
    padding-right: 80px;
    font-size: 14px;
    font-weight: 500;
}

.ticker-item {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.95;
}

.ticker-item::before {
    content: "✓";
    color: var(--color-success);
    font-weight: 700;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.header {
    background: var(--color-white);
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    color: var(--color-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.03em;
    word-break: break-word;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 11px;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

.header-trust {
    display: flex;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.trust-item svg {
    color: var(--color-accent);
}

/* Hero */
.hero {
    background: var(--color-white);
    padding: 60px 0 80px;
}

.hero .container {
    display: grid;
    gap: 48px;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Promise Box */
.promise-box {
    background: linear-gradient(135deg, #f0f7f1 0%, #e8f5e9 100%);
    border: 2px solid #c8e6c9;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.promise-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promise-text {
    display: flex;
    flex-direction: column;
}

.promise-text strong {
    font-size: 16px;
    color: var(--color-text);
}

.promise-text span {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--color-accent);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary.btn-white:hover {
    background: #f5f5f5;
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* Fraud Types */
.fraud-types {
    padding: 80px 0;
    background: var(--color-bg);
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

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

.fraud-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.fraud-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.fraud-icon {
    width: 56px;
    height: 56px;
    background: #eef2f7;
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.fraud-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.fraud-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Process */
.process {
    padding: 80px 0;
    background: var(--color-white);
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    text-align: center;
    padding: 0 16px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: white;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

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

.step-line {
    width: 60px;
    height: 2px;
    background: var(--color-border);
    margin-top: 28px;
    flex-shrink: 0;
}

/* CTA */
.cta {
    padding: 80px 0;
    background: var(--color-primary);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.cta h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 600;
    margin-bottom: 16px;
}

.cta p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.7;
}

.cta-guarantees {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cta-guarantees span {
    font-size: 14px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #1a2634;
    color: white;
    padding: 60px 0 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 12px;
    word-break: break-word;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .footer-logo {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        font-size: 12px;
    }
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.7;
    max-width: 360px;
}

.footer-promise h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.footer-promise ul {
    list-style: none;
}

.footer-promise li {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-promise li::before {
    content: "✓";
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    opacity: 0.5;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-white);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-bg);
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-border);
    color: var(--color-text);
}

/* Form */
.form-container {
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    max-height: calc(95vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.form-container form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.form-container form > *:not(.btn-submit) {
    flex-shrink: 0;
}

.form-container form .btn-submit {
    margin-top: auto;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-badge {
    display: inline-block;
    background: #e8f5e9;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.form-header h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px; /* Prevent iOS zoom on focus */
    color: var(--color-text);
    font-family: var(--font-sans);
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a6a7a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.btn-submit {
    width: 100%;
    background: var(--color-accent);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.btn-submit:hover {
    background: var(--color-accent-light);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-trust {
    margin-top: 20px;
    text-align: center;
    flex-shrink: 0;
    padding-bottom: 8px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .form-trust {
        margin-top: 8px;
        padding-bottom: 0;
        order: 1;
    }

    .form-container form {
        gap: 0;
    }

    .btn-submit {
        order: 0;
    }
}

.trust-badge svg {
    color: var(--color-accent);
}

/* Success */
.success-container {
    display: none;
    padding: 40px 28px;
    text-align: center;
}

.success-container.active {
    display: block;
}

.form-container.hidden {
    display: none;
}

.success-icon {
    color: var(--color-success);
    margin-bottom: 20px;
}

.success-container h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.success-text {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.consult-box {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px 20px;
}

.consult-box h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.consult-box p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-consult {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #25d366;
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-consult:hover {
    background: #20bd5a;
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .header .container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .header-trust {
        display: none;
    }

    .logo-icon {
        display: none;
    }

    .logo-name {
        font-size: 11px !important;
        line-height: 1.3;
        letter-spacing: 0.02em;
        word-break: break-word;
    }

    .logo-tagline {
        font-size: 10px !important;
    }

    .hero {
        padding: 30px 0 50px;
    }

    .hero-title {
        font-size: clamp(24px, 7vw, 36px) !important;
    }

    .hero-subtitle {
        font-size: 16px !important;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    .promise-box {
        padding: 20px;
    }

    .promise-icon {
        width: 40px;
        height: 40px;
    }

    .promise-icon svg {
        width: 20px;
        height: 20px;
    }

    .fraud-types, .process, .cta {
        padding: 50px 0;
    }

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

    .step-line {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .cta-guarantees {
        flex-direction: column;
        gap: 12px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        margin: 0;
    }

    .form-container {
        padding: 24px 20px;
        max-height: calc(95vh - 50px);
    }

    .form-header h2 {
        font-size: 22px !important;
    }

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

    .form-group input,
    .form-group select {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 48px; /* Better touch target */
    }

    .btn-submit {
        padding: 18px;
        font-size: 17px;
        margin-top: auto;
        margin-bottom: 0;
        position: sticky;
        bottom: 0;
        background: var(--color-accent);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        flex-shrink: 0;
        min-height: 56px; /* Better touch target */
        -webkit-tap-highlight-color: rgba(45, 125, 70, 0.3);
    }

    .form-container form {
        padding-bottom: 0;
    }


    .ticker-content {
        gap: 60px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px 10px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .btn-primary {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    .fraud-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .logo-name {
        font-size: 10px !important;
        line-height: 1.2;
    }

    .hero-title {
        font-size: clamp(22px, 8vw, 32px) !important;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 15px !important;
    }

    .form-container {
        padding: 20px 16px;
    }

    .form-header {
        margin-bottom: 20px;
    }

    .form-header h2 {
        font-size: 20px !important;
    }

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

    .btn-submit {
        padding: 16px;
        font-size: 16px;
        margin-top: auto;
        margin-bottom: 0;
        flex-shrink: 0;
        min-height: 52px; /* Better touch target */
    }

    .modal-content {
        border-radius: 16px 16px 0 0;
    }
}
