/* All About Money Marketing Site - Design System Implementation */
/* Based on Keycloak Design System */

/* ============================================
   CSS VARIABLES - Design System Tokens
   ============================================ */
:root {
    /* Brand Colors */
    --brown-50: #F5F1EB;
    --brown-100: #E8DFD3;
    --brown-200: #967D55;
    --brown-300: #825E29;

    --yellow-50: #FEF7E6;
    --yellow-100: #FCECC6;
    --yellow-200: #F9DA8A;
    --yellow-300: #F6C84D;
    --yellow-400: #F3B511;
    --yellow-900: #DA992C;

    --blue-50: #F0F4F8;
    --blue-100: #D9E2EC;
    --blue-200: #BCCCDC;
    --blue-300: #9FB3C8;
    --blue-400: #829AB1;
    --blue-500: #627D98;
    --blue-600: #486581;
    --blue-700: #4A6080;
    --blue-800: #334E68;
    --blue-900: #243B53;
    --blue-950: #102A43;

    --gray-50: #F7F9FC;
    --gray-100: #EDF1F7;
    --gray-200: #E4E9F2;
    --gray-300: #D6DFF1;
    --gray-400: #C1C9D2;
    --gray-500: #A0A4A8;
    --gray-600: #81858C;
    --gray-700: #5F7087;
    --gray-800: #52606D;
    --gray-900: #3E4C59;

    /* Semantic Colors */
    --text-primary: #072F67;
    --text-secondary: #4A6080;
    --text-muted: #5F7087;
    --text-placeholder: #94A0B2;
    --text-disabled: #94A0B2;
    --text-positive: #47B240;
    --text-danger: #852D19;
    --text-warning: #825E29;

    --bg-primary: #F7F9FC;
    --bg-surface: #D6DFF1;
    --bg-overlay: rgba(7, 47, 103, 0.45);
    --bg-danger: rgba(218, 44, 10, 0.1);
    --bg-warning: rgba(218, 153, 44, 0.1);

    --border-default: #BCCCDC;
    --border-muted: #D6DFF1;
    --border-active: #967D55;
    --border-danger: #DA2C0A;

    --shadow-sm: 0 2px 4px rgba(7, 47, 103, 0.08);
    --shadow-md: 0 2px 8px rgba(7, 47, 103, 0.13);
    --shadow-lg: 0 4px 16px rgba(7, 47, 103, 0.18);

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Border Radius */
    --radius-sm: 3px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
@font-face {
    font-family: 'Poppins';
    src: url('../Fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../Fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../Fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../Fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Display Styles */
.display-large {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.30;
    letter-spacing: -0.5px;
}

.display-medium {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.33;
    letter-spacing: -0.25px;
}

.display-small {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.43;
}

/* Heading Styles */
.heading-large {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.50;
}

.heading-medium {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.60;
}

.heading-small {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.56;
}

/* Body Styles */
.body-large {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.71;
}

.body-medium {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.69;
}

.body-small {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.67;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.71;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.30;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.33;
    letter-spacing: -0.25px;
}

h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.43;
}

h4 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.50;
}

h5 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.60;
}

h6 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.56;
}

p {
    margin: 0 0 var(--spacing-md);
}

a {
    color: var(--brown-200);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brown-300);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 38px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.header-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.header-nav-link:hover {
    color: var(--text-primary);
    background-color: var(--gray-100);
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle-active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle-active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .header-nav-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-md);
        padding: var(--spacing-md) 0;
    }

    .header-nav-wrapper.nav-open {
        display: block;
    }

    .header-nav {
        flex-direction: column;
        gap: 0;
    }

    .header-nav-link {
        display: block;
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: 0;
    }

    .header-nav-link:hover {
        background-color: var(--gray-100);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-900) 100%);
    padding: var(--spacing-3xl) var(--spacing-lg);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(150, 125, 85, 0.2), transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.phone-chassis {
    width: 100%;
    position: relative;
    z-index: 2;
}

.phone-video {
    position: absolute;
    top: 2.5%;
    bottom: 2.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    height: 95%;
    object-fit: cover;
    border-radius: 30px;
    z-index: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 var(--spacing-xl);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--brown-200);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--brown-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    border-color: var(--border-active);
    background-color: var(--gray-50);
}

