/* --- CSS Variables & Design Tokens --- */
:root {
    --primary: #11517D;
    --primary-light: #1A6B9E;
    --primary-dark: #0B3350;
    --accent: #27AE60;
    /* Success green / compliant */
    --accent-glow: rgba(39, 174, 96, 0.15);

    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-dark: #091F2F;
    --bg-darker: #05131E;

    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #E0E6ED;
    --text-dark-bg: rgba(255, 255, 255, 0.9);

    --border-color: #E2E8F0;
    --border-dark: rgba(255, 255, 255, 0.1);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 12px 30px rgba(17, 81, 125, 0.08);
    --shadow-lg: 0 22px 60px rgba(17, 81, 125, 0.14);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Layout Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(17, 81, 125, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 81, 125, 0.4);
}

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

.btn-secondary:hover {
    background-color: rgba(17, 81, 125, 0.05);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

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

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all var(--transition-smooth);
    background-color: transparent;
}

.header.scrolled {
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrap img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-download-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 4px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 200px 0 80px;
    background-color: transparent;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(100px);
    opacity: 0.12;
}

.hero-bg-shapes .shape-1 {
    width: 600px;
    height: 600px;
    background-color: var(--primary-light);
    top: -200px;
    right: -100px;
}

.hero-bg-shapes .shape-2 {
    width: 500px;
    height: 500px;
    background-color: var(--accent);
    bottom: -100px;
    left: -100px;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    justify-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(17, 81, 125, 0.06);
    border: 1px solid rgba(17, 81, 125, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero-tag .tag-icon {
    font-size: 0.9rem;
}

.hero-tag .tag-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
    text-align: center;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 auto 36px;
    max-width: 600px;
    text-align: center;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    width: 100%;
}

/* Language row */
.hero-lang-row {
    margin-bottom: 28px;
    width: 100%;
    text-align: center;
}

.hero-lang-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 10px;
}

.hero-lang-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(17, 81, 125, 0.06);
    border: 1px solid rgba(17, 81, 125, 0.12);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all var(--transition-fast);
    cursor: default;
}

.lang-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 112, 240, 0.25);
}

/* Hero badges strip */
.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    width: 100%;
    max-width: 700px;
}

.badge-item {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 10px;
}

.badge-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
}

.badge-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1px;
    display: block;
}

/* Floating GST symbol particles */
.gst-float {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    opacity: 0.06;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    animation: float-drift 8s ease-in-out infinite;
}

.gst-float-1 {
    font-size: 3.5rem;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.gst-float-2 {
    font-size: 2.5rem;
    top: 55%;
    left: 20%;
    animation-delay: 1.5s;
}

.gst-float-3 {
    font-size: 2.8rem;
    top: 40%;
    right: 12%;
    left: auto;
    animation-delay: 0.8s;
}

.gst-float-4 {
    font-size: 2.5rem;
    top: 75%;
    left: 12%;
    animation-delay: 2.2s;
}

.gst-float-5 {
    font-size: 3rem;
    top: 20%;
    right: 15%;
    left: auto;
    animation-delay: 0.4s;
}

.gst-float-6 {
    font-size: 2.2rem;
    top: 80%;
    right: 12%;
    left: auto;
    animation-delay: 3s;
}

.gst-float-7 {
    font-size: 2rem;
    top: 60%;
    right: 22%;
    left: auto;
    animation-delay: 1.2s;
}

.gst-float-8 {
    font-size: 3.2rem;
    top: 35%;
    left: 15%;
    animation-delay: 2s;
}

@keyframes float-drift {
    0%,
    100% {
        transform: translateY(0px) rotate(-3deg) scale(1);
    }
    50% {
        transform: translateY(-20px) rotate(3deg) scale(1.1);
    }
}

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

/* --- Premium Phone Frame Mockup --- */
.phone-frame-container {
    position: relative;
    width: 300px;
    transition: all var(--transition-smooth);
}

/* Floating info badges beside phone */
.phone-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    background: white;
    border: 1px solid rgba(17, 81, 125, 0.1);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: 10;
    white-space: nowrap;
    animation: badge-float 4s ease-in-out infinite;
}

