/* ==========================================
   Sqaner Tech - Premium CSS Design System
   ========================================== */

/* Design Tokens & Variables */
:root {
    --bg-dark: #070a13;
    --bg-card: rgba(15, 23, 42, 0.65);
    --bg-card-hover: rgba(22, 35, 60, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    
    /* Typography colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Branding Colors */
    --sqaner-orange: #f26522;
    --sqaner-orange-glow: rgba(242, 101, 34, 0.15);
    --sqaner-gradient: linear-gradient(135deg, #ff8142 0%, #f26522 100%);
    
    --tally-green: #10b981;
    --tally-green-glow: rgba(16, 185, 129, 0.15);
    --tally-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);

    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --glow-gradient: linear-gradient(135deg, #f26522 0%, #10b981 100%);
    
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow-sqaner: 0 0 30px 0 rgba(242, 101, 34, 0.2);
    --shadow-glow-tally: 0 0 30px 0 rgba(16, 185, 129, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout */
    --navbar-height: 80px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Dynamic Gradient Glow Background */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.glow-orange {
    width: 50vw;
    height: 50vw;
    background: var(--sqaner-orange);
    top: -10vw;
    right: -10vw;
    animation-delay: 0s;
}

.glow-green {
    width: 45vw;
    height: 45vw;
    background: var(--tally-green);
    bottom: -10vw;
    left: -10vw;
    animation-delay: -5s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(8%, 8%) scale(1.1);
    }
}

/* Reusable Components & Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
}

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

.text-gradient-alt {
    background: var(--tally-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.badge-accent i {
    background: var(--glow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Glassmorphism utility card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--glow-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 101, 34, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(7, 10, 19, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(7, 10, 19, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    border-radius: 6px;
}

.logo-text {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.logo-accent {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--glow-gradient);
    transition: var(--transition-smooth);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.contact-cta-mobile {
    display: none;
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--navbar-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section .section-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

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

/* Hero Visual Cards */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    position: absolute;
    width: 280px;
    padding: 1.75rem;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

.visual-glow-border {
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-sqaner {
    top: 15%;
    left: 5%;
    transform: rotate(-6deg);
    animation: cardFloatSqaner 6s infinite alternate ease-in-out;
}

.card-sqaner:hover {
    transform: rotate(-2deg) translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-glow-sqaner);
    border-color: rgba(242, 101, 34, 0.4);
}

.card-tally {
    bottom: 15%;
    right: 5%;
    transform: rotate(6deg);
    animation: cardFloatTally 6s infinite alternate ease-in-out;
    animation-delay: -3s;
}

.card-tally:hover {
    transform: rotate(2deg) translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-glow-tally);
    border-color: rgba(16, 185, 129, 0.4);
}

.visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.visual-header i {
    font-size: 1.5rem;
}

.icon-sqaner { color: var(--sqaner-orange); }
.icon-tally { color: var(--tally-green); }

.v-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
}

.v-badge-sqaner {
    background: rgba(242, 101, 34, 0.15);
    color: var(--sqaner-orange);
}

.v-badge-tally {
    background: rgba(16, 185, 129, 0.15);
    color: var(--tally-green);
}

.v-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.v-stats {
    display: flex;
    flex-direction: column;
}

.v-stat-num {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.card-sqaner .v-stat-num { color: var(--sqaner-orange); }
.card-tally .v-stat-num { color: var(--tally-green); }

.v-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes cardFloatSqaner {
    0% { transform: rotate(-6deg) translateY(0); }
    100% { transform: rotate(-5deg) translateY(-15px); }
}

@keyframes cardFloatTally {
    0% { transform: rotate(6deg) translateY(0); }
    100% { transform: rotate(5deg) translateY(-15px); }
}

/* Products Section */
.products-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 5rem;
}

.section-subtitle {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sqaner-orange);
    display: block;
    margin-bottom: 0.75rem;
}

.products-section .section-subtitle {
    color: var(--tally-green);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: var(--transition-smooth);
}