.btn-text {
    background: transparent;
    color: var(--brown-200);
    padding: 0 var(--spacing-sm);
}

.btn-text:hover {
    color: var(--brown-300);
    text-decoration: underline;
}

.store-badge {
    height: 50px;
    width: auto;
    transition: transform var(--transition-base);
}

.store-badge:hover {
    transform: scale(1.05);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: var(--spacing-3xl) var(--spacing-lg);
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    color: var(--brown-200);
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.section-alt {
    background-color: white;
}

/* ============================================
   FEATURE SECTION
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    background-color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-lg);
    background-color: var(--brown-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.feature-title {
    color: var(--yellow-900);
    margin-bottom: var(--spacing-md);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: var(--spacing-3xl) var(--spacing-lg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

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

.about-title {
    color: var(--brown-200);
    margin-bottom: var(--spacing-lg);
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
    padding: var(--spacing-3xl) var(--spacing-lg);
    text-align: center;
    color: white;
}

.cta-title {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: white;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-top: 1px solid var(--border-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.footer-logo {
    height: 38px;
    width: auto;
}

.footer-nav {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-lg);
    list-style: none;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet - 768px to 1024px */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-media {
        order: -1;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }
}

/* Mobile - below 768px */
@media (max-width: 768px) {
    .section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .phone-mockup {
        max-width: 240px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    h5 {
        font-size: 18px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .store-badge {
        height: 40px;
    }

    .header-container {
        padding: var(--spacing-md);
    }

    .header-logo {
        height: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
}

/* Small Mobile - below 480px */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .store-badge {
        height: 36px;
    }

    .btn {
        width: 100%;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

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

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

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-brand { color: var(--brown-200); }
.text-accent { color: var(--yellow-900); }

/* ============================================
   ALPHA SIGNUP SECTION
   ============================================ */
.alpha-incentive-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.alpha-incentive-box p {
    margin: 0;
    color: white;
}

.incentive-icon {
    font-size: 1.5rem;
}

.incentive-highlight {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
    margin: var(--spacing-sm) 0;
    color: var(--yellow-300);
}

.incentive-subtext {
    opacity: 0.9;
    font-size: 0.95rem;
}

.alpha-form {
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.alpha-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all var(--transition-fast);
}

.alpha-form input[type="email"]:focus {
    outline: none;
    border-color: var(--brown-200);
    box-shadow: 0 0 0 3px rgba(150, 125, 85, 0.3);
}

.alpha-form .btn-primary {
    padding: var(--spacing-md) var(--spacing-xl);
    height: auto;
    font-size: 1rem;
}

.form-disclaimer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: var(--spacing-md);
    margin-bottom: 0;
}

.alpha-features {
    margin-top: var(--spacing-2xl);
    display: flex;
    gap: var(--spacing-2xl);
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
    color: rgba(255, 255, 255, 0.95);
}

.alpha-features-column p {
    margin: var(--spacing-sm) 0;
    font-size: 1rem;
}

.coming-soon {
    margin-top: var(--spacing-2xl);
    opacity: 0.7;
}

.coming-soon p {
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.store-badges-greyed {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.store-badges-greyed img {
    height: 45px;
    width: auto;
    filter: grayscale(60%);
    opacity: 0.6;
    transition: all var(--transition-base);
}

.store-badges-greyed img:hover {
    filter: grayscale(30%);
    opacity: 0.8;
}

.hero-alpha-badge {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    display: inline-block;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Alpha Section Responsive */
@media (max-width: 768px) {
    .alpha-form {
        flex-direction: column;
        align-items: stretch;
    }

    .alpha-form input[type="email"] {
        min-width: 100%;
    }

    .alpha-form .btn-primary {
        width: 100%;
    }

    .alpha-features {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: center;
        text-align: center;
    }

    .incentive-highlight {
        font-size: 1.5rem;
    }

    .store-badges-greyed img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .alpha-incentive-box {
        padding: var(--spacing-md);
    }

    .incentive-highlight {
        font-size: 1.25rem;
    }
}
