:root {
  --bg-page: #fafafa;
  --bg-card: #ffffff;
  --text-main: #2b2b2b;
  --text-muted: #666666;
  --border: #dddddd;
  
  --brand-primary: #dc2626; /* Red 600 */
  --brand-warning: #f59e0b; /* Amber 500 */
  
  --btn-green: #70c466; /* Matching the screenshot */
  --btn-blue: #7ca8ff; 
  --btn-red: #ff6868;

  --font-sans: 'Segoe UI', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); background-color: var(--bg-page); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

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

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-content { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.brand-img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 18px; color: var(--text-main); }
.nav-links { display: flex; gap: 24px; align-items: center; font-weight: 500; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--text-muted); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--brand-primary); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 14px; transition: all 0.2s; cursor: pointer; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

/* HERO */
.hero { padding: 80px 0; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.hero-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1.15; margin-bottom: 20px; color: #111827; letter-spacing: -0.02em; }
.text-primary { color: var(--brand-primary); }
.hero .lead { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; max-width: 500px; }

/* WINDOW MOCKUP */
.win-mockup {
  background: #fdfdfd;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1), 0 0 0 1px var(--border);
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  color: #000;
  display: flex;
  flex-direction: column;
}
.win-header {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 12px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}
.win-title { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.win-title img { width: 14px; height: 14px; }
.win-controls { display: flex; height: 100%; }
.win-controls span { padding: 0 16px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #333; cursor: pointer; }
.win-controls span:last-child:hover { background: #e81123; color: #fff; }

.win-tabs { display: flex; gap: 16px; padding: 12px 16px 8px; background: #fdfdfd; font-size: 13px; }
.win-tab { display: flex; align-items: center; gap: 6px; color: #555; cursor: default; }
.win-tab.active { font-weight: 600; color: #000; border-bottom: 2px solid var(--text-main); padding-bottom: 4px; }

.win-body { padding: 16px; background: #ffffff; display: flex; flex-direction: column; gap: 24px; border-top: 1px solid #ddd; }
.win-status { font-size: 16px; font-weight: 700; color: #d99a29; display: flex; align-items: center; gap: 8px; }
.win-substatus { font-size: 12px; color: #666; display: flex; align-items: center; gap: 6px; margin-top: 4px; }

.win-actions { display: flex; gap: 12px; }
.win-btn { padding: 4px 16px; font-weight: 600; border: 1px solid rgba(0,0,0,0.2); border-radius: 2px; display: flex; align-items: center; gap: 6px; color: #000; }
.win-btn.green { background: var(--btn-green); }
.win-btn.blue { background: var(--btn-blue); }
.win-btn.red { background: var(--btn-red); }

.win-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; border: 1px solid #ccc; }
.win-table th { background: #f4f4f4; padding: 6px 8px; font-weight: normal; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; }
.win-table td { padding: 4px 8px; border-right: 1px solid #ccc; border-bottom: 1px solid #eee; }
.win-table .row-lundi { background: #0078d7; color: #fff; font-weight: 600; }
.win-table .row-lundi td { border-right-color: #005a9e; }
.win-table tr:not(.row-lundi):hover { background: #f9f9f9; }

/* SECTION WHY */
.section-why { padding: 80px 0; background: var(--bg-page); }
.why-header { text-align: center; margin-bottom: 48px; }
.why-header h2 { font-size: 32px; color: #111827; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.why-card { background: var(--bg-card); padding: 32px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid var(--border); }
.why-card-icon { font-size: 32px; margin-bottom: 16px; }
.why-card h3 { font-size: 20px; margin-bottom: 12px; color: #111827; }
.why-card p { color: var(--text-muted); }

/* TECH SECTION */
.section-tech { padding: 80px 0; background: white; border-top: 1px solid var(--border); }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.tech-card { padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: #fafafa; }
.tech-card h4 { font-family: var(--font-sans); font-size: 16px; color: #222; margin-bottom: 8px; }
.tech-card p { color: #555; }

/* FOOTER */
.footer { padding: 40px 0; background: #111827; color: #f9fafb; text-align: center; }
.footer p { color: #9ca3af; font-size: 14px; margin-top: 8px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero .lead { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .why-grid, .tech-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 40px 0 60px; overflow: hidden; width: 100%; box-sizing: border-box; }
  .hero-content { padding: 0; width: 100%; max-width: 100vw; box-sizing: border-box; }
  .hero h1 { font-size: clamp(32px, 8vw, 40px); }
  .section-why, .section-tech { padding: 60px 0; }
  
  /* WinForms Mobile Fixes */
  .win-mockup { font-size: 11px; max-width: calc(100vw - 32px); margin: 0 auto; border-radius: 6px; box-sizing: border-box; }
  .win-tabs { padding: 12px 12px 0; gap: 10px; flex-wrap: wrap; }
  .win-body { padding: 12px; gap: 16px; min-width: 0; overflow-x: auto; }
  .win-actions { flex-wrap: wrap; }
  .win-btn { flex: 1; justify-content: center; text-align: center; }
  .win-status { font-size: 14px; flex-wrap: wrap; line-height: 1.4; }
  
  /* Scrollable Table */
  .win-table { display: table; min-width: 500px; /* Force table to keep its size so the parent win-body scrolls */ }
}
