/* ===========================
   CARNETT LANDING PAGE STYLES
   Following design.json specifications
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.3;
    color: #111111;
    background-color: #f3f3f3;
    letter-spacing: -0.02em;
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ===========================
   NAVIGATION BAR
   =========================== */
.navbar {
    background-color: #000000;
    height: 64px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 200ms ease-in-out;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-ctas {
    display: flex;
    gap: 16px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    height: 48px;
    padding: 0 32px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease-in-out;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #000000;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 2px;
    height: 48px;
    padding: 0 32px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease-in-out;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
    transform: scale(1.02);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    background-color: #000000;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/adrien-olichon-RCAhiGJsUUE-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 48px 120px;
    margin-top: 64px;
}

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

.hero-title {
    font-size: 72px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-transform: capitalize;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #cccccc;
    margin-bottom: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 2px;
    padding: 24px 32px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 200ms ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 280px;
}

.btn-hero:hover {
    background-color: #000000;
    color: #ffffff;
    transform: scale(1.02);
}

.btn-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
}

.btn-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

.btn-hero:hover .btn-subtitle {
    color: #cccccc;
}

/* ===========================
   METRICS BAR
   =========================== */
.metrics-bar {
    background-color: #ffffff;
    padding: 48px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.metrics-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    text-transform: capitalize;
}

/* ===========================
   INFO SECTIONS
   =========================== */
.info-section {
    padding: 120px 0;
    background-color: #f3f3f3;
}

.info-section.alt {
    background-color: #ffffff;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.info-content.reverse {
    direction: rtl;
}

.info-content.reverse > * {
    direction: ltr;
}

.info-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 24px;
    text-transform: capitalize;
}

.info-text p {
    font-size: 18px;
    font-weight: 400;
    color: #666666;
    margin-bottom: 32px;
    line-height: 1.6;
}

.info-text p a {
    color: #666666;
    text-decoration: none;
    transition: all 200ms ease-in-out;
}

.info-text p a:hover {
    color: #000000;
    text-decoration: underline;
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
}

.feature-list li {
    font-size: 16px;
    color: #111111;
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
}

.feature-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* ===========================
   VISUAL CARDS
   =========================== */
.dashboard-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 200ms ease-in-out, box-shadow 200ms ease-in-out;
}

.dashboard-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.visual-card {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.visual-header {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 32px;
    text-align: center;
    text-transform: capitalize;
}

/* Chart Visualization */
.visual-chart {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: center;
    height: 300px;
}

.chart-bar {
    flex: 1;
    background-color: #000000;
    border-radius: 2px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    transition: all 200ms ease-in-out;
    position: relative;
}

.chart-bar:hover {
    background-color: #333333;
}

.chart-label {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* Stock Grid */
.stock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stock-item {
    background-color: #f3f3f3;
    padding: 24px;
    border-radius: 2px;
    text-align: center;
}

.stock-symbol {
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 12px;
}

.stock-change {
    font-size: 24px;
    font-weight: 700;
}

.stock-change.positive {
    color: #00aa00;
}

.stock-change.negative {
    color: #cc0000;
}

/* Code Block */
.code-block {
    background-color: #111111;
    box-shadow: 0 0 24px rgba(0, 255, 153, 0.2);
}

.code-header {
    font-size: 14px;
    font-weight: 600;
    color: #00ff99;
    margin-bottom: 24px;
    text-align: left;
}

.code-content {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ff99;
    line-height: 1.8;
    text-align: left;
}

.code-content code {
    display: block;
}

.code-comment {
    color: #666666;
}

/* ===========================
   SUBSCRIPTION SECTION
   =========================== */
.subscription {
    background-color: #000000;
    padding: 120px 0;
    text-align: center;
}

.subscription-content h2 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-transform: capitalize;
}

.subscription-content > p {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-form {
    display: flex;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto 24px;
}

.subscription-form input[type="email"] {
    flex: 1;
    height: 56px;
    padding: 0 24px;
    border: 1px solid #cccccc;
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background-color: #ffffff;
    color: #111111;
    transition: border-color 200ms ease-in-out;
}

.subscription-form input[type="email"]:focus {
    outline: none;
    border-color: #000000;
}

.subscription-form button {
    height: 56px;
    padding: 0 40px;
    background-color: #ffffff;
    color: #000000;
}

.subscription-form button:hover {
    background-color: #f3f3f3;
}

.subscription-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.subscription-form button:disabled:hover {
    background-color: #ffffff;
    transform: none;
}

.subscription-note {
    font-size: 14px;
    color: #999999;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background-color: #f3f3f3;
    padding: 80px 0 32px;
}

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

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 16px;
    text-transform: capitalize;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    font-size: 14px;
    color: #666666;
    text-decoration: none;
    transition: all 200ms ease-in-out;
}

.footer-links a:hover {
    color: #000000;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 200ms ease-in-out;
}

.social-icon:hover {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #cccccc;
}

.footer-bottom p {
    font-size: 14px;
    color: #666666;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .info-content.reverse {
        direction: ltr;
    }
    
    .metrics-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .nav-container {
        padding: 0 24px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 80px 24px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 400px;
    }
    
    .metrics-bar .container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .info-text h2 {
        font-size: 32px;
    }
    
    .subscription-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 800ms ease-out;
}

