/* ============================================
   PAYLIO WEBSITE - COMPONENTS
   ============================================ */

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--bright-green);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(190, 230, 72, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(190, 230, 72, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--text-inverse);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(190, 230, 72, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(190, 230, 72, 0.4);
}

.btn-white {
    background: #ffffff;
    color: var(--text-primary);
    border: 2px solid var(--primary-blue);
}

.btn-white:hover {
    background: var(--calm-grey);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-icon svg {
    width: 24px;
    height: 24px;
}

/* Button group */
.btn-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: #ffffff;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--secondary-blue);
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--calm-grey);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--secondary-blue);
}

.card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Feature card variant */
.feature-card {
    text-align: center;
    padding: var(--space-2xl);
}

.feature-card .card-icon {
    margin: 0 auto var(--space-lg);
}

/* Stat card */
.stat-card {
    text-align: center;
    padding: var(--space-xl);
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: var(--space-xs);
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Testimonial card */
.testimonial-card {
    padding: var(--space-2xl);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-lg);
    left: var(--space-xl);
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary-blue);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-card blockquote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   GRIDS
   ============================================ */

.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(64, 125, 252, 0.15) 0%, transparent 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

.hero h1 {
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

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

.phone-mockup {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup img {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(5, 68, 209, 0.2));
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(64, 125, 252, 0.2) 0%, transparent 70%);
    border-radius: var(--radius-full);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        margin: 0 auto;
    }

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

    .phone-mockup {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .phone-mockup img {
        max-width: 280px;
    }

    .phone-frame {
        margin: 0 auto !important;
    }

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

@media (max-width: 480px) {
    .hero {
        padding-top: 120px;
    }

    .phone-mockup img {
        max-width: 220px;
    }

    /* Override for full-width phone screens - ignore .phone-mockup img max-width */
    .phone-mockup .phone-screen.full-width img {
        max-width: none !important;
        max-height: none !important;
    }

    .phone-frame {
        transform: scale(0.85) !important;
    }
}

@media (max-width: 768px) {
    /* Override for full-width phone screens - ensure max-width doesn't constrain */
    .phone-mockup .phone-screen.full-width img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        transform: none !important;
        filter: none !important;
    }

    .phone-frame {
        transform-origin: center center;
    }
}

/* ============================================
   TRUST BAR / STATS
   ============================================ */

.trust-bar {
    background: var(--surface-dark);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-2xl) 0;
}

.trust-bar .container {
    display: flex;
    justify-content: center;
    gap: var(--space-4xl);
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.trust-item .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: block;
    line-height: 1;
}

.trust-item svg {
    margin-bottom: 0;
}

.trust-item .label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: var(--space-sm);
}

@media (max-width: 768px) {
    .trust-bar .container {
        gap: var(--space-xl);
    }

    .trust-item .number {
        font-size: 2rem;
    }
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.steps {
    display: flex;
    gap: var(--space-xl);
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--border-light);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 auto var(--space-lg);
    position: relative;
    box-shadow: 0 10px 30px rgba(5, 68, 209, 0.2);
}

.step h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.step p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        gap: var(--space-2xl);
    }

    .steps::before {
        display: none;
    }

    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
        margin: 0 0 var(--space-md) 0;
    }

    .step h3 {
        margin-bottom: var(--space-sm);
    }

    .step p {
        margin: 0;
        max-width: 300px;
    }
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.cta-section {
    background: var(--gradient-primary);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--text-inverse);
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-section .form-input {
    color: var(--text-primary);
    background: #ffffff;
}

/* Split CTA */
.split-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.split-cta-item {
    padding: var(--space-3xl);
    text-align: center;
}

.split-cta-item:first-child {
    background: var(--gradient-primary);
}

.split-cta-item:last-child {
    background: var(--surface-dark);
    border: 1px solid var(--border-light);
    border-left: none;
}

.split-cta-item h3 {
    margin-bottom: var(--space-md);
}

.split-cta-item p {
    margin-bottom: var(--space-xl);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .split-cta {
        grid-template-columns: 1fr;
    }

    .split-cta-item:last-child {
        border-left: 1px solid var(--border-light);
        border-top: none;
    }
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(5, 68, 209, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Email signup form */
.email-signup {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.email-signup .form-input {
    width: 100%;
}

.email-signup .btn {
    width: 100%;
}

/* Honeypot field - visually hidden but accessible to bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    visibility: hidden !important;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: rgba(5, 68, 209, 0.1);
    color: var(--primary-blue);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-green);
}

.badge-accent {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-orange);
}

.badge-coming-soon {
    background: var(--gradient-accent);
    color: var(--text-dark);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
}

/* ============================================
   ICONS
   ============================================ */

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

/* ============================================
   ACCORDION (FAQ)
   ============================================ */

.accordion {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-light);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.accordion-trigger:hover {
    background: var(--surface-card);
}

.accordion-trigger svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.accordion-item.active .accordion-trigger svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 var(--space-xl) var(--space-lg);
    color: var(--text-muted);
}

/* ============================================
   PHONE MOCKUP PLACEHOLDER
   ============================================ */

.phone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0b274b;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    position: absolute;
    top: 40px; /* Below camera notch */
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 52px);
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* Full width variant for hero images */
.phone-screen.full-width img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: none !important;
}

.phone-screen-placeholder {
    position: absolute;
    top: 40px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-screen-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.phone-screen-placeholder p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   TRADE CATEGORIES GRID
   ============================================ */

.trades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
}

.trade-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.trade-item:hover {
    border-color: var(--primary-blue);
    background: var(--surface-card-hover);
    transform: translateY(-2px);
}

.trade-item span {
    font-size: 2rem;
}

.trade-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   COMING SOON OVERLAY
   ============================================ */

.coming-soon-overlay {
    position: relative;
    display: inline-block;
}

.coming-soon-overlay::after {
    content: 'Coming Soon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: var(--gradient-accent);
    color: var(--text-dark);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.coming-soon-overlay > * {
    opacity: 0.5;
    filter: grayscale(50%);
}
