:root {
    --pink: #EC306B;
    --text-dark: #1E293B;
    --text-gray: #4A5568;
    --bg-blue: #E9F3FC;
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: white;
}

.main-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.pink {
    color: var(--pink);
}

.italic {
    font-style: italic;
}

.bold {
    font-weight: 600;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--pink);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

.btn-primary:hover {
    background-color: #D1255C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 48, 107, 0.3);
}

/* Header */
header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    /* Tightened from 30px */
    max-width: 1320px;
    margin: 0 auto;
}

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

.logo-img {
    height: 55px;
    /* Scaled down perfectly */
    width: auto;
    object-fit: contain;
    margin-left: 2px;
}

.top-nav-btn {
    padding: 10px 24px;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--bg-blue);
    background-image: url('BookKeeper_bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 0 6%;
    height: 100vh;
    min-height: 620px;
    /* Highly responsive for small viewports to eradicate all scrolling */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1320px;
    margin: max(10px, 4vh) auto 0 auto;
    /* Actively pushes the text chunk down to elegantly bridge the gap on taller screens */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.hero-title {
    font-size: 46px;
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-title span {
    font-size: 43px;
    font-weight: 600;
}

.hero-btn {
    padding: 12px 28px;
    font-size: 14px;
}

.hero-right-text {
    max-width: 300px;
    font-size: 18px;
    /* Compacted */
    line-height: 1.5;
    color: var(--text-gray);
    font-weight: 500;
    margin-top: 110px;
    /* Shifted drastically downwards based on user preference */
}

/* Fan & Spinner Assembly */
.fan-wrapper {
    position: absolute;
    bottom: 50px;
    /* Deepened seat exactly matching the native 20% lowest-depth coordinate point of the white SVG trough (250px * 0.20 = 50px) */
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    /* Pushed the wheel up to full max 100% nominal radius per user request */
    transform-origin: bottom center;
    width: 600px;
    height: 360px;
    z-index: 20;
}

.fan-wheel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.fan-anim-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    transform-origin: 300px 300px;
    will-change: transform;
}

.fan-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.wedge-bg {
    fill: rgba(255, 255, 255, 0.35);
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 1px;
    stroke-linejoin: round;
    transition: fill 0.4s cubic-bezier(0.1, 0.8, 0.1, 1), filter 0.4s ease, stroke 0.4s ease;
}

.wedge-element.active .wedge-bg {
    fill: url(#center-blue-grad);
    stroke: #ffffff;
    stroke-width: 2px;
    filter: url(#glow);
}

.spin-ui {
    position: absolute;
    top: 300px;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 30;
}

.spin-pointer {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid #8FAEC9;
    margin-bottom: -2px;
    z-index: 35;
}

.spin-outer-ring {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.spin-inner-button {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #E6F3FE 0%, #FFFFFF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: var(--pink);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.spin-inner-button:hover {
    transform: scale(1.05);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.04), 0 5px 15px rgba(236, 48, 107, 0.2);
}

.spin-inner-button:active {
    transform: scale(0.95);
}

/* Transition & Section Below */
.white-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
    /* Stripped firmly back down under the spinner's z-index 20 so the wheel naturally sits cleanly overlapping on top of the arc natively */
    width: 100%;
    height: 250px;
    /* Stretched upwards while the bottom remains fixed implicitly at 0 */
}

.plateau-content {
    position: absolute;
    top: 20%;
    /* Safely anchors geometrically at the start of the plateau line */
    bottom: 0;
    /* Fully expands to bounding contour */
    left: 0;
    width: 100%;
    padding: 0 max(6%, calc((100% - 1320px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Dynamically vertically centers the text entirely proportionally across changes */
    pointer-events: none;
    z-index: 10;
}

.plateau-text {
    font-size: 20px;
    line-height: 1.4;
    color: var(--text-dark);
}

.plateau-text.left {
    text-align: left;
}

.plateau-text.right {
    text-align: right;
}

.luck-claim-section {
    background-color: white;
    padding: 0px 8% 80px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.luck-text,
.claim-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
}

.claim-text {
    text-align: right;
    padding-right: 20px;
}

.luck-text {
    padding-left: 20px;
}

/* Stats Section */
.stats-section {
    background-color: white;
    padding: 60px max(6%, calc((100% - 1320px) / 2)) 80px;
    /* Included 60px top padding to cleanly escape the SVG overflow */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.stats-left {
    flex: 1;
}

.stats-title {
    font-size: 50px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 60px;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    color: var(--pink);
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-gray);
}

.stats-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.stats-image {
    width: 70%;
    /* Comprehensively shrunk structurally downwards so both height and width organically contract at highest quality */
    height: auto;
    /* Mathematically flexes the exact aspect ratio perfectly natively, preventing all image stretching or funhouse mirror warping */
    display: block;
    border-radius: 12px;
    /* Noticeably rounder, softer corners */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    /* Balanced shadow to wrap around the top corners making them visible */
}

/* Results Section */
.results-section {
    background: url('resultbg.png') no-repeat center center / cover;
    /* Utilizes the supplied image as an edge-to-edge backdrop */
    padding: 100px max(6%, calc((100% - 1320px) / 2)) 100px;
}

.results-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 70px;
}

.results-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.result-card {
    position: relative;
    border: none;
    /* Stripped exact flat border to be cleanly replaced by the pseudo container */
    border-radius: 12px;
    display: flex;
    align-items: center;
    min-height: 100px;
    padding: 25px 0;
    background-color: transparent;
    /* fallback */
}

/* Pseudo element dynamically rendering a masked gradient border line perfectly wrapping the 12px boundaries natively */
.result-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* Card Background hue */
.result-card.icon-left {
    background-color: rgba(229, 242, 252);
    /* #E5F2FC injected precisely with 40% alpha opacity layer */
    padding-left: 90px;
    padding-right: 40px;
}

.result-card.icon-left::before {
    background: linear-gradient(to left, rgba(3, 61, 84, 1), rgba(255, 255, 255, 1));
}

.result-card.icon-right {
    background-color: rgba(229, 242, 252);
    /* #E5F2FC uniformly coded over to 40% transparent alpha channel */
    padding-left: 40px;
    padding-right: 90px;
}

.result-card.icon-right::before {
    background: linear-gradient(to right, rgba(3, 61, 84, 1), rgba(255, 255, 255, 1));
}

/* Icon Cutout Illusion */
.rc-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: rgba(229, 242, 252, 1);
    /* #E5F2FC alpha backing synced explicitly natively to the card backdrop hue */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    z-index: 5;
    /* Powerfully overrides the card z-indexes so the icon natively floats overlapping directly over them */
}

/* Pseudo element trick to perfectly render linear-gradient border onto a transparent round container */
.rc-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1px;
    /* Thin requested border size */
    background: linear-gradient(to bottom, rgba(3, 61, 84, 1), rgba(255, 255, 255, 1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.icon-left .rc-icon {
    left: -40px;
}

.icon-right .rc-icon {
    right: -40px;
}

.rc-icon img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.rc-main {
    flex: 1;
}

.icon-left .rc-main {
    padding-right: 20px;
}

.icon-right .rc-main {
    padding-left: 20px;
    text-align: right;
}

.result-card h3 {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
}

.result-card h3 span.blue {
    color: #3b82f6;
    /* Modern UI blue */
}

.rc-desc {
    width: 260px;
}

.rc-desc p {
    font-size: 18px;
    line-height: 1.4;
    color: var(--text-gray);
    font-weight: 500;
}

.icon-left .rc-desc {
    text-align: left;
}

.icon-right .rc-desc {
    text-align: left;
}

.footer-btn-container {
    background-color: white;
    text-align: center;
    padding: 20px 0 100px 0;
}

.footer-btn-container .hero-btn {
    min-width: 380px;
    /* Extremely expanded button width */
    padding: 18px 40px;
    /* Taller click area */
    font-size: 18px;
    letter-spacing: 0.5px;
    border-radius: 50px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .stats-section {
        flex-direction: column;
    }

    .stats-image {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .stats-title {
        font-size: 34px;
        line-height: 1.25;
        margin-bottom: 30px;
    }

    .footer-btn-container .hero-btn {
        min-width: auto;
        width: 100%;
        max-width: 320px;
        padding: 15px 20px;
        font-size: 16px;
    }

    .result-card.icon-left,
    .result-card.icon-right {
        flex-direction: column;
        padding: 50px 20px 30px !important;
        margin-top: 40px;
        gap: 15px;
        text-align: center;
    }

    .result-card .rc-icon {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        top: -40px;
    }

    .result-card .rc-main,
    .result-card .rc-desc {
        padding: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }

    .result-card h3 {
        font-size: 20px;
    }

    .result-card .rc-desc p {
        font-size: 15px;
    }

    .result-card .rc-desc p br {
        display: none;
    }
}

/* Services Section */
.services-section {
    padding: 100px max(6%, calc((100% - 1320px) / 2)) 100px;
    background: transparent;
}

.services-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 70px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 290px);
    justify-content: space-between;
    gap: 50px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    min-height: 80px;
    padding: 15px 0;
    background-color: transparent;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.service-card.icon-left {
    background-color: rgba(229, 242, 252, 1);
    padding-left: 70px;
    padding-right: 20px;
}

.service-card.icon-left::before {
    background: linear-gradient(to left, rgba(3, 61, 84, 1), rgba(255, 255, 255, 1));
}

.sc-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: rgba(229, 242, 252, 1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    z-index: 5;
    left: -30px;
}

.sc-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(to bottom, rgba(3, 61, 84, 1), rgba(255, 255, 255, 1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.sc-img {
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    position: relative;
    z-index: 10;
}

.sc-main {
    flex: 1;
    padding-left: 10px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .service-card {
        flex-direction: column;
        padding: 40px 15px 20px !important;
        text-align: center;
        justify-content: center;
    }

    .service-card.icon-left {
        padding-left: 15px;
        padding-right: 15px;
    }

    .service-card .sc-icon {
        left: 50% !important;
        transform: translateX(-50%);
        top: -30px;
    }

    .service-card .sc-main {
        padding-left: 0;
        width: 100%;
    }

    .service-card h3 {
        font-size: 16px;
    }
}
 
/* Form Section */
.form-section {
    background-color: white;
    padding: 30px max(6%, calc((100% - 1320px) / 2)) 30px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 80px;
}

.form-left {
    flex: 1;
}

.form-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.form-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 12px;
}

.form-subtitle {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.4;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s ease; 
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: grey;
    opacity: 0.9;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--pink);
}

.error-msg {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 2px;
    display: none;
    font-weight: 500;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #e53e3e;
}

.form-group.has-error .error-msg {
    display: block;
}

.form-submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    margin-top: 5px;
}

@media (max-width: 900px) {
    .form-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px 6% 30px;
    }
    
    .form-image {
        max-height: 28vh;
        width: 100%;
        object-fit: cover;
    }
    
    .form-title {
        font-size: 26px;
        margin-bottom: 8px;
    }
    
    .form-subtitle {
        margin-bottom: 15px;
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* Footer Section */
.footer-section {
    background-image: url('BookKeeper_footer_bg.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    background-color: #f6fbff;
    padding: 200px max(6%, calc((100% - 1320px) / 2)) 40px;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    gap: 20px;
}

.footer-right-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
}

.footer-logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item img {
    width: 22px;
    height: auto;
    object-fit: contain;
}

.footer-contact .divider {
    color: var(--text-gray);
    font-weight: 300;
}

.footer-company-info {
    text-align: right;
}

.footer-company-info h4 {
    font-size: 24px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 2px;
}

.footer-company-info p {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 400;
    margin-bottom: 0px;
    margin-top: 0px;
}

@media (max-width: 1024px) {
    .footer-bottom-row {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }
    
    .footer-right-block {
        align-items: center;
    }
    
    .footer-company-info {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-contact {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-contact .divider {
        display: none;
    }
    
    .footer-section {
        padding-top: 160px;
        background-size: contain;
    }
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(26, 54, 93, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    position: relative;
}

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

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pink);
    /* Project pink */
    margin-bottom: 10px;
}

.modal-text {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.prize-result-box {
    background: linear-gradient(135deg, #f8faff, #e6f3fe);
    border: 1px solid #cce5ff;
    padding: 20px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.4;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.modal-close-btn {
    width: 100%;
    font-size: 16px;
    padding: 14px 0;
}

.modal-close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 0.8;
    color: #94a3b8;
    /* Soft slate gray */
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 5px;
}

.modal-close-icon:hover {
    color: var(--pink);
    transform: scale(1.1);
}

/* =======================================
   Responsive Viewports
======================================= */

/* Desktop */
@media (min-width: 1025px) {
    /* Reserved intrinsically for scaling ultrawide boundary definitions */
}

/* Intermediate Tablet & Mobile Ranges */
/* Intermediate Tablet & Mobile Ranges */
@media (max-width: 900px) {

    /* Scales down the massive desktop title strictly visually preventing vertical layout crush without altering standard flow alignments */
    .hero-title {
        font-size: 46px !important;
        line-height: 1.1 !important;
        margin-bottom: 25px;
    }

    .hero-title span.pink.italic {
        font-size: 50px !important;
        display: block;
        margin-top: 5px;
    }

    /* Instantly hides the awkward subtext string dynamically protecting intermediate tablet geometric visual limits */
    .hero-right-text {
        display: none !important;
    }

    /* Extends the explicit clearance margin physically pushing the massive wheel safely fully above the plateau limit natively */
    .fan-wrapper {
        transform: translateX(-50%) scale(0.70);
        /* Mathematically crunched back downwards structurally dodging layout collisions whilst retaining emphasis */
        bottom: 80px;
        /* Forcefully shifted geometrically upwards visually reversing the previous crush strictly conforming to spacing aesthetics */
    }

    /* Slices the excessive desktop height cleanly exactly per user directive */
    .white-transition {
        height: 170px;
    }

    /* Shifts the graphical texts cleanly upwards into the new smaller container safely */
    .plateau-content {
        align-items: flex-start;
        padding-top: 25px;
    }
}

/* Mobile */
@media (max-width: 480px) {

    /* Navbar Scaling */
    .logo-img {
        height: 32px;
    }

    .top-nav-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 20px;
    }

    /* Hero Section Architecture */
    .hero-section {
        background-image: url('BookKeeper_mobile_bg.png');
        /* Overrides background uniquely for cellphones */
        height: 100svh;
        /* Locks directly onto horizontal constraints */
        min-height: 650px;
    }

    /* Aggressively explicit Top-Level Parent Flex Flow locking mobile strictly into a column */
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Disintegrates the wrapping DOM struct to violently allow native flex ordering on its nested direct children */
    .hero-left {
        display: contents;
    }

    /* Precise Screenshot Title Scaling */
    .hero-title {
        font-size: 42px !important;
        line-height: 1.2 !important;
        order: 1;
        /* Locks firmly up top */
        text-align: center;
        /* Bruteforce native explicit centering */
        width: 100%;
        /* Forcibly expands geometric bounds securing centering parity */
    }

    .hero-title span.pink.italic {
        font-size: 40px !important;
        display: block;
    }

    /* Subtext string handling explicitly mapped identically to the visual */
    .hero-right-text {
        display: block !important;
        /* Restores missing semantic visibility dynamically overridden rigidly inside the 900px architecture */
        order: 2;
        /* Physically slides securely between the Title and the huge Button */
        margin: -10px auto -20px auto;
        /* Vacuum pulled the top margin upwards by 20px natively dragging it exactly right under the title */
        max-width: 280px !important;
        /* Math boundary guaranteeing exactly two lines */
        font-size: 14px !important;
        line-height: 1;
        text-align: center;
        width: 100%;
    }

    .hero-right-text br {
        display: none;
    }

    .hero-right-text div {
        text-align: center !important;
        display: inline !important;
    }

    /* Extends the button explicitly acting like a huge responsive horizontal block under the text */
    .hero-btn {
        order: 3;
        /* Firmly anchored on the bottom explicitly per screenshot */
        width: 260px;
        max-width: 80%;
        padding: 15px 10px;
        font-size: 16px;
        border-radius: 30px;
    }

    /* Scales up the wheel element and levitates it just over the curve */
    .fan-wrapper {
        transform: translateX(-50%) scale(0.67);
        bottom: 90px;
    }

    .white-transition {
        height: 155px;
        /* Strips excess bottom thickness out of the transition container entirely */
    }

    .plateau-content {
        align-items: flex-start;
        /* Instantly rips text out of vertical geometric center */
        padding-top: 25px;
        /* Reduces the native vector gap specifically sliding typography high up towards the curve rim */
    }

    .plateau-text {
        font-size: 12px !important;
    }

    /* Safely adjusts the inner spin button text so it looks proportionally identical */
    .spin-inner-button {
        font-size: 16px;
    }
}

/* Sub-Mobile Scaling constraint preserving clearance above the wheel */
@media (max-width: 440px) {
    .hero-btn {
        width: 210px;
        /* Reduced mass laterally restricting overlap spread */
        padding: 10px 10px;
        /* Slimmed padding vertically compressing the footprint */
        font-size: 14px;
        margin-bottom: 5px;
        /* Safely shrinks adjacent void buffer pulling it away from collision */
    }

    .fan-wrapper {
        bottom: 65px;
        /* Specifically dragged downwards from 90px cleanly increasing the vertical void beneath the button array */
    }
}

/* =======================================
   Scroll Animation Utilities
======================================= */

.anim-hidden {
    opacity: 0 !important;
    will-change: opacity, transform;
    /* Softened and heavily slowed to 1.8s for premium feel */
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1), transform 1.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.anim-fade-up {
    transform: translateY(25px) !important;
}

.anim-fade-left {
    transform: translateX(25px) !important; 
}

.anim-fade-right {
    transform: translateX(-25px) !important; 
}

.anim-zoom {
    transform: scale(0.97) !important;
}

.anim-show {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) scale(1) !important;
}
