/* 
   CoinAPI Official Website Redesign 
   Theme: Dark Premium Crypto 
*/

:root {
    /* Colors - Light Mode */
    --bg-dark: #f8f9fc;
    /* Bright off-white */
    --bg-card: #ffffff;
    --primary: #008f5d;
    /* Darker Green for better contrast on white */
    --primary-dim: #007a4f;
    --secondary: #2d7af1;
    /* Tech Blue stays similar */
    --accent: #7d2ae8;
    /* Purple */
    --text-main: #1a1b1e;
    /* Dark text */
    --text-muted: #5f6368;
    --border-color: rgba(0, 0, 0, 0.08);
    /* Darker thin borders */

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* Frosty white */
    --glass-border: rgba(0, 0, 0, 0.05);
    --glow-primary: 0 4px 20px rgba(0, 143, 93, 0.2);

    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    background: var(--primary-dim);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

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

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 122, 241, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}

.hero-bg-glow-2 {
    position: absolute;
    bottom: 0%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 143, 93, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 143, 93, 0.08);
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #000;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

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

.coin-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 24px;
    width: 320px;
    transform: rotate(-5deg);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.coin-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.coin-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    font-size: 1.2rem;
}

.coin-card-balance {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.coin-card-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #0d0f13;
}

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

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

.section-header p {
    color: var(--text-muted);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

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

.coin-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 24px;
    width: 320px;
    transform: rotate(-5deg);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Lighter shadow */
}

.coin-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.coin-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.coin-card-balance {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1b1e;
}

.coin-card-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #ffffff;
    /* White bg for features */
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #1a1b1e;
}

.section-header p {
    color: var(--text-muted);
}

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

.feature-card {
    background: #f8f9fc;
    /* Slight contrast in light mode */
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 143, 93, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1a1b1e;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Audience Section */
.audience {
    padding: 100px 0;
    background: #f8f9fc;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.audience-card {
    display: flex;
    gap: 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.audience-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1a1b1e;
}

.check-icon {
    min-width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.cta-box {
    background: linear-gradient(135deg, rgba(45, 122, 241, 0.05) 0%, rgba(0, 143, 93, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: #1a1b1e;
}

.cta-box p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    background: #ffffff;
}

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

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

.footer-col h5 {
    font-size: 1rem;
    margin-bottom: 24px;
    color: #1a1b1e;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}


/* Application Page */
.application-section {
    padding: 160px 0 100px;
    background: var(--bg-dark);
    min-height: 90vh;
    /* Ensure full height feel */
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #1a1b1e;
}

.form-header p {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1b1e;
    font-size: 0.95rem;
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
    background: #f8f9fc;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 143, 93, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 16px;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.95rem;
}

input[type="radio"] {
    width: auto;
    margin: 0;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.step-card {
    position: relative;
    padding: 20px;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 143, 93, 0.1);
    /* Very light primary color */
    line-height: 1;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #1a1b1e;
}

.step-card p {
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .hero-text {
        margin: 0 auto;
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Add menu toggle later */
    }

    .audience-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Content */
.post-content {
    line-height: 2.2;
    font-size: 1.15rem;
    color: var(--text-main);
    white-space: pre-wrap;
    margin-bottom: 60px;
}