/* Rimesoft Public Website Styles - Based on gate-modern.css */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
}

/* Base */
body.rimesoft-public {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #0f1e35 0%, #1a2e4a 100%) !important;
    box-shadow: 0 2px 12px rgb(0 0 0 / 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.85;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f1e35 0%, #1a2e4a 60%, #0f1e35 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 9999px;
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #f1f5f9;
    letter-spacing: -0.03em;
}

.hero-title-accent {
    color: #818cf8;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-block;
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.btn-hero-secondary {
    display: inline-block;
    background: transparent;
    color: #94a3b8;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-hero-secondary:hover {
    color: #f1f5f9;
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.06);
}

/* Hero stats panel */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex-shrink: 0;
    width: 300px;
}

.hero-stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    padding: 1.4rem 1.25rem;
    text-align: center;
    transition: background 0.2s;
}

.hero-stat-card:hover {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.3);
}

.hero-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tool Cards */
.tool-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tool-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.tool-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Service Cards */
.service-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 3rem;
    border-radius: 1rem;
    margin: 4rem 0;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--text-primary);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Contact Form */
.contact-section {
    padding: 5rem 0;
}

.contact-info-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: #1e293b;
}

.footer h5,
.footer h6 {
    color: white;
}

.footer a {
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column;
    }
    .hero-stats {
        width: 100%;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Gradient Card (for More Tools) */
.gradient-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.gradient-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.gradient-card h3,
.gradient-card p {
    color: white;
}

/* Feature Highlight Box */
.feature-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon-sm {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ── RimePages Featured Banner ──────────────────────────────────────────── */
.rimepages-featured-banner {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #7C3AED 100%);
    border-radius: 1.25rem;
    padding: 2rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(99,102,241,.35);
}
.rimepages-featured-banner::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'%3E%3Ccircle cx='30' cy='30' r='20' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.rimepages-featured-badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    color: #fff;
    border-radius: 50px;
    padding: .2rem .9rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.rimepages-featured-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.rimepages-featured-icon {
    font-size: 3.5rem;
    line-height: 1;
    flex-shrink: 0;
}
.rimepages-featured-text {
    flex: 1;
    min-width: 240px;
}
.rimepages-featured-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: .4rem;
    letter-spacing: -.02em;
}
.rimepages-featured-text p {
    opacity: .88;
    margin-bottom: .75rem;
    font-size: .97rem;
}
.rimepages-featured-perks {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: .3rem 1.5rem;
}
.rimepages-featured-perks li {
    font-size: .88rem;
    opacity: .9;
}
.rimepages-featured-cta {
    text-align: center;
    flex-shrink: 0;
}
.rimepages-featured-price {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: .2rem;
}
.rimepages-featured-price sup {
    font-size: 1.2rem;
    vertical-align: top;
    margin-top: .4rem;
}
.rimepages-featured-price small {
    display: block;
    font-size: .8rem;
    font-weight: 400;
    opacity: .8;
    margin-top: .15rem;
}
.rimepages-featured-setup {
    font-size: .75rem;
    opacity: .65;
    margin-top: .1rem;
    margin-bottom: .5rem;
}
.btn-rimepages-featured {
    display: inline-block;
    background: #fff;
    color: #4F46E5;
    font-weight: 700;
    font-size: 1rem;
    padding: .65rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    margin-top: .75rem;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-rimepages-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    color: #4F46E5;
}
@media (max-width: 768px) {
    .rimepages-featured-body { flex-direction: column; align-items: flex-start; }
    .rimepages-featured-cta { width: 100%; }
    .rimepages-featured-text h2 { font-size: 1.3rem; }
}
