/* --- Kantini Landing Page Styling System --- */
:root {
    /* Brand Colors from Android colors.xml */
    --color-purple: #6200ee;
    /* Primary Purple */
    --color-purple-dark: #3700b3;
    --color-purple-dim: rgba(98, 0, 238, 0.15);
    --color-purple-glow: rgba(98, 0, 238, 0.3);

    --color-teal: #03dac5;
    /* Accent Teal */
    --color-teal-dark: #018786;
    --color-teal-dim: rgba(3, 218, 197, 0.15);
    --color-teal-glow: rgba(3, 218, 197, 0.4);

    /* Backgrounds */
    --bg-main: #0c0616;
    /* Deep Purple-Black */
    --bg-darker: #07030e;
    /* Darker shade */
    --panel-bg: rgba(22, 10, 43, 0.7);
    --panel-border: rgba(98, 0, 238, 0.15);
    --panel-border-hover: rgba(3, 218, 197, 0.25);

    /* Typography */
    --text-white: #ffffff;
    --text-silver: #cbbad6;
    /* Slightly purple-tinted silver */
    --text-muted: #7d6e8c;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;

    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-silver);
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(98, 0, 238, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(3, 218, 197, 0.04) 0%, transparent 45%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    font-weight: 700;
}

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

/* --- Sticky Header --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 3, 14, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--panel-border);
    padding: 14px 0;
    transition: all 0.3s;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--color-purple);
    box-shadow: 0 0 16px var(--color-purple-glow);
    object-fit: cover;
}

.logo-text h1 {
    font-size: 24px;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 10px;
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
}

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

.nav-links a {
    color: var(--text-silver);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
}

.btn-teal {
    background: var(--color-purple);
    color: var(--text-white);
    box-shadow: 0 4px 20px var(--color-purple-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-teal:hover {
    background: #731cff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(98, 0, 238, 0.45);
}

.btn-outline {
    background: transparent;
    border-color: rgba(3, 218, 197, 0.3);
    color: var(--color-teal);
}

.btn-outline:hover {
    background: rgba(3, 218, 197, 0.05);
    border-color: var(--color-teal);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    padding: 80px 0 100px 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-purple-dim);
    border: 1px solid rgba(98, 0, 238, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 24px;
}

.hero-tag span.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--color-teal);
    border-radius: 50%;
    animation: hero-pulse 2s infinite;
}

@keyframes hero-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(3, 218, 197, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(3, 218, 197, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(3, 218, 197, 0);
    }
}

.hero-title {
    font-size: 54px;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-teal) 0%, #00ffd8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-silver);
    opacity: 0.9;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-trust-metrics {
    display: flex;
    gap: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
}

.trust-item h4 {
    font-size: 28px;
    color: var(--color-teal);
}

.trust-item p {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

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

.hero-image-frame {
    width: 100%;
    max-width: 480px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--panel-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.hero-image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-glow-back {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--color-purple);
    filter: blur(120px);
    opacity: 0.2;
    z-index: -1;
    border-radius: 50%;
}

/* --- What it Does Section --- */
.what-it-does {
    background: var(--bg-darker);
    padding: 100px 0;
    border-top: 1px solid var(--panel-border);
    border-bottom: 1px solid var(--panel-border);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.section-header h2 {
    font-size: 38px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-silver);
    opacity: 0.8;
}

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

.feature-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--panel-border-hover);
    transform: translateY(-4px);
}

.feat-icon {
    width: 50px;
    height: 50px;
    background: var(--color-purple-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal);
    margin-bottom: 24px;
}

.feat-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-silver);
    opacity: 0.85;
}

/* --- How it Works / Deep Dive Section --- */
.how-it-works {
    padding: 100px 0;
}

.step-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 100px;
}

.step-row:nth-child(even) {
    grid-template-columns: 1.1fr 1fr;
}