.sqaner-theme::before { background: var(--sqaner-gradient); }
.tally-theme::before { background: var(--tally-gradient); }

.product-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

.sqaner-theme:hover {
    box-shadow: 0 20px 40px -15px rgba(242, 101, 34, 0.15);
}

.tally-theme:hover {
    box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.15);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.product-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sqaner-theme .product-icon-wrapper {
    background: rgba(242, 101, 34, 0.1);
    color: var(--sqaner-orange);
    border-color: rgba(242, 101, 34, 0.2);
}

.tally-theme .product-icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
    color: var(--tally-green);
    border-color: rgba(16, 185, 129, 0.2);
}

.product-badge {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

.product-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.product-tagline {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.product-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-features li i {
    font-size: 1rem;
}

.sqaner-theme .product-features li i { color: var(--sqaner-orange); }
.tally-theme .product-features li i { color: var(--tally-green); }

.btn-product {
    width: 100%;
    padding: 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.sqaner-theme .btn-product:hover {
    background: var(--sqaner-orange);
    color: #fff;
    border-color: var(--sqaner-orange);
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.3);
}

.tally-theme .btn-product:hover {
    background: var(--tally-green);
    color: #fff;
    border-color: var(--tally-green);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* About Us Section */
.about-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-info {
    text-align: left;
}

.about-tagline {
    font-family: var(--font-title);
    font-size: 1.5rem;
    line-height: 1.35;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.about-supporters {
    text-align: left;
    padding-top: 6.5rem; /* Aligns supporters header with biography body text */
}

.supporters-title {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
}

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

.milestone-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.milestone-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.milestone-logo {
    width: 100%;
    max-width: 140px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff; /* White background under the logos */
    border-radius: 6px;
    padding: 6px;
    transition: var(--transition-smooth);
}

.milestone-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.5) contrast(1.1); /* slightly muted */
    transition: var(--transition-smooth);
}

.milestone-card:hover .milestone-logo img {
    filter: grayscale(0) contrast(1);
}

.milestone-content h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.milestone-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Mission Glass Card */
.mission-card {
    padding: 3rem;
}

.mission-card h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mission-card h3 i {
    color: var(--sqaner-orange);
}

.mission-quote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--text-primary);
    border-left: 3px solid var(--tally-green);
    padding-left: 1.25rem;
    margin-bottom: 2.5rem;
}

.mission-values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1rem;
}

.value-num {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--tally-green);
    opacity: 0.7;
    margin-top: 0.15rem;
}

