/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.site-header {
    background-image: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6)), url('/assets/header-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 120px;
    position: sticky;
    top: 0;
    width: 100%;
    margin-bottom: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(0);
    /* New bottom accent container context */
    position: sticky;
}

/* Electric blue center-glow bottom border (3px crisp + soft fade above) */
.site-header:after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    /* Core bright bar centered, fading to near-black */
    background: radial-gradient(ellipse at 50% 100%,
        #ffd61e 0%,
        #a16900 18%,
        #883d00 40%,
        rgba(0,20,40,0.85) 70%,
        rgba(0,10,20,0.95) 100%);
    filter: blur(2px) drop-shadow(0 0 4px #ffcc25) drop-shadow(0 0 10px rgba(190, 146, 0, 0.692));
    pointer-events: none;
    z-index: 2;
}

/* Fuzzy glow layer (sits above crisp bar, fades upward) */
/* .site-header:before removed: no fuzzy glow, only crisp line remains */

.site-header.scrolled {
    min-height: 80px;
    background-image: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(0,0,0,0.9)), url('/assets/header-background.png');
}

.site-header.hidden {
    transform: translateY(-100%);
}

/* Header ignore functionality for smooth navigation */
.site-header.scroll-ignore,
header.scroll-ignore,
.header.scroll-ignore,
nav.scroll-ignore,
.nav.scroll-ignore {
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
}

.navbar {
    padding: 2rem 0;
    transition: padding 0.3s ease;
}

.site-header.scrolled .navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-link:hover {
    color: #ffd700;
}

/* Dropdown navigation */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
    margin-top: 0.5rem;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    min-width: 80px;
}

.dropdown-link:hover {
    background: rgba(255,215,0,0.1);
    color: #ffd700;
    border-color: rgba(255,215,0,0.3);
}

.dropdown-link.active {
    background: rgba(255,215,0,0.2);
    color: #ffd700;
    border-color: #ffd700;
}