.step-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 968px) {

    .step-row,
    .step-row:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

.step-badge {
    color: var(--color-teal);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.step-row h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.step-row p {
    color: var(--text-silver);
    opacity: 0.85;
    margin-bottom: 24px;
}

.step-visual {
    position: relative;
}

.step-visual img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--panel-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.step-bullets {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bullet-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bullet-check {
    width: 20px;
    height: 20px;
    background: var(--color-purple-dim);
    color: var(--color-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 3px;
}

.bullet-text h5 {
    font-size: 15px;
    color: var(--text-white);
}

.bullet-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Hologram Screen Overlay --- */
.hologram-screen {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 220px;
    background: rgba(22, 10, 43, 0.65);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(3, 218, 197, 0.45);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 10px 30px var(--color-teal-glow), inset 0 0 15px rgba(98, 0, 238, 0.3);
    animation: hologram-float 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes hologram-float {
    0% {
        transform: translateY(0px) rotate(1deg);
    }

    50% {
        transform: translateY(-12px) rotate(-1deg);
    }

    100% {
        transform: translateY(0px) rotate(1deg);
    }
}

.hologram-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(3, 218, 197, 0.2);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.hologram-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hologram-badge {
    font-size: 9px;
    background: rgba(3, 218, 197, 0.2);
    color: var(--color-teal);
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.hologram-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hologram-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hologram-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    color: var(--text-white);
    font-weight: 800;
    text-shadow: 0 0 10px var(--color-teal-glow);
}

.hologram-meta {
    font-size: 11px;
    color: var(--text-silver);
    margin-top: 2px;
}

/* --- Brand Showroom Section --- */
.brand-showroom {
    background: var(--bg-darker);
    padding: 100px 0;
    border-top: 1px solid var(--panel-border);
}

.showroom-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 968px) {
    .showroom-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.showroom-images {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.showroom-banner-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--panel-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s;
}

.showroom-banner-card:hover {
    border-color: rgba(3, 218, 197, 0.3);
}

.showroom-banner-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Call To Action Section --- */
.cta-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-purple-dim) 0%, rgba(22, 10, 43, 0.6) 100%);
    border: 1px solid rgba(98, 0, 238, 0.3);
    padding: 64px 32px;
    border-radius: var(--radius-lg);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-silver);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 36px auto;
    opacity: 0.85;
}

.cta-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--color-purple);
    filter: blur(80px);
    opacity: 0.15;
    top: -50px;
    right: -50px;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--panel-border);
    padding: 60px 0;
    background: var(--bg-darker);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

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

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 320px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--color-teal);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 32px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Utilities */
.text-teal {
    color: var(--color-teal);
}

.text-purple {
    color: var(--color-purple);
}

.text-coral {
    color: var(--color-coral);
}

.hidden {
    display: none !important;
}

/* Global Text Wrapping Fixes & Mobile Drawer */
.btn,
button,
.nav-links a {
    white-space: nowrap !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    z-index: 2000;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
        /* Show hamburger */
        margin-left: auto;
        /* Push push hamburger to the right */
    }

    /* Transform nav-links into a side drawer */
    .nav-links {
        position: fixed;
        top: 0;
        left: -280px;
        /* Hide off-canvas */
        width: 280px;
        height: 100vh;
        background: var(--bg-main);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 24px 24px;
        transition: left 0.3s ease, visibility 0.3s ease;
        z-index: 1500;
        gap: 20px;
        overflow-y: auto;
        visibility: hidden;
        /* Hide cleanly */
    }

    .nav-links.open {
        left: 0;
        /* Slide in */
        visibility: visible;
    }

    .nav-overlay.open {
        display: block;
        /* Show scrim */
        opacity: 1;
    }

    .nav-links a {
        font-size: 16px !important;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links .btn {
        margin-top: 10px;
        text-align: center;
        border-bottom: none;
        width: 100%;
        font-size: 14px !important;
        padding: 12px 16px !important;
    }
}

/* --- Step Cards Responsive Layouts --- */
.step-card-unified {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background: rgba(22, 10, 43, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(98, 0, 238, 0.15);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.step-card-unified.step-reverse {
    flex-direction: row-reverse;
}

.step-content-card {
    flex: 1;
    min-width: 300px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .step-card-unified {
        padding: 24px 16px !important;
        gap: 24px !important;
        margin-bottom: 40px !important;
        border-radius: 16px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .step-content-card {
        min-width: 100% !important;
        text-align: center !important;
        align-items: center !important;
    }

    .step-content-card .store-btn {
        margin: 0 auto !important;
    }

    .step-content-card div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .step-content-card p {
        text-align: center !important;
    }

    .step-visual {
        min-width: 100% !important;
        order: 2 !important;
    }

    .phone-frame {
        max-width: 100% !important;
    }
}
/* ---------------------------------------------------------------------------
   Small-screen readability and touch targets.

   Kept deliberately narrow. The 9-11px text inside .hologram-* is the wallet
   card mock-up, where small print is part of the illustration, so it is left
   alone. What is raised here is real interface text and anything a finger has
   to hit.
   --------------------------------------------------------------------------- */
@media (max-width: 600px) {

    /* "Smart Student Money" under the logo was 10px, which is below the point
       where most people can read it comfortably on a phone. */
    .logo-text span {
        font-size: 12px;
    }

    /* Navigation and footer links were rendering about 18px tall. Padding
       brings them closer to a 44px touch target without changing the layout. */
    .nav-links a,
    .footer-column ul li a {
        display: inline-block;
        padding: 9px 0;
        line-height: 1.4;
    }

    /* Footer columns stack on a phone; a little breathing room between them
       stops the link lists reading as one long run. */
    .footer-column {
        margin-bottom: 8px;
    }
}
