/* ============================================
   VARLIK MİMARİ - Premium Theme
   ============================================ */

:root {
    --navy: #0a1628;
    --navy-light: #121f36;
    --navy-mid: #1a2d4a;
    --gold: #c9a84c;
    --gold-light: #e2c970;
    --gold-dark: #a88a32;
    --white: #ffffff;
    --gray-100: #f4f6f9;
    --gray-200: #e2e6ed;
    --gray-300: #c5cbd6;
    --gray-400: #8892a4;
    --gray-500: #5a6478;
    --text-primary: #e8ecf1;
    --text-secondary: #a0aab8;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--navy);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    color: var(--gold);
    font-size: 24px;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 60px;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: var(--white);
}

.text-gold {
    color: var(--gold);
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 0.2px;
    box-shadow: var(--shadow-gold);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: none;
}

.cta-secondary:hover {
    background: rgba(201, 168, 76, 0.1);
    box-shadow: none;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 13px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 12px;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gray-400);
    border-bottom: 2px solid var(--gray-400);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 100px 0;
    background: var(--navy-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-step {
    position: absolute;
    top: 28px;
    right: 28px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CHAT SECTION
   ============================================ */

.chat-section {
    padding: 60px 0 100px;
    background: var(--navy);
    min-height: 100vh;
}

.chat-wrapper {
    max-width: 560px;
    margin: 0 auto;
    background: var(--navy-light);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: var(--navy-mid);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-header-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-header-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-messages {
    padding: 24px;
    min-height: 300px;
    max-height: 450px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* AI Message Bubble */
.msg-ai {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: msgSlideIn 0.4s ease;
}

.msg-ai .msg-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.msg-ai .msg-bubble {
    background: var(--navy-mid);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px 16px 16px 16px;
    padding: 14px 18px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* User Message Bubble */
.msg-user {
    display: flex;
    justify-content: flex-end;
    animation: msgSlideIn 0.4s ease;
}

.msg-user .msg-bubble {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    border-radius: 16px 4px 16px 16px;
    padding: 12px 18px;
    max-width: 75%;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: msgSlideIn 0.3s ease;
}

.typing-indicator .msg-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.typing-dots {
    background: var(--navy-mid);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px 16px 16px 16px;
    padding: 14px 20px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

@keyframes msgSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chat Options */
.chat-options {
    padding: 16px 24px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chat-option-btn {
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.chat-option-btn:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.chat-option-btn:active {
    transform: translateY(0);
}

/* Loading Animation */
.analysis-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    animation: msgSlideIn 0.4s ease;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(201, 168, 76, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.analysis-loading p {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 60px 0 100px;
    background: var(--navy);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-preview {
    background: var(--navy-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-preview h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.contact-preview p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.blurred-chart {
    position: relative;
    background: var(--navy);
    border-radius: var(--radius);
    padding: 20px;
    overflow: hidden;
}

.blurred-chart canvas {
    filter: blur(8px);
    opacity: 0.5;
    width: 100% !important;
    height: auto !important;
}

.blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(10, 22, 40, 0.4);
    color: var(--gold);
}

.blur-overlay svg {
    opacity: 0.8;
}

.blur-overlay span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 0 16px;
}

.contact-form {
    background: var(--navy-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 15px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.form-disclaimer {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 16px;
}

/* ============================================
   RESULT SECTION
   ============================================ */

.result-section {
    padding: 60px 0 100px;
    background: var(--navy);
    min-height: 100vh;
}

.result-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    margin-bottom: 48px;
}

.result-badge {
    display: inline-block;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.result-header h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.result-profile-text {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.result-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 48px;
}

.result-chart-container {
    background: var(--navy-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.result-chart-container canvas {
    width: 100% !important;
    height: auto !important;
}

.result-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--navy-light);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: var(--transition);
}

.result-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
}

.result-card-color {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.result-card-info {
    flex: 1;
}

.result-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.result-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.result-card-percent {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
}

.result-cta {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.result-cta p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--navy-light);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--gray-400);
    max-width: 500px;
    margin: 0 auto 12px;
    line-height: 1.6;
}

.footer-copy {
    font-size: 12px;
    color: var(--gray-500);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 20px;
    }

    .features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .chat-wrapper {
        border-radius: var(--radius);
    }

    .chat-messages {
        min-height: 250px;
        max-height: 380px;
        padding: 16px;
    }

    .chat-options {
        padding: 12px 16px 20px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .result-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .result-header h2 {
        font-size: 26px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 400px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}