/* Active nav state */
.nav-link.active {
    position: relative;
    color:#ffd700;
    font-weight:600;
}
.nav-link.active:after {
    content:"";
    position:absolute;
    left:0; right:0; bottom:-6px;
    height:3px;
    background:linear-gradient(90deg,#ffd700,#ffcc33);
    border-radius:2px;
}

/* Special active state for Buy Now CTA */
.nav-link.nav-cta.active {
    color: #222;
    background: linear-gradient(135deg,#e6e6e6,#f0f0f0);
    font-weight: 600;
}
.nav-link.nav-cta.active:after {
    background: linear-gradient(90deg,#999,#bbb);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('/assets/smokes-show.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}


.home-page .hero{
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('/assets/purple-blue-smokes-show.png');
        background-repeat: no-repeat;
    background-position: center;
        background-color: black;


}

.learning-page .hero{
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('/assets/lightning-fractal.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: black;
}
.solutions-page .hero{
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('/assets/lightning-fractal.png');
}
.research-page .hero{
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('/assets/stars.png');
    background-size: cover;
    background-position: -0px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    opacity: 0.9;
}

/* Main content */
.main-content {
    padding: 0;
}

.content {
    padding: 4rem 0;
}

.content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.content-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.content-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.content-card p {
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Button variants */
.btn.small { padding:0.5rem 1rem; font-size:0.75rem; }
.btn.tiny { padding:0.35rem 0.65rem; font-size:0.65rem; border-radius:4px; }
.btn.ghost { background:#e9ecef; color:#333; box-shadow:none; }
.btn.ghost:hover { background:#dde1e5; }

/* Lock / gated content visuals */
.locked-link { position:relative; padding-right:1.25rem; display:inline-flex; align-items:center; gap:0.4rem; }
.locked-link .lock-icon { width:14px; height:14px; display:inline-block; }
.locked { filter:grayscale(0.3); opacity:0.85; }
.lock-badge { background:#ffb347; color:#222; font-size:0.55rem; padding:0.15rem 0.4rem; border-radius:4px; text-transform:uppercase; letter-spacing:0.5px; }
/* Show lock emoji automatically before locked inline links */
a[data-locked="true"]::before { content:'\1F512'; /* 🔒 */ display:inline-block; margin-right:0.35rem; font-size:0.85em; transform:translateY(-1px); }
a[data-locked="true"] { text-decoration:none; border-bottom:1px solid rgba(0,0,0,0.15); padding-bottom:1px; }
a[data-locked="true"]:hover { border-bottom-color: rgba(0,0,0,0.4); }

/* User widget */
.user-widget .user-icon { display:inline-flex; width:26px; height:26px; align-items:center; justify-content:center; }
.user-icon-btn { background:transparent; border:none; display:flex; flex-direction:column; align-items:center; gap:2px; cursor:pointer; padding:0; position:relative; }
.user-icon-btn:focus { outline:2px solid #ffd700; outline-offset:2px; border-radius:6px; }
.user-credits-inline { display:block; min-height:0.7rem; font-size:0.6rem; line-height:0.7rem; color:#ffd700; font-weight:600; width:100%; text-align:center; }
.user-menu { position:absolute; right:0; top:110%; background:#111; color:#fff; min-width:180px; border:1px solid rgba(255,255,255,0.08); border-radius:10px; padding:0.5rem 0 0.6rem; box-shadow:0 12px 28px -8px rgba(0,0,0,0.55); display:none; z-index:10001; animation:fadeSlide 160ms ease; }
.user-menu[aria-hidden="false"] { display:block; }
.user-menu-header { padding:0.5rem 0.9rem 0.4rem; border-bottom:1px solid rgba(255,255,255,0.08); }
.user-menu-name { font-size:0.75rem; font-weight:600; letter-spacing:0.3px; }
.user-menu-credits { font-size:0.65rem; color:#ffd700; margin-top:2px; }
.user-menu-body { display:flex; flex-direction:column; padding:0.25rem 0; }
.user-menu-item { background:transparent; border:none; text-align:left; padding:0.45rem 0.9rem; font-size:0.7rem; color:#eee; cursor:pointer; display:flex; gap:0.4rem; align-items:center; }
.user-menu-item:hover { background:rgba(255,255,255,0.08); color:#fff; }
@keyframes fadeSlide { from { opacity:0; transform:translateY(-4px);} to { opacity:1; transform:translateY(0);} }

/* Modal */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.55); display:flex; align-items:center; justify-content:center; /* must sit above sticky header */ z-index:9999; padding:1rem; pointer-events:auto; }
.modal { background:#fff; width:100%; max-width:460px; border-radius:14px; padding:1.5rem 1.5rem 1.75rem; position:relative; box-shadow:0 18px 60px -8px rgba(0,0,0,0.3); box-sizing:border-box; max-height:calc(100vh - 2rem); overflow:auto; }
.modal-title { margin:0 0 0.5rem; font-size:1.3rem; }
.modal-desc { font-size:0.9rem; line-height:1.4; margin:0 0 1rem; color:#444; }
.modal-actions { display:flex; gap:0.6rem; flex-wrap:wrap; }
.modal-close { position:absolute; top:8px; right:10px; background:transparent; border:none; font-size:1.3rem; cursor:pointer; line-height:1; }
.purchase-buttons .btn { flex:1 1 auto; }

/* On very short viewports, align modal to the top with some spacing so the header isn't cut off */
@media (max-height:520px) {
    .modal-overlay { align-items:flex-start; padding-top:1.25rem; padding-bottom:1.25rem; }
    .modal { max-height:calc(100vh - 2.5rem); border-radius:10px; }
}

/* When a modal is open, prevent background pointer interactions and slightly bias modal toward top for easier reach */
body.modal-open > *:not(.modal-overlay) { pointer-events: none; user-select: none; }
body.modal-open .modal-overlay { align-items:flex-start; padding-top:2.2rem; }
body.modal-open .modal { transform: translateY(-6%); }

/* Locked card overlay */
.card-locked { position:relative; }
.card-locked:before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(255,255,255,0) 40%,rgba(0,0,0,0.55)); border-radius:12px; opacity:0.9; }
.card-locked .locked-label { position:absolute; bottom:0.75rem; left:0.75rem; background:#ffb347; color:#222; padding:0.35rem 0.6rem; border-radius:6px; font-size:0.65rem; font-weight:600; box-shadow:0 4px 10px rgba(0,0,0,0.25); }


/* Navigation CTA */
.nav-link.nav-cta {
        background: linear-gradient(135deg,#ffb347,#ffcc33);
        padding: 0.5rem 1rem;
        border-radius: 24px;
        font-weight:600;
        box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.nav-link.nav-cta:hover { color:#222; background: linear-gradient(135deg,#ffc35d,#ffe066); }

/* Demo Chat & Scenarios */
.demo-controls { display:flex; gap:0.75rem; align-items:center; margin:1rem 0 0.5rem; }
.demo-controls input[type=text]{ padding:0.5rem 0.75rem; border:1px solid #ccc; border-radius:6px; min-width:160px; }
.system-block { margin:0.75rem 0 1rem; display:flex; flex-direction:column; gap:0.5rem; }
.system-block textarea { width:100%; font-family:inherit; padding:0.75rem; border:1px solid #ccc; border-radius:6px; }

.scenario-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:1rem; margin:1rem 0 1.5rem; }
.scenario-card { background:#ffffff; border:1px solid #e2e6ea; border-radius:10px; padding:1rem; position:relative; box-shadow:0 4px 12px rgba(0,0,0,0.06); display:flex; flex-direction:column; }
.scenario-card h4 { margin:0 0 0.5rem; font-size:1rem; color:#2c3e50; }
.scenario-card p { flex:1; font-size:0.85rem; color:#555; line-height:1.3; }
.scenario-card .btn.small { align-self:flex-start; padding:0.4rem 0.9rem; font-size:0.75rem; margin-top:0.5rem; }
.scenario-card:hover { transform:translateY(-3px); transition:transform 0.25s ease; }

.chat-container { background:#fff; border:1px solid #e2e6ea; border-radius:12px; padding:1rem; box-shadow:0 6px 20px rgba(0,0,0,0.08); }
.chat-messages { max-height:420px; overflow-y:auto; display:flex; flex-direction:column; gap:0.75rem; padding:0.25rem 0.25rem 0.5rem; }
.chat-bubble { padding:0.75rem 1rem; border-radius:14px; font-size:0.9rem; line-height:1.35; white-space:pre-wrap; word-wrap:break-word; }
.chat-bubble.assistant { background:#f1f4f8; color:#222; align-self:flex-start; }
.chat-bubble.user { background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; align-self:flex-end; }
.chat-bubble.system { background:#ffe9b3; color:#3d3310; font-style:italic; }
.chat-bubble.error { background:#f8d7da; color:#7a1c23; }
.chat-bubble.pending { background:#e2e6ea; color:#555; font-style:italic; }
.chat-bubble.intro { box-shadow:0 2px 6px rgba(0,0,0,0.08); }
.chat-form { margin-top:0.75rem; }
.chat-input-row { display:flex; gap:0.75rem; }
.chat-input-row input { flex:1; padding:0.7rem 0.9rem; border:1px solid #ccc; border-radius:8px; font-size:0.95rem; }
.chat-error { margin-top:0.75rem; background:#f8d7da; color:#721c24; padding:0.5rem 0.75rem; border-radius:6px; font-size:0.8rem; }
.arch-notes { margin-top:1.5rem; }

.visually-hidden { position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

@media (max-width: 640px){
    .chat-messages { max-height:60vh; }
    .scenario-grid { grid-template-columns:1fr; }
    .demo-controls { flex-wrap:wrap; }
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Mobile dropdown behavior */
    .dropdown-menu {
        position: static;
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 0;
        padding: 0;
        min-width: auto;
        opacity: 0;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: none;
        margin-top: 0.5rem;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
    }
    
    .dropdown-toggle {
        cursor: pointer;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Spectacle page elements */
.spectacle-highlight { background:#fff8e6; border-left:4px solid #ffb347; padding:0.9rem 1rem; margin:1.2rem 0 2rem; font-size:0.9rem; line-height:1.4; border-radius:6px; }
.spectacle-cta { margin:2rem 0; background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; padding:1rem 1.25rem; border-radius:10px; font-size:0.95rem; box-shadow:0 6px 18px rgba(0,0,0,0.15); }
.spectacle-cta a { color:#ffd700; text-decoration:none; font-weight:600; }
.spectacle-cta a:hover { text-decoration:underline; }
.mini-links { font-size:0.75rem; opacity:0.85; margin-top:0.5rem; }

/* Research and About page specific styles */
.research-intro,
.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #495057;
    max-width: 800px;
    margin: 0 auto;
}

.research-topics {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.research-topics li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #6c757d;
}

.research-topics li:before {
    content: "→ ";
    color: #667eea;
    font-weight: bold;
}

.project-timeline {
    margin: 2rem 0;
}

.project-item {
    display: flex;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-date {
    min-width: 120px;
    font-weight: bold;
    color: #667eea;
    font-size: 0.9rem;
}

.project-content {
    flex: 1;
    margin-left: 2rem;
}

.project-content h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.project-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.project-status.ongoing {
    background: #d4edda;
    color: #155724;
}

.project-status.planned {
    background: #fff3cd;
    color: #856404;
}

.method-grid,
.focus-grid,
.approach-content,
.collab-grid,
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.method-item,
.focus-item,
.approach-item,
.collab-item,
.ecosystem-item {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.method-item h4,
.focus-item h4,
.approach-item h3,
.collab-item h4,
.ecosystem-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.philosophy {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.philosophy-text {
    min-width: 0; /* Allows text to shrink if needed */
}

.philosophy-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 1rem;
}

.philosophy-drawing {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.philosophy-drawing:hover {
    opacity: 1;
}

.philosophy h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.philosophy h3:first-child {
    margin-top: 0;
}

.mission-grid {
    margin: 3rem 0;
}

.engagement-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .project-item {
        flex-direction: column;
    }
    
    .project-content {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .method-grid,
    .focus-grid,
    .approach-content,
    .collab-grid,
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .philosophy-visual {
        order: -1; /* Move image above text on mobile */
        padding-top: 0;
    }
    
    .philosophy-drawing {
        max-width: 150px;
    }
}

/* Settings page styles */
.settings-sections {
    max-width: 600px;
    margin: 2rem 0;
}

.settings-section {
    background: white;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.settings-section h2 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #334;
    border-bottom: 1px solid #f0f3f7;
    padding-bottom: 0.5rem;
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    font-weight: 500;
    color: #556;
    margin-bottom: 0.5rem;
}

.setting-item input[type="text"],
.setting-item input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.setting-item input[type="text"]:disabled,
.setting-item input[type="email"]:disabled {
    background: #f8f9fa;
    color: #888;
}

.setting-item input[type="checkbox"] {
    margin-right: 0.5rem;
}

.credits-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.credits-label {
    font-weight: 500;
    color: #556;
}

.credits-value {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.btn.secondary {
    background: #6c757d;
    color: white;
}

.btn.secondary:hover {
    background: #5a6268;
}

.btn.danger {
    background: #dc3545;
    color: white;
}

.btn.danger:hover {
    background: #c82333;
}
