/* FreeOSBot.com — Main Stylesheet */
:root {
  --bg:        #08090d;
  --bg2:       #0d0f18;
  --bg3:       #12151f;
  --surface:   #181c2a;
  --border:    #1e2438;
  --accent:    #00d4aa;
  --accent2:   #0095ff;
  --accent-dim:#00d4aa22;
  --text:      #e8eaf2;
  --text-muted:#6b7494;
  --text-dim:  #3d4460;
  --green:     #00d4aa;
  --blue:      #0095ff;
  --yellow:    #f5c842;
  --red:       #ff4d6a;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

/* NAV */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(8,9,13,0.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.nav-logo { font-size: 1.1rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all var(--transition); border: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #08090d; }
.btn-primary:hover { background: #00f0c4; color: #08090d; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,212,170,0.3); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent-dim); color: var(--accent); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg3); border-color: var(--accent); color: var(--accent); }

/* HERO */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,212,170,0.08) 0%, transparent 60%), radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0,149,255,0.05) 0%, transparent 50%); pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; padding: 6px 14px; background: var(--accent-dim); border: 1px solid rgba(0,212,170,0.3); border-radius: 100px; font-size: 0.75rem; font-family: var(--mono); color: var(--accent); margin-bottom: 28px; letter-spacing: 0.05em; text-transform: uppercase; }
#hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; max-width: 800px; }
.hero-sub { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin-bottom: 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; padding-top: 48px; border-top: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--accent); font-family: var(--mono); letter-spacing: -0.02em; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* SECTIONS */
section { padding: 96px 0; }
section:nth-child(even) { background: var(--bg2); }
.section-label { font-size: 0.75rem; font-family: var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
section h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 20px; }
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; line-height: 1.7; margin-bottom: 56px; }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: all var(--transition); }
.card:hover { border-color: rgba(0,212,170,0.3); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ARCHITECTURE */
.arch-diagram { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; margin-bottom: 48px; }
.arch-layer { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; padding: 20px; border-radius: var(--radius); margin-bottom: 4px; }
.layer-master { background: rgba(0,212,170,0.05); border: 1px solid rgba(0,212,170,0.15); }
.layer-sensors { background: rgba(0,149,255,0.05); border: 1px solid rgba(0,149,255,0.15); }
.layer-resilience { background: rgba(245,200,66,0.04); border: 1px solid rgba(245,200,66,0.12); }
.layer-label { font-size: 0.7rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); width: 100%; margin-bottom: 8px; }
.arch-node { display: flex; flex-direction: column; gap: 4px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; flex: 1; min-width: 180px; }
.node-icon { font-size: 1.5rem; }
.node-name { font-size: 0.9rem; font-weight: 600; }
.node-desc { font-size: 0.75rem; color: var(--text-muted); font-family: var(--mono); }
.arch-connector { display: flex; flex-direction: column; align-items: center; padding: 8px 0; gap: 4px; }
.conn-line { width: 2px; height: 24px; background: linear-gradient(to bottom, var(--accent), var(--blue)); opacity: 0.4; }
.conn-labels span { font-size: 0.7rem; font-family: var(--mono); color: var(--text-muted); }
.tech-stack { margin-top: 48px; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.stack-tags span { padding: 6px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; font-size: 0.8rem; font-family: var(--mono); color: var(--text-muted); transition: all var(--transition); }
.stack-tags span:hover { border-color: var(--accent); color: var(--accent); }

/* DOCS */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.doc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: all var(--transition); }
.doc-card:hover { border-color: rgba(0,212,170,0.3); transform: translateY(-2px); }
.doc-icon { font-size: 1.75rem; }
.doc-card h4 { font-size: 1rem; font-weight: 600; }
.doc-card p { font-size: 0.85rem; color: var(--text-muted); flex: 1; line-height: 1.6; }
.doc-link { font-size: 0.85rem; color: var(--accent); font-weight: 500; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 32px; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.pricing-featured { border-color: var(--accent); background: linear-gradient(135deg, var(--surface) 0%, rgba(0,212,170,0.04) 100%); box-shadow: 0 0 0 1px rgba(0,212,170,0.2), var(--shadow); }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #08090d; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 14px; border-radius: 100px; }
.pricing-tier { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.pricing-price { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; font-family: var(--mono); }
.pricing-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-desc { font-size: 0.875rem; color: var(--text-muted); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-features li { font-size: 0.875rem; }
.pricing-features li.muted { color: var(--text-muted); }
.pricing-card .btn { width: 100%; justify-content: center; }
.handover-note { background: var(--surface); border: 1px solid rgba(0,212,170,0.2); border-radius: var(--radius); padding: 20px 24px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.handover-note strong { color: var(--text); }

/* ABOUT / TERMINAL */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.about-terminal { background: #0c0e16; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.terminal-bar { background: var(--surface); padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.r { background: var(--red); }
.t-dot.y { background: var(--yellow); }
.t-dot.g { background: var(--green); }
.t-title { font-size: 0.75rem; font-family: var(--mono); color: var(--text-muted); margin-left: 8px; }
.terminal-body { padding: 20px 20px 24px; font-family: var(--mono); font-size: 0.82rem; }
.t-line { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.t-prompt { color: var(--accent); }
.t-output { color: var(--text-muted); padding-left: 20px; margin-bottom: 4px; }
.t-output.t-muted { color: var(--text-dim); }
.t-cursor { display: inline-block; color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* CONTACT */
.contact-options { display: flex; gap: 20px; flex-wrap: wrap; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 200px; transition: all var(--transition); color: var(--text); }
.contact-card:hover { border-color: rgba(0,212,170,0.3); transform: translateY(-2px); }
.contact-icon { font-size: 1.75rem; }
.contact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-family: var(--mono); }
.contact-value { font-size: 0.95rem; font-weight: 500; }

/* FOOTER */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; margin-bottom: 48px; }
.footer-logo { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.footer-license { font-size: 0.75rem; font-family: var(--mono); color: var(--text-dim); }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px; }
.footer-col a { font-size: 0.875rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-stats { gap: 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  section { padding: 64px 0; }
}
