:root {
    --primary-gradient: linear-gradient(135deg, #f26522 0%, #ff8c42 100%);
    --dark-gradient: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    --primary-orange: #f26522;
    --dark-blue: #0f172a;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #334155;
    background-color: #f8fafc;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark-blue);
}

/* Navbar */
.navbar-saas {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand-saas {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-link-saas {
    color: #475569 !important;
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link-saas:hover {
    color: var(--primary-orange) !important;
}

/* Hero Section */
.hero-section {
    background: var(--dark-gradient);
    color: #fff;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(242, 101, 34, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -100px;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.text-gradient-orange {
    background: var(--primary-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 35px;
    line-height: 1.6;
}

.btn-gradient {
    background: var(--primary-gradient);
    color: #fff !important;
    border: none;
    padding: 14px 30px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.45);
}

.btn-outline-saas {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-saas:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Features */
.feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(242, 101, 34, 0.2);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(242, 101, 34, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 28px;
    color: var(--primary-orange);
}

/* Pricing */
.pricing-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border: 2px solid var(--primary-orange);
    box-shadow: 0 10px 30px rgba(242, 101, 34, 0.1);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: #fff;
    padding: 5px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Register Section */
.saas-footer {
    background: #1a1a2e;
    color: #a0aec0;
    font-size: 0.85rem;
    padding: 24px 0;
    text-align: center;
}

.saas-footer p {
    margin-bottom: 0;
}

.register-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 100px 0;
}

.register-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    overflow: hidden;
}

.register-info-panel {
    background: var(--dark-gradient);
    color: #fff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.register-form-panel {
    padding: 50px;
}

/* Form Fields Styling */
.form-control-saas {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-control-saas:focus {
    background-color: #fff;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.1);
    outline: none;
}

.input-group-saas {
    position: relative;
}

.subdomain-badge {
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-left: none;
    padding: 12px 18px;
    border-radius: 0 10px 10px 0;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
}

.input-subdomain {
    border-radius: 10px 0 0 10px !important;
}

/* Phone Mockup Styling */
.phone-mockup-wrapper {
    perspective: 1000px;
    display: inline-block;
    margin-top: 10px;
}

.phone-mockup {
    width: 290px;
    height: 540px;
    background: #0f172a;
    border: 10px solid #1e293b;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(242, 101, 34, 0.15);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    transform: rotateY(-8deg) rotateX(8deg);
    transition: all 0.5s ease;
    animation: floatPhone 6s ease-in-out infinite;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.03);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(242, 101, 34, 0.25);
}

@keyframes floatPhone {
    0% { transform: translateY(0px) rotateY(-8deg) rotateX(8deg); }
    50% { transform: translateY(-12px) rotateY(-4deg) rotateX(4deg); }
    100% { transform: translateY(0px) rotateY(-8deg) rotateX(8deg); }
}

.phone-notch {
    width: 90px;
    height: 18px;
    background: #1e293b;
    border-radius: 20px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    padding: 35px 16px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 1) 40%, rgba(10, 15, 30, 1) 100%);
}

.app-header-mock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.app-avatar-mock {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-welcome-text {
    font-size: 0.65rem;
    color: #94a3b8;
}

.app-route-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #ffffff;
}

.app-bell-mock {
    color: #94a3b8;
    font-size: 1rem;
}

/* Bus Cabin Simulation - Formato Real de Ônibus */
.bus-cabin-mock {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 10px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px 28px 12px 12px;
    padding: 12px;
    flex-grow: 1;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.bus-windshield {
    height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px 12px 4px 4px;
    margin-bottom: 8px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.bus-windshield::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.3);
    bottom: 2px;
    left: 35%;
    border-radius: 10px;
}

.bus-front-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.driver-seat-mock {
    display: flex;
    align-items: center;
    gap: 5px;
}

.steering-wheel-icon {
    font-size: 0.9rem;
    color: var(--primary-orange);
    animation: turnSteeringWheel 4s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes turnSteeringWheel {
    0% { transform: rotate(-30deg); }
    100% { transform: rotate(30deg); }
}

.seat-label-driver {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.door-mock {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px dashed rgba(16, 185, 129, 0.25);
}

.door-mock i {
    font-size: 0.65rem;
    color: #10b981;
}

.door-label-mock {
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #10b981;
    letter-spacing: 0.5px;
}

.wc-seat-mock {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px dashed rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
    font-size: 0.6rem;
    grid-column: 4 / span 2;
    width: 100% !important;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.seats-grid-mock {
    display: grid;
    grid-template-columns: 1fr 1fr 20px 1fr 1fr;
    gap: 6px 4px;
    align-items: center;
    justify-items: center;
}

.seat-mock {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.seat-mock.aisle {
    width: 20px;
    height: 32px;
    background: transparent;
    pointer-events: none;
}

.seat-mock.available {
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
}

.seat-mock.reserved {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    border: none;
}

.seat-mock.selected {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 0 12px rgba(242, 101, 34, 0.6);
    animation: pulseSelectedSeat 1.5s infinite alternate;
}

@keyframes pulseSelectedSeat {
    0% {
        box-shadow: 0 0 8px rgba(242, 101, 34, 0.5);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 16px rgba(242, 101, 34, 0.8);
        transform: scale(1.05);
    }
}

.seats-legend-mock {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    font-size: 0.55rem;
    color: #94a3b8;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

.legend-dot.available { border: 1px solid rgba(255, 255, 255, 0.3); }
.legend-dot.reserved { background: rgba(255, 255, 255, 0.15); }
.legend-dot.selected-pulse {
    background: var(--primary-orange);
    box-shadow: 0 0 6px var(--primary-orange);
}

/* Glassmorphic Ticket Widget */
.app-ticket-widget-mock {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 12px 14px;
}

.ticket-small-label {
    font-size: 0.55rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.ticket-val-highlight {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
}

.app-cta-button-mock {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 8px 16px;
    width: 100%;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
    transition: all 0.3s ease;
}

.app-cta-button-mock:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(242, 101, 34, 0.5);
}

@keyframes custom-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.custom-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: custom-spin .6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
