/* Global Reset & Variables */
:root {
    --primary-blue: #0052FF;
    --primary-hover: #0045D8;
    --dark-text: #050F19;
    --light-text: #5B616E;
    --bg-white: #FFFFFF;
    --bg-light: #F4F6F8;
    --border-color: #ECEFF1;
    --success-green: #008C3E;
    --error-red: #CF304A;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    color: var(--dark-text);
    background-color: var(--bg-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex {
    display: flex;
}

.b-b {
    border-bottom: 1px solid var(--border-color);
}

/* --- Header & Marquee (Preserved) --- */

/* Header - Sticky Top */
.header-main {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 2200;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    gap: 32px;
    margin-left: 48px;
}

.header-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
}

.header-nav a:hover {
    color: var(--primary-blue);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.btn-signin {
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Marquee Section - Sticky Below Header */
.marquee-container {
    background-color: var(--primary-blue);
    color: white;
    height: 52px;
    line-height: 52px;
    overflow: hidden;
    position: sticky;
    top: 80px;
    width: 100%;
    z-index: 2100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: marquee 40s linear infinite;
    padding-left: 100%;
    font-weight: 600;
    font-size: 15px;
}

.marquee-pill {
    background: white;
    color: var(--primary-blue);
    padding: 2px 16px;
    border-radius: 9999px;
    margin: 0 16px;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
    cursor: pointer;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Homepage Specifics --- */

/* Hero */
.hero {
    padding: 80px 0;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 480px;
}

.jump-start {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
    gap: 8px;
    cursor: pointer;
}

.jump-start:hover {
    gap: 12px;
}

/* micro interaction */

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero p {
    font-size: 20px;
    line-height: 1.4;
    color: var(--light-text);
    margin-bottom: 32px;
}

.input-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.input-group input {
    flex: 2;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    min-width: 200px;
}

.input-group button {
    flex: 1;
    border-radius: 4px;
    /* Square for form */
    white-space: nowrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* CSS Phone Mockup */
.phone {
    width: 300px;
    height: 600px;
    background: #FAFAFA;
    border-radius: 48px;
    border: 12px solid #000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.app-header {
    background: white;
    padding: 40px 20px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.balance-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.balance-amt {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

.app-list {
    padding: 20px;
}

.app-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
}

.coin-name {
    font-weight: 600;
    font-size: 14px;
}

.coin-sym {
    font-size: 12px;
    color: #888;
}

.coin-price {
    margin-left: auto;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

.coin-change {
    font-size: 12px;
}

.green {
    color: var(--success-green);
}

.red {
    color: var(--error-red);
}

/* Table Section */
.ledger-section {
    padding: 60px 0;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* Note: border-radius on table requires overflow hidden on container usually, handled in HTML */
}

.ledger-table th,
.ledger-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.ledger-table tr:hover {
    background-color: #FAFBFC;
    cursor: pointer;
}

.trade-btn-green {
    background: var(--success-green);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

/* Features Two-Col */
.features-section {
    padding: 80px 0;
}

.features-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.features-head h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.features-head p {
    font-size: 18px;
    color: var(--light-text);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list-item {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.feature-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-text p {
    font-size: 15px;
    color: var(--light-text);
    line-height: 1.6;
}

/* Stats Blue Bar */
.stats-section {
    background-color: var(--primary-blue);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.stats-flex {
    display: flex;
    justify-content: space-around;
}

.stat-box h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-box p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* Earn CTA */
.earn-section {
    padding: 80px 0;
    text-align: center;
    background-color: #F4F6F8;
}

.earn-container {
    max-width: 600px;
    margin: 0 auto;
}

.earn-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
}

.footer-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--light-text);
}

.footer-links a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Responsive */
/* Responsive Design System */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 48px;
    }
}

@media (max-width: 900px) {

    /* Navigation collapsing */
    .header-nav {
        display: none;
    }

    /* In a real app, this would be a hamburger menu */

    /* Hero Section */
    .hero {
        padding: 40px 0;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        margin: 0 auto;
        width: 100%;
    }

    .input-group {
        justify-content: center;
    }

    .input-group input {
        min-width: 0;
        width: 100%;
    }

    /* Visuals */
    .phone {
        display: none;
    }

    /* Hide heavy visuals on smaller tablets/mobile */
    .hero-visual img {
        max-width: 80%;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid img {
        width: 300px;
        margin-top: 40px;
    }

    .feature-list-item {
        justify-content: flex-start;
        text-align: left;
    }

    /* Stats */
    .stats-flex {
        flex-direction: column;
        gap: 40px;
    }

    /* Footer */
    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {

    /* Header & Marquee Stack */
    .header-main {
        height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-logo {
        margin-bottom: 8px;
    }

    .header-right {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .btn-signin,
    .btn-primary {
        font-size: 13px;
        padding: 8px 16px;
    }

    /* Marquee on Mobile */
    .marquee-container {
        top: 105px;
        /* Adjust for taller stacked header on mobile */
        height: 40px;
        line-height: 40px;
    }

    .marquee-pill {
        padding: 2px 10px;
        margin: 0 8px;
        font-size: 13px;
    }

    /* Hero */
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .input-group {
        flex-direction: column;
    }

    /* Table Overflow */
    .ledger-section {
        overflow-x: auto;
    }

    .ledger-table {
        min-width: 600px;
    }

    /* Force scroll */

    /* Footer Mobile */
    .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul li {
        justify-content: center;
    }
}/ *   - - -   N e w   F o o t e r   S t y l e s   ( v 2 )   - - -   * / 
 
 . f o o t e r - l o g o - c o l   { 
 
         p a d d i n g - r i g h t :   4 0 p x ; 
 
 } 
 
 
 
 . f o o t e r - b o t t o m - b a r   { 
 
         d i s p l a y :   f l e x ; 
 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
 
         a l i g n - i t e m s :   c e n t e r ; 
 
         m a r g i n - t o p :   6 0 p x ; 
 
         p a d d i n g - t o p :   3 0 p x ; 
 
         f o n t - s i z e :   1 4 p x ; 
 
         c o l o r :   v a r ( - - l i g h t - t e x t ) ; 
 
 } 
 
 
 
 . f o o t e r - s o c i a l   { 
 
         d i s p l a y :   f l e x ; 
 
         a l i g n - i t e m s :   c e n t e r ; 
 
         g a p :   2 4 p x ; 
 
         c o l o r :   v a r ( - - d a r k - t e x t ) ; 
 
         / *   D a r k e r   f o r   B l o g / X   * / 
 
 } 
 
 
 
 . f o o t e r - s o c i a l   a : h o v e r   { 
 
         c o l o r :   v a r ( - - p r i m a r y - b l u e ) ; 
 
 } 
 
 
 
 . f o o t e r - l e g a l   { 
 
         d i s p l a y :   f l e x ; 
 
         a l i g n - i t e m s :   c e n t e r ; 
 
         g a p :   8 p x ; 
 
 } 
 
 
 
 . f o o t e r - l a n g   { 
 
         d i s p l a y :   f l e x ; 
 
         a l i g n - i t e m s :   c e n t e r ; 
 
         g a p :   8 p x ; 
 
         f o n t - w e i g h t :   5 0 0 ; 
 
 } 
 
 
 
 . d o t   { 
 
         m a r g i n :   0   4 p x ; 
 
         o p a c i t y :   0 . 5 ; 
 
 } 
 
 
 
 @ m e d i a   ( m a x - w i d t h :   9 0 0 p x )   { 
 
         . f o o t e r - b o t t o m - b a r   { 
 
                 f l e x - d i r e c t i o n :   c o l u m n ; 
 
                 g a p :   2 0 p x ; 
 
                 t e x t - a l i g n :   c e n t e r ; 
 
         } 
 
 } 
 
 / *   F i x   s p a c i n g   f o r   f o o t e r   b o t t o m   b a r   b a s e d   o n   u s e r   r e q u e s t   * / 
 
 
 
 . f o o t e r - b o t t o m - b a r   { 
 
         d i s p l a y :   f l e x ; 
 
         / *   j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;   R E M O V E D   -   E l e m e n t s   a r e   s t a c k e d / g r o u p e d   d i f f e r e n t l y   i n   i m a g e   * / 
 
         f l e x - w r a p :   w r a p ; 
 
         / *   A l l o w   w r a p p i n g   * / 
 
         a l i g n - i t e m s :   c e n t e r ; 
 
         m a r g i n - t o p :   6 0 p x ; 
 
         p a d d i n g - t o p :   3 0 p x ; 
 
         f o n t - s i z e :   1 4 p x ; 
 
         c o l o r :   v a r ( - - l i g h t - t e x t ) ; 
 
         g a p :   2 0 p x ; 
 
 } 
 
 
 
 . f o o t e r - l e g a l   { 
 
         / *   P u s h   t o   l e f t   * / 
 
         m a r g i n - r i g h t :   a u t o ; 
 
 } 
 
 
 
 / *   E n s u r e   m o b i l e   s t a c k i n g   i f   n e e d e d   * / 
 
 @ m e d i a   ( m a x - w i d t h :   9 0 0 p x )   { 
 
         . f o o t e r - b o t t o m - b a r   { 
 
                 f l e x - d i r e c t i o n :   c o l u m n ; 
 
                 a l i g n - i t e m s :   c e n t e r ; 
 
                 t e x t - a l i g n :   c e n t e r ; 
 
                 j u s t i f y - c o n t e n t :   c e n t e r ; 
 
         } 
 
 
 
         . f o o t e r - l e g a l   { 
 
                 m a r g i n - r i g h t :   0 ; 
 
         } 
 
 } 
 
 
 
 / *   F i x   " D i s c l o s u r e s "   h e a d i n g   i n   l i s t   * / 
 
 . f o o t e r - s u b h e a d e r   { 
 
         m a r g i n - t o p :   2 4 p x ; 
 
         f o n t - w e i g h t :   6 0 0 ; 
 
         m a r g i n - b o t t o m :   2 4 p x ; 
 
         f o n t - s i z e :   1 4 p x ; 
 
         / *   S a m e   a s   h 5   u s u a l l y   * / 
 
         c o l o r :   v a r ( - - d a r k - t e x t ) ; 
 
 } 
 
 / *   P r o - l e v e l   R e s p o n s i v e   R e f i n e m e n t   * / 
 
 
 
 / *   1 .   T y p o g r a p h y   S c a l i n g   * / 
 
 @ m e d i a   ( m a x - w i d t h :   6 0 0 p x )   { 
 
 
 
         . h 1 , 
 
         h 1   { 
 
                 f o n t - s i z e :   3 2 p x ; 
 
         } 
 
 
 
         / *   S l i g h t l y   s m a l l e r   f o r   b e t t e r   f i t   * / 
 
         . h 2 , 
 
         h 2   { 
 
                 f o n t - s i z e :   2 8 p x ; 
 
         } 
 
 
 
         . h e r o   p   { 
 
                 f o n t - s i z e :   1 6 p x ; 
 
                 m a r g i n - b o t t o m :   2 4 p x ; 
 
         } 
 
 
 
         / *   I n p u t   f i e l d   o p t i m i z a t i o n   f o r   m o b i l e   t o u c h   * / 
 
         . i n p u t - g r o u p   i n p u t   { 
 
                 w i d t h :   1 0 0 % ; 
 
                 m a r g i n - b o t t o m :   1 2 p x ; 
 
                 h e i g h t :   4 8 p x ; 
 
                 / *   T a l l e r   t o u c h   t a r g e t   * / 
 
         } 
 
 
 
         . i n p u t - g r o u p   b u t t o n   { 
 
                 w i d t h :   1 0 0 % ; 
 
                 h e i g h t :   4 8 p x ; 
 
         } 
 
 } 
 
 
 
 / *   2 .   C o n t a i n e r   &   S p a c i n g   P o l i s h   * / 
 
 @ m e d i a   ( m a x - w i d t h :   9 0 0 p x )   { 
 
         . c o n t a i n e r   { 
 
                 p a d d i n g :   0   2 4 p x ; 
 
                 / *   E n s u r e   2 4 p x   g u t t e r   c o n s i s t e n t   w i t h   C o i n b a s e   m o b i l e   * / 
 
         } 
 
 
 
         . h e r o   { 
 
                 p a d d i n g :   4 0 p x   0 ; 
 
                 / *   T i g h t e r   v e r t i c a l   s p a c i n g   * / 
 
         } 
 
 
 
         / *   C e n t e r   a l i g n   h e r o   o n   t a b l e t / m o b i l e   * / 
 
         . h e r o - c o n t a i n e r   { 
 
                 t e x t - a l i g n :   c e n t e r ; 
 
                 a l i g n - i t e m s :   c e n t e r ; 
 
         } 
 
 
 
         . h e r o - c o n t e n t   { 
 
                 m a r g i n :   0   a u t o ; 
 
                 m a x - w i d t h :   1 0 0 % ; 
 
         } 
 
 } 
 
 
 
 / *   3 .   F o o t e r   O p t i m i z a t i o n   * / 
 
 @ m e d i a   ( m a x - w i d t h :   9 0 0 p x )   { 
 
         . f o o t e r - r o w   { 
 
                 g r i d - t e m p l a t e - c o l u m n s :   1 f r ; 
 
                 / *   S t a c k   a l l   c o l u m n s   * / 
 
                 g a p :   4 0 p x ; 
 
                 t e x t - a l i g n :   l e f t ; 
 
                 / *   K e e p   l e f t   a l i g n   u s u a l l y   l o o k s   b e t t e r   f o r   l i s t s ,   o r   c e n t e r   i f   u s e r   p r e f e r s   * / 
 
         } 
 
 
 
         / *   A c c o r d i o n - i n t e n t   ( S t a t i c   f o r   n o w   b u t   s t y l e d   p r o p e r l y )   * / 
 
         . f o o t e r - l i n k s   h 5   { 
 
                 m a r g i n - t o p :   0 ; 
 
                 m a r g i n - b o t t o m :   1 6 p x ; 
 
                 c o l o r :   v a r ( - - d a r k - t e x t ) ; 
 
                 f o n t - s i z e :   1 6 p x ; 
 
         } 
 
 } 
 
 
 
 / *   4 .   F i x   r e d u n d a n t / s p a c e d   s t y l e s   f r o m   e a r l i e r   * / 
 
 / *   C o n s o l i d a t e   F o o t e r   B o t t o m   B a r   f o r   M o b i l e   * / 
 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
 
         . f o o t e r - b o t t o m - b a r   { 
 
                 f l e x - d i r e c t i o n :   c o l u m n ; 
 
                 a l i g n - i t e m s :   f l e x - s t a r t ; 
 
                 / *   A l i g n   l e f t   u s u a l l y   b e t t e r   o n   m o b i l e   u n l e s s   c e n t e r e d   s p e c i f i c a l l y   * / 
 
                 g a p :   2 4 p x ; 
 
         } 
 
 
 
         . f o o t e r - l e g a l   { 
 
                 f l e x - d i r e c t i o n :   c o l u m n ; 
 
                 a l i g n - i t e m s :   f l e x - s t a r t ; 
 
                 g a p :   1 2 p x ; 
 
         } 
 
 
 
         . f o o t e r - l a n g   { 
 
                 m a r g i n - t o p :   1 2 p x ; 
 
         } 
 
 
 
         . d o t   { 
 
                 d i s p l a y :   n o n e ; 
 
         } 
 
 
 
         / *   H i d e   d o t s   w h e n   s t a c k i n g   v e r t i c a l   * / 
 
 } 
 
 