.value-item h5 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.value-item p {
    font-size: 0.85rem;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.contact-header .section-subtitle {
    color: var(--sqaner-orange);
}

.contact-desc {
    font-size: 1.05rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.detail-item:hover .detail-icon {
    border-color: var(--sqaner-orange);
    color: var(--sqaner-orange);
    transform: scale(1.05);
}

.detail-item h5 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail-item p {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Form Styling with Floating Labels */
.form-card {
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Floating label magic */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.65rem;
    left: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 0.35rem;
    background: #0f172a;
    border-radius: 4px;
    color: var(--tally-green);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--tally-green);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px 0 rgba(16, 185, 129, 0.1);
}

/* Form validation styling */
.form-group.invalid input, .form-group.invalid textarea {
    border-color: #ef4444;
}

.form-group.invalid label {
    color: #ef4444;
}

.error-msg {
    position: absolute;
    bottom: -1.25rem;
    left: 0.25rem;
    font-size: 0.75rem;
    color: #ef4444;
    opacity: 0;
    transform: translateY(4px);
    transition: var(--transition-smooth);
}

.form-group.invalid .error-msg {
    opacity: 1;
    transform: translateY(0);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
}

/* Form Success State */
.form-success-state {
    text-align: center;
    padding: 2rem 0;
}

.form-success-state.hidden {
    display: none;
}

.success-icon {
    font-size: 4rem;
    color: var(--tally-green);
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-success-state h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.form-success-state p {
    font-size: 1rem;
    max-width: 320px;
    margin: 0 auto 2rem;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Footer Section - Sqaner Light Theme */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 5rem 0 3rem;
    background: #f5f5f4; /* Light warm gray matching Sqaner's color palette */
    color: #1a1a1a;
    position: relative;
    z-index: 10;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    gap: 4rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo-text {
    color: #070a13;
}

.footer-brand .logo-accent {
    color: #64748b;
}

.footer-desc {
    font-size: 0.9rem;
    margin-top: 1.25rem;
    color: #4b5563;
}

.footer-abn {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.75rem;
    font-weight: 600;
    font-family: var(--font-title);
}

.footer-memberships {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.membership-logo {
    width: auto;
    object-fit: contain;
    filter: grayscale(0.4) opacity(0.85);
    transition: var(--transition-smooth);
}

.logo-sba {
    height: 28px; /* Slightly smaller to balance visual weight */
}

.logo-sbaa {
    height: 75px; /* Scaled to 75px for optimal detail visibility */
}

.membership-logo:hover {
    filter: grayscale(0) opacity(1);
}

.footer-links-grid {
    display: flex;
    gap: 5rem;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-col h5 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0f172a;
}

.footer-links-col a {
    font-size: 0.9rem;
    color: #4b5563;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links-col a:hover {
    color: var(--sqaner-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.footer-socials a {
    color: #6b7280;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    color: var(--sqaner-orange);
    transform: translateY(-2px);
}

/* Scroll Animation Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive Layouts (Media Queries) */
@media (max-width: 992px) {
    .hero-section .section-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Drawer style */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: #070a13;
        flex-direction: column;
        padding-top: 3rem;
        gap: 2.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-item {
        font-size: 1.25rem;
    }
    
    .nav-cta {
        display: none; /* Hide top right btn on mobile */
    }
    
    .contact-cta-mobile {
        display: block; /* Show CTA inside menu on mobile */
        font-weight: 700;
        color: var(--tally-green) !important;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }
    
    .hero-visual {
        height: 320px;
    }
    
    .visual-card {
        width: 230px;
        padding: 1.25rem;
    }
    
    .product-card {
        padding: 2rem;
    }
    
    .about-section, .products-section, .contact-section {
        padding: 5rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-card, .mission-card {
        padding: 2rem;
    }
    
    .footer-links-grid {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-visual {
        display: none; /* Hide complex animation on small screens for performance and layout cleanups */
    }
}

/* ==========================================
   Capabilities Section Styles
   ========================================== */
.capabilities-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

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

.capability-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.capability-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cap-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--tally-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.capability-card:hover .cap-icon-wrapper {
    background: var(--tally-green-glow);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--tally-green);
    transform: scale(1.05);
}

.capability-card h4 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

@media (max-width: 992px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .capabilities-section {
        padding: 5rem 0;
    }
    
    .about-supporters {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .milestones-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================
   Legal Pop-up Modal Styling
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Above navbar (1000) and other elements */
    background-color: rgba(7, 10, 19, 0.85); /* Semi-transparent dark overlay matching site background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background-color: #0f172a; /* Deep slate background */
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 750px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.05); /* Subtle green/fintech shadow glow */
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.modal-header h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0 0.5rem;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: #ef4444; /* Clean hover delete color */
    transform: scale(1.1) rotate(90deg);
}

/* Body Content */
.modal-body {
    padding: 2.5rem 2rem;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    scrollbar-width: thin;
    scrollbar-color: #1e293b var(--bg-dark);
}

/* Scrollbar styling for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.modal-body h4 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.modal-body h4:first-of-type {
    margin-top: 0;
}

.modal-body ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.modal-body strong {
    color: var(--text-primary);
}

.modal-body a {
    color: var(--tally-green);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.modal-body a:hover {
    color: var(--sqaner-orange);
    text-decoration: underline;
}

/* Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.modal-footer .btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-container {
        max-height: 85vh;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
    }
}


