:root {
    --primary-color: #D35400;
    --primary-dark: #A04000;
    --primary-light: #E67E22;
    --dark-bg: #1A1A1A;
    --light-bg: #F8F9FA;
}

/* General Styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Brand: pill logo + tagline */
.brand-logo-chip {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    padding: 6px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.brand-logo {
    display: block;
    height: 28px;
    width: auto;
}

.brand-tagline {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Header brand wordmark */
.brand-wordmark {
    font-size: 2.75rem;
    line-height: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2C2C2C 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/grid-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Chips and trust row */
.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .65rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(2px);
    font-size: .9rem;
}

/* Code panel on hero */
.code-panel {
    background: #0f0f10;
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    border: 1px solid rgba(255,255,255,.08);
}

.code-panel pre {
    margin: 0;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    color: #e6e6e6;
    background: transparent;
    font-size: .95rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.code-panel code { white-space: inherit; }

.code-panel code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--light-bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--primary-dark);
}

/* Contact Page */
.contact-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary-color);
}

/* About: avatar + timeline */
.avatar-circle {
    inline-size: 48px;
    block-size: 48px;
    border-radius: 999px;
    background: #0f0f10;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: .5px;
}

.timeline {
    position: relative;
    margin-left: 1rem;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(0,0,0,.08);
}

.timeline-item { position: relative; padding-bottom: 1.25rem; }

.timeline-dot {
    position: absolute;
    left: -10px;
    top: .25rem;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 84, 0, .15);
}

.timeline-content h4 { font-weight: 700; }

/* Story lede dropcap */
.story-lede::first-letter {
    float: left;
    font-size: 2.6rem;
    line-height: 1;
    padding-right: 8px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Story card + accents */
.pattern-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/grid-pattern.svg') repeat;
    opacity: .12;
    pointer-events: none;
}

.story-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.story-glow {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: .9;
}

.pull-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #111;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    color: #333;
    font-size: .9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .btn-group {
        justify-content: center;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