/* Success Message */
.success-message {
    background-color: #00aa00;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 2px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeInUp 400ms ease-out;
}

/* Subscription Message */
.subscription-message {
    background-color: #00aa00;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 2px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 400ms ease-out;
}

.subscription-message.show {
    display: block;
}

/* ===========================
   AUTH MODALS (Login/Signup)
   Following subscription.json design system
   =========================== */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.auth-modal.active {
    display: block;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.auth-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Side - Form */
.auth-modal-left {
    width: 40%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 48px;
}

.auth-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 32px;
    color: #111111;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms ease-in-out;
    font-weight: 300;
}

.auth-close-btn:hover {
    transform: scale(1.1);
    color: #000000;
}

.auth-form-wrapper {
    max-width: 400px;
    width: 100%;
}

.auth-heading {
    font-size: 48px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.auth-subtext {
    font-size: 16px;
    color: #555555;
    margin-bottom: 48px;
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input {
    height: 44px;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #111111;
    background-color: #ffffff;
    transition: all 200ms ease-in-out;
}

.auth-input:focus {
    outline: none;
    border-color: #000000;
    background-color: #ffffff;
}

.auth-input::placeholder {
    color: #999999;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666666;
    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.auth-checkbox span {
    user-select: none;
}

.auth-terms {
    margin-top: -8px;
}

.auth-link {
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    transition: all 200ms ease-in-out;
}

.auth-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.auth-btn-primary {
    height: 48px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 200ms ease-in-out;
    text-transform: uppercase;
    margin-top: 8px;
}

.auth-btn-primary:hover {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    transform: scale(1.02);
}

.auth-footer-text {
    text-align: center;
    font-size: 13px;
    color: #666666;
    margin-top: 8px;
}

.auth-link-bold {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease-in-out;
}

.auth-link-bold:hover {
    text-decoration: underline;
}

/* Right Side - Visual */
.auth-modal-right {
    width: 60%;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.auth-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Login Background - Dark urban environment */
.auth-modal-login .auth-visual-overlay {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><rect fill="%23000000" width="800" height="600"/><g fill="%23ffffff" opacity="0.1"><rect x="100" y="50" width="2" height="500"/><rect x="200" y="100" width="2" height="400"/><rect x="300" y="0" width="2" height="600"/><rect x="400" y="150" width="2" height="450"/><rect x="500" y="80" width="2" height="520"/><rect x="600" y="120" width="2" height="480"/><rect x="700" y="40" width="2" height="560"/></g></svg>');
    background-blend-mode: overlay;
}

/* Signup Background - Abstract glitch overlay */
.auth-modal-signup .auth-visual-overlay {
    background-image: 
        linear-gradient(45deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><rect fill="%23000000" width="800" height="600"/><g fill="%23ffffff" opacity="0.15"><rect x="50" y="100" width="150" height="3"/><rect x="250" y="200" width="200" height="3"/><rect x="100" y="300" width="180" height="3"/><rect x="350" y="150" width="120" height="3"/><rect x="150" y="400" width="250" height="3"/><rect x="500" y="250" width="180" height="3"/><rect x="200" y="500" width="150" height="3"/></g></svg>');
    animation: glitchEffect 8s infinite;
}

@keyframes glitchEffect {
    0%, 100% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-2px, 2px);
    }
    20% {
        transform: translate(2px, -2px);
    }
    30% {
        transform: translate(0, 0);
    }
    40% {
        transform: translate(1px, -1px);
    }
    50% {
        transform: translate(-1px, 1px);
    }
    60% {
        transform: translate(0, 0);
    }
}

/* Responsive Design for Auth Modals */
@media (max-width: 1024px) {
    .auth-modal-container {
        flex-direction: column;
    }
    
    .auth-modal-left {
        width: 100%;
        min-height: 100vh;
    }
    
    .auth-modal-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-modal-left {
        padding: 24px;
    }
    
    .auth-heading {
        font-size: 36px;
    }
    
    .auth-subtext {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