.phone-badge svg {
    color: var(--primary);
    flex-shrink: 0;
}

.phone-badge-top {
    top: 60px;
    left: -110px;
    animation-delay: 0s;
}

.phone-badge-bottom {
    bottom: 100px;
    left: -90px;
    animation-delay: 1.5s;
}

@keyframes badge-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(26, 107, 158, 0.45) 0%, rgba(39, 174, 96, 0.25) 50%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(40px);
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.phone-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 12;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 8px solid #334155;
    border-radius: 44px;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.6),
        0 0 0 4px #0f172a inset,
        0 2px 20px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;
    display: block;
    border-radius: 36px;
}

.hero-phone-img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -26.5%;
    /* Crops the top app bar */
}

.phone-screen::after {
    display: none;
}

.phone-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background-color: #0f172a;
    border-radius: 20px;
    z-index: 9;
}

/* --- Stats Section --- */
.stats-section {
    padding: 60px 0;
    background-color: transparent;
    position: relative;
    margin-top: -30px;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-card {
    background-color: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(17, 81, 125, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background-color: rgba(26, 107, 158, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.stat-card h3 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

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

/* --- Section Global Title Structure --- */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background-color: rgba(17, 81, 125, 0.06);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-tag.light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bg-secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

.section-header h2 {
    font-size: 2.6rem;
    color: var(--primary-dark);
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* --- Core Features Section --- */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

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

.feature-card {
    background-color: var(--bg-primary);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    background-color: var(--bg-secondary);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 8px 20px rgba(17, 81, 125, 0.2);
    transition: transform var(--transition-fast);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(4deg);
}

.feature-card h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

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

/* --- GST Calculator Section --- */
.calculator-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.calculator-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 50%, rgba(0, 242, 254, 0.12) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.calculator-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.calc-info h2 {
    font-size: 2.6rem;
    color: white;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.calc-info p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
}

.calc-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calc-feat-item .feat-check {
    width: 24px;
    height: 24px;
    background-color: rgba(39, 174, 96, 0.2);
    color: #2ECC71;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.calc-feat-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

/* --- Live Pulse Animation --- */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #FF3B30;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    animation: pulse-live 1.6s infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes pulse-live {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

/* --- Calculator Form Box --- */
.calc-box-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.calc-box {
    width: 100%;
    max-width: 480px;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.calc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 6px;
    margin: 16px 16px 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-tab {
    background: none;
    border: none;
    padding: 12px 8px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border-radius: var(--radius-sm);
    line-height: 1.2;
    white-space: normal;
}

.calc-tab:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.03);
}

.calc-tab.active {
    color: white;
    background-color: var(--primary);
    box-shadow: 0 4px 15px rgba(17, 81, 125, 0.4);
}

.calc-body {
    padding: 24px 32px 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.form-group input:focus,
.form-group select:focus {
    border-color: #00F2FE;
    background-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.rate-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.rate-chip {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.rate-chip:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.35);
    color: white;
    transform: translateY(-1px);
}

.rate-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary-light);
    color: white;
    box-shadow: 0 4px 15px rgba(17, 81, 125, 0.4);
}

/* --- Receipt Simulation Panel --- */
.receipt-preview {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    height: 260px;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: #00F2FE;
    letter-spacing: 1px;
}

.receipt-dot {
    width: 6px;
    height: 6px;
    background-color: #2ECC71;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px #2ECC71;
}

.receipt-divider {
    height: 1px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin: 16px 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.receipt-row:last-of-type {
    margin-bottom: 0;
}

.receipt-total {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

.receipt-total #res-total {
    color: #00F2FE;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* --- App Showcase Section --- */
.screens-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Tab Navigation */
.features-tabs-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 40px auto;
    background: rgba(15, 23, 42, 0.03);
    padding: 8px;
    border-radius: var(--radius-full);
    max-width: fit-content;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.tab-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-smooth);
}

.tab-nav-btn svg {
    transition: transform var(--transition-fast);
}

.tab-nav-btn:hover {
    color: var(--primary-dark);
}

.tab-nav-btn:hover svg {
    transform: scale(1.1);
}

.tab-nav-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 112, 240, 0.2);
}

/* Tab Content */
.features-tabs-content {
    margin-top: 30px;
    position: relative;
    min-height: 580px;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tab-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.tab-text-side h3 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.tab-text-side p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.feature-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-bullets li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: var(--primary-dark);
    line-height: 1.5;
}

.feature-bullets li strong {
    font-weight: 700;
}

.feature-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -2px;
    width: 22px;
    height: 22px;
    background-color: rgba(0, 112, 240, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
}

/* Phone Mockup Styling */
.tab-visual-side {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.phone-mockup {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    background-color: #0F172A;
    border: 12px solid #0F172A;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-smooth);
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Phone Labels */
.phone-label {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Configurations for Single Phone Layout */
.single-phone {
    max-width: 260px;
    transform: rotate(-2deg);
}

.single-phone:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Configurations for 2-Phone Side-by-Side Layout */
.multi-phones {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0 40px;
}

.layered-phone-left {
    max-width: 230px;
    flex: 1;
    transform: translateY(20px) rotate(-5deg);
    z-index: 1;
    transition: all var(--transition-smooth);
}

.layered-phone-right {
    max-width: 230px;
    flex: 1;
    transform: translateY(0px) rotate(5deg);
    z-index: 2;
    transition: all var(--transition-smooth);
}

.layered-phone-left:hover {
    transform: translateY(0px) rotate(0deg) scale(1.05);
    z-index: 3;
}

.layered-phone-right:hover {
    transform: translateY(0px) rotate(0deg) scale(1.05);
    z-index: 3;
}

/* Configurations for Setup Phones Layout (4 phones side by side) */
.setup-phones {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0 40px;
}

.setup-phone {
    max-width: 135px;
    flex: 1;
    border-width: 7px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-smooth);
}

.setup-phone:nth-child(1) {
    transform: translateY(25px) rotate(-5deg);
}

.setup-phone:nth-child(2) {
    transform: translateY(10px) rotate(-2deg);
    z-index: 2;
}

.setup-phone:nth-child(3) {
    transform: translateY(10px) rotate(2deg);
    z-index: 2;
}

.setup-phone:nth-child(4) {
    transform: translateY(25px) rotate(5deg);
}

.setup-phone:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.08);
    z-index: 3;
}

/* Configurations for Invoice Phones Layout (3 phones — fan/cascade) */
.invoice-phones {
    display: flex;
    gap: 18px;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0 40px;
}

.invoice-phone {
    max-width: 170px;
    flex: 1;
    border-width: 8px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    transition: all var(--transition-smooth);
}

.invoice-phone:nth-child(1) {
    transform: translateY(30px) rotate(-6deg);
    z-index: 1;
}

.invoice-phone:nth-child(2) {
    transform: translateY(0px) scale(1.04);
    z-index: 3;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.invoice-phone:nth-child(3) {
    transform: translateY(30px) rotate(6deg);
    z-index: 1;
}

.invoice-phone:hover {
    transform: translateY(-12px) rotate(0deg) scale(1.07) !important;
    z-index: 4;
    box-shadow: 0 30px 60px rgba(0, 112, 240, 0.2);
}

/* Responsive showcase */
@media (max-width: 1024px) {
    .tab-showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tab-text-side {
        text-align: center;
    }

    .feature-bullets li {
        display: inline-block;
        text-align: left;
        margin: 0 15px 15px;
    }

    .features-tabs-nav {
        max-width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 12px;
        border-radius: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-nav-btn {
        flex-shrink: 0;
    }

    .layered-phone-left,
    .layered-phone-right {
        max-width: 200px;
    }
}

@media (max-width: 600px) {

    .multi-phones,
    .setup-phones,
    .invoice-phones {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0;
    }

    .layered-phone-left,
    .layered-phone-right,
    .setup-phone,
    .invoice-phone {
        max-width: 220px;
        transform: none !important;
    }
}

/* --- Security / Privacy Section --- */
.security-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.security-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.security-visual {
    display: flex;
    justify-content: center;
}

/* Shield Micro-Animation */
.shield-animation {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-svg {
    color: var(--primary);
    z-index: 3;
}

.shield-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(17, 81, 125, 0.3);
    border-radius: var(--radius-full);
    z-index: 1;
    animation: pulse 3s infinite linear;
}

.shield-pulse.pulse-2 {
    animation-delay: 1.5s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.security-info h2 {
    font-size: 2.6rem;
    color: var(--primary-dark);
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.security-info p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.security-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-list li {
    display: flex;
    gap: 16px;
}

.security-list .icon {
    width: 28px;
    height: 28px;
    background-color: rgba(39, 174, 96, 0.12);
    color: var(--accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.security-list strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 4px;
}

.security-list div {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.faq-accordion {
    max-width: 720px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
}

.faq-arrow {
    color: var(--text-secondary);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
    padding: 0 24px;
}

.faq-panel p {
    padding-bottom: 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Active FAQ panel animation state */
.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-panel {
    max-height: 200px;
    /* Appropriate height threshold */
}

/* --- Download CTA Banner Section --- */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #0A2240 0%, #031024 100%);
    color: white;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

.cta-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.cta-bg-shapes .shape {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(100px);
    opacity: 0.35;
}

.cta-bg-shapes .shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

.cta-bg-shapes .shape-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.25) 0%, transparent 70%);
    bottom: -250px;
    right: -100px;
}

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

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.cta-card h2 {
    font-size: 3rem;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-weight: 800;
}

.cta-card p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-smooth);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-decoration: none;
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00F2FE;
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15);
}

.store-btn svg {
    color: white;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.store-btn:hover svg {
    transform: scale(1.1);
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-pre {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.store-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
}

/* --- Footer Area --- */
.footer-bottom {
    background-color: var(--bg-darker);
    color: #A0AEC0;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-dark);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.footer-brand {
    flex: 2;
    min-width: 280px;
}

.footer-brand .logo-wrap {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 400px;
}

.footer-links-wrap {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    min-width: 280px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: white;
}

.copyright-wrapper {
    border-top: 1px solid var(--border-dark);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

.made-with {
    font-family: var(--font-heading);
    font-weight: 600;
    color: white;
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem !important;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        align-items: center;
    }

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

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

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

    .calculator-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .calc-info {
        text-align: center;
    }

    .calc-features-list {
        align-items: flex-start;
        max-width: 380px;
        margin: 0 auto;
    }

    .security-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .security-visual {
        order: 2;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-download-btn {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

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

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

    .carousel-track-wrapper {
        max-width: 280px;
        /* Narrower for mobile */
    }

    .carousel-slide {
        width: 280px;
    }

    .slide-mockup {
        height: 460px;
    }

    .faq-trigger {
        font-size: 1rem;
        padding: 20px;
    }

    .faq-trigger svg {
        width: 20px;
        height: 20px;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .phone-frame-container {
        width: 280px;
        height: 570px;
    }

    .calc-tab {
        padding: 12px 8px;
        font-size: 0.8rem;
    }

    .calc-body {
        padding: 20px;
    }

    .receipt-preview {
        padding: 16px;
    }

    .rate-chips {
        gap: 6px;
    }

    .rate-chip {
        padding: 8px;
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.4rem !important;
    }
}

/* --- Mobile Side Drawer Animation Styling --- */
.mobile-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -300px;
    width: 280px;
    background-color: var(--bg-secondary);
    z-index: 1002;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: right var(--transition-smooth);
    padding: 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 4px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.mobile-nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.copyright-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}