/* 
   Cred Count Website Theme 
   Ethos: Slate 900, White Text, Cyan Accents (#38bdf8), Glassmorphism 
*/

:root {
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent: #38bdf8;
    /* Cyan 400 */
    --accent-secondary: #6366f1;
    /* Indigo 500 */
    --accent-glow: rgba(99, 102, 241, 0.4);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

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

/* Buttons */
.btn-primary,
.btn-primary-sm {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: white;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-primary {
    padding: 12px 32px;
    font-size: 1.1rem;
}

.btn-primary-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary:hover,
.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary-disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-weight: 700;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 1.1rem;
    display: inline-block;
    cursor: default;
    border: 1px solid var(--glass-border);
}

.btn-secondary {
    padding: 12px 32px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-weight: 600;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: white;
    /* Fallback */
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.glow-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Stats Preview */
.stats-preview {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

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

.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #2d3748;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.screen-content {
    background: var(--bg-dark);
    height: 100%;
    color: white;
}

.app-header {
    height: 40px;
    /* background: var(--bg-card); */
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.notch {
    width: 120px;
    height: 20px;
    background: black;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.app-body {
    padding: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.big-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--glass-border);
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text h4 {
    margin: 0;
    font-size: 1rem;
}

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

/* Features */
.features-section {
    padding: 100px 0;
    background: #0b1120;
    /* Slightly darker */
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.center {
    text-align: center;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border);
    background: linear-gradient(145deg, #1e293b, #172033);
}

.icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* CTA */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.store-btn {
    background: black;
    border: 1px solid #333;
    padding: 10px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.store-btn:hover {
    transform: translateY(-2px);
    background: #1a1a1a;
    border-color: #555;
}

.store-btn .icon {
    font-size: 1.8rem;
}

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

.store-btn small {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.store-btn span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 24px;
    height: 24px;
    filter: grayscale(1);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns,
    .stats-preview {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    /* Hide nav on mobile for simplicity */
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}