@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Space for new top navigation */
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 50%, #f0f8f5 100%);
    color: #1a1a1a;
    overflow-y: scroll; /* Always show scrollbar to prevent layout shifts */
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(51, 153, 102, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(51, 153, 102, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(-45deg, #1a4d2e, #2e5c3e, #228B22, #355e3b);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    box-shadow: 0 4px 20px rgba(26, 77, 46, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 40px;
    padding: 20px 20px;
}

.logo {
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-links li {
    width: 166px;
    min-width: 166px;
    max-width: 166px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
}

.top-nav .dropdown-content {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(-45deg, #1a4d2e, #2e5c3e, #228B22, #355e3b);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    min-width: 320px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-radius: 12px;
    z-index: 999999;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.dropdown-content a {
    color: white;
    padding: 16px 24px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    font-size: 15px;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 0;
    text-align: left;
    white-space: nowrap;
    width: auto;
    box-sizing: border-box;
    margin: 0 8px;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(4px);
    border-radius: 8px;
}

.top-nav .dropdown:hover .dropdown-content,
.top-nav .dropdown.open .dropdown-content,
.top-nav .dropdown:focus-within .dropdown-content {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Style dropdown button like nav links */
.dropdown > button {
    color: white;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}

.dropdown > button:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Add dropdown arrow indicator */
.dropdown > button::after {
    content: "▼";
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dropdown:hover > button::after,
.dropdown.open > button::after {
    transform: rotate(180deg);
}

/* Main Content Area */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    margin: 20px 0;
    max-width: none;
    position: relative;
}

.content h2 {
    color: #000000 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding-bottom: 15px;
    margin-bottom: 35px;
    margin-top: 25px;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.content h3 {
    color: rgb(51, 153, 102);
    margin-top: 35px;
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.content p {
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 16px;
    color: #333;
}

.content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content ul.pdf-list {
    padding-left: 0; /* Override for PDF list specifically */
}

.content li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.pdf-section {
    margin-top: 30px;
    padding: 25px;
    border: 1px solid rgba(51, 153, 102, 0.1);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,248,248,0.9));
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.pdf-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(51, 153, 102, 0.1);
}

.pdf-section h3 {
    color: rgb(51, 153, 102);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 2px solid rgba(51, 153, 102, 0.1);
    padding-bottom: 10px;
}

.pdf-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
}

.pdf-list li {
    background: rgba(255,255,255,0.6);
    margin-bottom: 12px;
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid rgb(51, 153, 102);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pdf-list li:hover {
    background: rgba(255,255,255,0.9);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(51, 153, 102, 0.1);
}

.pdf-list a {
    color: rgb(51, 153, 102);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.pdf-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(76, 175, 110);
    transition: width 0.3s ease;
}

.pdf-list a:hover {
    color: rgb(76, 175, 110);
}

.pdf-list a:hover::after {
    width: 100%;
}

footer {
    padding: 25px;
    border-top: 1px solid rgba(51, 153, 102, 0.1);
    background: linear-gradient(135deg, rgba(248,248,248,0.8), rgba(255,255,255,0.8));
    backdrop-filter: blur(10px);
    color: #666;
    font-size: 14px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px 16px 0 0;
    margin-top: 40px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* More space for mobile nav */
    }
    
    .landing-page {
        padding-top: 0; /* Landing page still uses full height */
    }
    
    .nav-container {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .nav-links {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .nav-links li {
        width: 166px;
        min-width: 166px;
        max-width: 166px;
    }
    
    .nav-links a {
        padding: 8px 4px;
        font-size: 14px;
    }
    
    .content {
        padding: 20px;
        margin: 10px;
    }
    
    .content h2 {
        font-size: 20px;
    }
    
    .company-name {
        font-size: 40px;
    }
    
    .tagline {
        font-size: 16px;
        padding: 0;
    }
    
    .signup-form {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .signup-input {
        width: 100%;
        max-width: 300px;
    }
    
    .signup-button {
        width: 100%;
        max-width: 300px;
    }
    
    footer {
        padding: 20px;
    }
}

/* Bond Data Panel */
.bond-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 25px;
    min-width: 500px;
    max-width: 600px;
    max-height: 70vh;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1.5s ease 0.3s forwards;
}

.bond-panel h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-align: center;
    letter-spacing: -0.5px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.loading-spinner {
    border: 3px solid rgba(255,255,255,0.2);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-state p {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bond-table {
    text-align: center !important;
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.bond-table th {
    color: white;
    font-weight: bold;
    padding: 10px 8px;
    text-align: center !important;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    font-size: 13px;
    width: 20%;
}

.bond-table th * {
    text-align: center !important;
    margin: 0 auto !important;
}

.bond-table td {
    color: white;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    text-align: center !important;
    width: 20%;
}

.bond-table td * {
    text-align: center !important;
    margin: 0 auto !important;
}

/* ABSOLUTE FORCE center alignment */
table.bond-table,
table.bond-table *,
table.bond-table th,
table.bond-table td,
.bond-table,
.bond-table *,
.bond-table th,
.bond-table td {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
}

.bond-table .source-row td {
    color: white;
    font-size: 12px;
    padding: 15px 8px 10px 8px;
    border-bottom: none;
    text-align: center;
    font-style: italic;
}

.bond-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.positive-change {
    color: #00ff41 !important;
    font-weight: 600;
    animation: flash-green 2s infinite;
}

.negative-change {
    color: #ff0040 !important;
    font-weight: 600;
    animation: flash-red 2s infinite;
}

@keyframes flash-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes flash-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@media (max-width: 768px) {
    .landing-page {
        height: 100vh;
        padding-bottom: 0;
    }
    
    .landing-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding: 40px 20px;
        gap: 0;
    }
    
    .landing-content {
        max-width: none;
        text-align: center;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .company-name {
        font-size: 42px;
        margin-bottom: 20px;
    }
    
    .tagline {
        font-size: 18px;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .signup-form {
        gap: 15px;
        flex-direction: column;
    }
    
    .signup-input,
    .signup-button {
        width: 100%;
        max-width: 300px;
    }
    
    /* Hide bond panel on mobile for clean experience */
    .bond-panel {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-links a {
        padding: 6px 4px;
        font-size: 12px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .company-name {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
    
    .tagline {
        font-size: 14px;
    }
    
    .signup-input,
    .signup-button {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .bond-panel h2 {
        font-size: 20px;
    }
}

/* Landing Page Specific Styles */
.landing-page {
    height: 100vh;
    background: linear-gradient(-45deg, #1a4d2e, #2e5c3e, #228B22, #355e3b);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
    padding-top: 0; /* Override body padding for full-height landing */
}

.landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.landing-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 0 20px;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    z-index: 2;
    position: relative;
}

.landing-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
    flex: 1;
    max-width: 600px;
}

.hero-text {
    max-width: 520px; /* Constrains text to not extend past Company Overview button */
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.company-name {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.tagline {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* Signup Form */
.signup-form {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

.signup-input {
    padding: 12px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    color: black;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    width: 280px;
    transition: all 0.3s ease;
    outline: none;
}

.signup-input::placeholder {
    color: rgba(0,0,0,0.6);
    font-weight: 300;
}

.signup-input:focus {
    background: rgba(255,255,255,1);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.signup-button {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    padding: 12px 30px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    min-width: 160px;
    text-align: center;
}

.signup-button:focus-visible {
    outline: 3px solid rgba(255,255,255,0.8);
    outline-offset: 4px;
}

.signup-button:hover,
.signup-button:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Keyframes */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .top-nav {
        animation: none;
    }
    
    body::before {
        background: none;
    }
}
