/* =============================================================================
   UangRumah - Home Page Specific Styles
   Styles unique to the landing page (index.html)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Hero Section
   ----------------------------------------------------------------------------- */
.hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 10rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(168, 216, 216, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(127, 200, 200, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(20, 163, 163, 0.1) 0%, transparent 50%);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #7FC8C8;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, #7FC8C8, #A8D8D8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    line-height: 1.7;
    color: #e2e8f0;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-primary {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #0D7377, #14A3A3);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(13, 115, 119, 0.4);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f0fafa, #e0f2f2);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-header {
    background: var(--gradient-primary);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

.phone-header-title {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.phone-header-amount {
    font-size: 1.75rem;
    font-weight: 700;
}

.phone-content {
    padding: 1rem;
    flex: 1;
}

.phone-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.phone-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.phone-card-title {
    font-size: 0.75rem;
    color: var(--text-medium);
}

.phone-card-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* -----------------------------------------------------------------------------
   Trust Badges Section
   ----------------------------------------------------------------------------- */
.trust-section {
    background: var(--white);
    padding: 3rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.trust-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: nowrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-medium);
}

.trust-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.trust-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-text strong {
    display: block;
    color: var(--text-dark);
    font-size: 1rem;
}

/* -----------------------------------------------------------------------------
   Key Features Section
   ----------------------------------------------------------------------------- */
.key-features {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    border-bottom: none;
    padding-bottom: 0;
    gap: 0;
}

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(20, 163, 163, 0.1), rgba(127, 200, 200, 0.1));
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
}

.key-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.key-feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.key-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(20, 163, 163, 0.1);
}

.key-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.key-feature-icon.purple { background: linear-gradient(135deg, #E0F2F2, #B8E0E0); }
.key-feature-icon.green { background: linear-gradient(135deg, #C8E8E8, #A8D8D8); }
.key-feature-icon.blue { background: linear-gradient(135deg, #D0ECEC, #B0DEDE); }
.key-feature-icon.orange { background: linear-gradient(135deg, #D8F0F0, #B8E2E2); }
.key-feature-icon.pink { background: linear-gradient(135deg, #E8F4F4, #C8E6E6); }
.key-feature-icon.cyan { background: linear-gradient(135deg, #C0E5E5, #A0D5D5); }

.key-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.key-feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* -----------------------------------------------------------------------------
   Features Detail Section
   ----------------------------------------------------------------------------- */
.features-detail {
    padding: 6rem 2rem;
    background: var(--white);
}

.features-category {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--gradient-primary);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 1.75rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white);
    border-color: #e2e8f0;
    box-shadow: var(--shadow);
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-card-icon {
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   How It Works Section
   ----------------------------------------------------------------------------- */
.how-it-works {
    padding: 6rem 2rem;
    background: var(--gradient-hero);
    color: var(--white);
}

.how-it-works .section-title {
    color: var(--white);
}

.how-it-works .section-subtitle {
    color: #d1d5db;
}

.how-it-works .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), rgba(255,255,255,0.2), transparent);
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.step-number span {
    font-size: 2rem;
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   Tech Specs Section
   ----------------------------------------------------------------------------- */
.tech-specs {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.spec-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.spec-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.spec-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.spec-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* -----------------------------------------------------------------------------
   CTA Section
   ----------------------------------------------------------------------------- */
.cta-section {
    padding: 6rem 2rem;
    background: var(--white);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--gradient-primary);
    padding: 4rem 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(13, 115, 119, 0.3);
}

.cta-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-container .cta-button {
    background: var(--white);
    color: var(--primary-dark);
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

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

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* -----------------------------------------------------------------------------
   Responsive - Trust Badges (1100px)
   Ensures 4-across -> 2x2 transition without awkward 3-1 layout
   ----------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .trust-container {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        gap: 2rem 3rem;
    }

    .trust-item {
        justify-content: center;
    }
}

/* -----------------------------------------------------------------------------
   Responsive - Tablet (1024px)
   ----------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .trust-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .trust-item {
        justify-content: center;
    }

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

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

    .steps-grid::before {
        display: none;
    }

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

/* -----------------------------------------------------------------------------
   Responsive - Mobile (768px)
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero {
        padding: 7rem 1.25rem 3.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .trust-section {
        padding: 2rem 1.25rem;
    }

    .trust-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 340px;
        margin: 0 auto;
    }

    .trust-item {
        justify-content: flex-start;
        padding: 0.875rem 1rem;
        background: var(--bg-light);
        border-radius: 12px;
    }

    .trust-icon {
        flex-shrink: 0;
    }

    .section-title {
        font-size: 1.875rem;
    }

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

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

    .cta-container {
        padding: 2.5rem 1.25rem;
    }

    .cta-container h2 {
        font-size: 1.75rem;
    }

    .key-features {
        padding: 3.5rem 1.25rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-label {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

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

    .key-feature-card {
        padding: 1.75rem;
    }

    .key-feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .key-feature-card h3 {
        font-size: 1.1rem;
    }

    .key-feature-card p {
        font-size: 0.9rem;
    }

    .features-detail {
        padding: 4rem 1.5rem;
    }

    .features-category {
        margin-bottom: 3rem;
    }

    .category-header {
        margin-bottom: 1.5rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .category-title {
        font-size: 1.25rem;
    }

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

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .how-it-works {
        padding: 4rem 1.5rem;
    }

    .step-number {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }

    .step-number span {
        font-size: 1.5rem;
    }

    .step-card h3 {
        font-size: 1rem;
    }

    .step-card p {
        font-size: 0.85rem;
    }

    .tech-specs {
        padding: 4rem 1.5rem;
    }

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

    .spec-card {
        padding: 1.25rem;
    }

    .spec-icon {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .spec-label {
        font-size: 0.75rem;
    }

    .spec-value {
        font-size: 1rem;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }

    .cta-container .cta-button {
        font-size: 1rem;
        padding: 1rem 2rem;
    }

    .cta-container p {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

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

    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        min-height: 48px;
    }
}

/* -----------------------------------------------------------------------------
   Responsive - Extra Small (375px)
   ----------------------------------------------------------------------------- */
@media (max-width: 375px) {
    .hero {
        padding: 6rem 0.875rem 2.5rem;
    }

    .hero h1 {
        font-size: 1.625rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.75rem;
    }

    .hero-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.625rem;
    }

    .trust-section {
        padding: 1.5rem 0.875rem;
    }

    .trust-container {
        max-width: 100%;
        gap: 0.875rem;
    }

    .trust-item {
        padding: 0.75rem;
    }

    .trust-text strong {
        font-size: 0.875rem;
    }

    .trust-text span {
        font-size: 0.75rem;
    }

    .key-features,
    .features-detail,
    .how-it-works,
    .tech-specs,
    .cta-section {
        padding: 2.5rem 0.875rem;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .section-subtitle {
        font-size: 0.875rem;
    }

    .key-feature-card {
        padding: 1.25rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
    }

    .spec-card {
        padding: 0.875rem;
    }

    .cta-container {
        padding: 1.75rem 0.875rem;
        border-radius: 14px;
    }

    .cta-container h2 {
        font-size: 1.375rem;
    }

    .cta-container p {
        font-size: 0.875rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}
