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

body {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #666;
}

/* Header/Masthead */
.masthead {
    background-color: #fff;
    border-bottom: 4px double #1a1a1a;
    padding: 20px 0;
    text-align: center;
}

.weather {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 10px;
}

.header-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.kilo-logo {
    height: 60px;
    width: 60px;
    flex-shrink: 0;
}

.logo {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin: 0;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.125rem;
    font-style: italic;
    color: #d00;
    margin-bottom: 10px;
    font-weight: 600;
}

.tagline a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid #d00;
    transition: all 0.3s ease;
}

.tagline a:hover {
    background-color: #d00;
    color: white;
    padding: 0 4px;
}

.edition {
    font-size: 0.875rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.main-nav {
    background-color: #1a1a1a;
    padding: 0;
    margin-top: 20px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: #fff;
    padding: 15px 20px;
    display: block;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: #333;
    color: #fff;
}

/* Hero Section */
.hero {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.breaking-news {
    background-color: #d00;
    color: #fff;
    display: inline-block;
    padding: 5px 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.main-headline {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.main-headline a {
    color: inherit;
    text-decoration: none;
    border-bottom: 3px solid #d00;
    transition: all 0.3s ease;
}

.main-headline a:hover {
    background-color: #d00;
    color: white;
    padding: 0 8px;
}

.lead-question {
    font-size: 1.5rem;
    color: #d00;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lead {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 20px;
}

.lead a {
    color: #d00;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #d00;
    transition: all 0.2s ease;
}

.lead a:hover {
    background-color: #d00;
    color: white;
    padding: 0 4px;
}

.hero-meta {
    font-size: 0.875rem;
    color: #999;
}

.hero-meta span {
    margin: 0 10px;
}

/* Main Content */
.main-content {
    background-color: #fff;
    padding: 60px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.main-article h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.article-lead {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.main-article p {
    margin-bottom: 20px;
    text-align: justify;
}

.pull-quote {
    border-left: 4px solid #1a1a1a;
    padding: 20px 0 20px 30px;
    margin: 30px 0;
    font-size: 1.25rem;
    font-style: italic;
    color: #444;
}

.pull-quote cite {
    display: block;
    font-size: 0.875rem;
    font-style: normal;
    margin-top: 10px;
    color: #666;
}

/* OpenRouter Ranking Section */
.openrouter-ranking {
    margin: 30px 0;
    text-align: center;
}

.ranking-mockup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 500px;
    margin: 0 auto;
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.ranking-header h4 {
    color: white;
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

.ranking-date {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

.ranking-list {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.ranking-item.featured {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 4px 12px rgba(255,215,0,0.3);
}

.ranking-item:last-child {
    margin-bottom: 0;
}

.rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #666;
    margin-right: 15px;
    min-width: 40px;
}

.ranking-item.featured .rank {
    color: #d00;
}

.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-info strong {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.tokens {
    font-size: 0.875rem;
    color: #666;
}

.ranking-item.featured .tokens {
    color: #333;
    font-weight: 600;
}

.usage-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.ranking-item.featured .usage-bar {
    background: linear-gradient(90deg, #d00 0%, #ff4444 100%);
}

.view-full-rankings {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-full-rankings:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.ranking-caption {
    margin-top: 15px;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar */
.sidebar-item {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-item h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-item {
    margin-bottom: 20px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: #1a1a1a;
    color: #fff;
    padding: 12px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #333;
}

/* Services Section */
.services {
    background-color: #f8f8f8;
    padding: 80px 0;
}

.section-headline {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-item {
    background-color: #fff;
    padding: 40px;
    border: 1px solid #ddd;
    position: relative;
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: #f0f0f0;
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Playfair Display', serif;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-item ul {
    list-style: none;
    margin-top: 20px;
}

.service-item li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.service-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

/* Engagements Section */
.engagements {
    background-color: #fff;
    padding: 80px 0;
}

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

.engagement-card {
    border: 2px solid #ddd;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.engagement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.engagement-card.featured {
    border-color: #1a1a1a;
    background-color: #fafafa;
}

.engagement-badge {
    background-color: #d00;
    color: #fff;
    padding: 5px 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.engagement-card h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.duration {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.features {
    list-style: none;
    margin: 20px 0 30px;
    text-align: left;
}

.features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.cta-button {
    background-color: #1a1a1a;
    color: #fff;
    padding: 15px 30px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #333;
    color: #fff;
}

.cta-button.secondary {
    background-color: #fff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.cta-button.secondary:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* Testimonials Section */
.testimonials {
    background-color: #f8f8f8;
    padding: 80px 0;
}

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

.testimonial-item {
    background-color: #fff;
    padding: 30px;
    border-left: 4px solid #1a1a1a;
}

.testimonial-item blockquote {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #444;
}

.testimonial-author strong {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #666;
    font-size: 0.875rem;
}

/* About Section */
.about {
    background-color: #fff;
    padding: 80px 0;
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.about-stats .stat {
    text-align: center;
}

.about-stats h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.about-stats p {
    color: #666;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.image-placeholder {
    background-color: #f0f0f0;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
}

.image-placeholder p {
    color: #999;
    font-size: 1.25rem;
}

/* Contact Section */
.contact {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0;
}

.contact h2 {
    color: #fff;
}

.contact-lead {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 50px;
    color: #ccc;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
}

.submit-button {
    grid-column: span 2;
    background-color: #fff;
    color: #1a1a1a;
    padding: 15px 30px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #f0f0f0;
}

.contact-info h3 {
    color: #fff;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item strong {
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.info-item p {
    color: #ccc;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-newsletter h4 {
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

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

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

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: #ccc;
    margin: 0 10px;
}

.footer-bottom a:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-logo-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .kilo-logo {
        height: 50px;
        width: 50px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .main-headline {
        font-size: 2rem;
    }
    
    .lead-question {
        font-size: 1.25rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .engagement-types,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width,
    .submit-button {
        grid-column: span 1;
    }
    
    .about-stats {
        justify-content: space-around;
    }
}