/* ============================================
   COGNITOLAB — SITE STYLES v1.0
   Pattern borrowed from the sibling personal-portfolio
   site (CSS custom properties, no build step) but with
   its own indigo brand — CognitoLab is a company shell,
   not a personal résumé.
   ============================================ */

:root {
  --c-accent:        #4f46e5;
  --c-accent-hover:  #4338ca;
  --c-accent-light:  #eef2ff;
  --c-ink:           #0f172a;
  --c-ink-2:         #1e293b;
  --c-text:          #27272a;
  --c-muted:         #6b7280;
  --c-border:        #e5e7eb;
  --c-bg:            #f8fafc;
  --c-white:         #ffffff;

  --c-status-live:        #166534;
  --c-status-live-bg:     #dcfce7;
  --c-status-wip:         #92400e;
  --c-status-wip-bg:      #fef3c7;
  --c-status-prototype:   #3f3f46;
  --c-status-prototype-bg:#e4e4e7;
  --c-status-client:      #1d4ed8;
  --c-status-client-bg:   #dbeafe;
  --c-status-alpha:       #6d28d9;
  --c-status-alpha-bg:    #ede9fe;
  --c-status-on-hold:     #9f1239;
  --c-status-on-hold-bg:  #ffe4e6;

  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 4px 6px -1px rgb(0 0 0/.08), 0 2px 4px -2px rgb(0 0 0/.04);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0/.1), 0 8px 10px -6px rgb(0 0 0/.05);
  --t:         0.2s ease;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.cl-main { flex: 1 0 auto; }
.cl-footer { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-accent); background: var(--c-accent-light);
  padding: 4px 14px; border-radius: 100px; margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.2;
  color: var(--c-ink); margin-bottom: 12px;
}
.section-header p { font-size: 1.02rem; color: var(--c-muted); max-width: 560px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all var(--t); border: 2px solid transparent;
  white-space: nowrap; text-decoration: none !important; line-height: 1.4;
}
.btn-lg { padding: 14px 30px; font-size: .98rem; border-radius: 12px; }
.btn-primary { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn-primary:hover {
  background: var(--c-accent-hover); border-color: var(--c-accent-hover);
  transform: translateY(-1px); box-shadow: 0 6px 20px rgb(79 70 229/.3);
}
.btn-outline { background: transparent; color: var(--c-ink); border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-accent); background: var(--c-accent-light); color: var(--c-accent); }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }
.btn-sm { padding: 7px 16px; font-size: .82rem; border-radius: 8px; }

/* ======================== HEADER ======================== */
.cl-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,250,252,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--t);
}
.cl-header.scrolled { box-shadow: var(--shadow); }
.cl-nav { display: flex; align-items: center; height: 68px; gap: 32px; }
.cl-logo { display: flex; align-items: center; gap: 9px; font-size: 1.1rem; font-weight: 800; color: var(--c-ink); letter-spacing: -.02em; flex-shrink: 0; }
.cl-logo span { color: var(--c-accent); }
.cl-logo__mark { height: 30px; width: auto; border-radius: 7px; display: block; }
.cl-footer__name { display: flex; align-items: center; gap: 8px; }
.cl-footer__mark { height: 22px; width: auto; border-radius: 5px; display: block; }
.cl-nav__links { display: flex; gap: 28px; margin-left: auto; }
.cl-nav__links a { font-size: .88rem; font-weight: 500; color: var(--c-muted); transition: color var(--t); }
.cl-nav__links a:hover { color: var(--c-ink); text-decoration: none; }
.cl-nav__cta { display: flex; gap: 10px; flex-shrink: 0; }

.cl-nav__burger {
  display: none; margin-left: auto; flex-shrink: 0;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.cl-nav__burger span {
  display: block; width: 22px; height: 2px; background: var(--c-text);
  border-radius: 2px; transition: transform var(--t), opacity var(--t);
}
.cl-nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cl-nav__burger.active span:nth-child(2) { opacity: 0; }
.cl-nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cl-nav__mobile {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--c-white); border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg); padding: 8px 24px 20px; max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.cl-nav__mobile.open { display: flex; }
.cl-nav__mobile-link {
  display: block; padding: 14px 0; font-size: 1rem; font-weight: 500;
  color: var(--c-text); border-bottom: 1px solid var(--c-border);
}
.cl-nav__mobile-link:hover { color: var(--c-accent); text-decoration: none; }

/* ======================== HERO ======================== */
.cl-hero {
  background: linear-gradient(135deg, var(--c-ink) 0%, #312e81 65%, #3730a3 100%);
  padding: 88px 0 72px; text-align: center; position: relative; overflow: hidden;
}
.cl-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cl-hero__inner { position: relative; max-width: 720px; margin: 0 auto; }
.cl-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88); font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: 6px 18px; border-radius: 100px; margin-bottom: 24px;
}
.cl-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.14; color: #fff; margin-bottom: 16px;
}
.cl-hero__subtitle {
  font-size: clamp(.95rem, 2vw, 1.08rem);
  color: rgba(255,255,255,.72); max-width: 580px; margin: 0 auto; line-height: 1.7;
}

/* ======================== PRODUCTS GRID ======================== */
.cl-products { padding: 80px 0; }
.cl-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.cl-card {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.cl-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.cl-card__visual {
  height: 130px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--c-accent-light) 0%, #e0e7ff 100%);
  display: flex; align-items: center; justify-content: center;
}
.cl-card__initial {
  font-size: 2rem; font-weight: 900; color: var(--c-accent); opacity: .55;
  letter-spacing: -.03em;
}

.cl-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cl-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cl-card__name { font-size: 1.05rem; font-weight: 800; color: var(--c-ink); letter-spacing: -.01em; }
.cl-card__tagline { font-size: .85rem; color: var(--c-muted); margin-top: 2px; }
.cl-card__desc { font-size: .87rem; color: var(--c-text); line-height: 1.6; flex: 1; }

.status-badge {
  font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  letter-spacing: .03em; text-transform: uppercase; flex-shrink: 0; white-space: nowrap;
}
.status-live      { background: var(--c-status-live-bg);      color: var(--c-status-live); }
.status-wip        { background: var(--c-status-wip-bg);       color: var(--c-status-wip); }
.status-prototype  { background: var(--c-status-prototype-bg); color: var(--c-status-prototype); }
.status-client     { background: var(--c-status-client-bg);    color: var(--c-status-client); }
.status-alpha      { background: var(--c-status-alpha-bg);     color: var(--c-status-alpha); }
.status-on-hold    { background: var(--c-status-on-hold-bg);   color: var(--c-status-on-hold); }

.cl-card__tech { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-tech-pill {
  font-size: .74rem; font-weight: 600; color: var(--c-muted);
  background: var(--c-bg); border: 1px solid var(--c-border);
  padding: 3px 10px; border-radius: 100px;
}
.cl-card__cta { margin-top: 4px; }
.cl-card__cta .btn { width: 100%; justify-content: center; }

/* ======================== GENERIC PRODUCT PAGE ======================== */
.cl-product-hero { padding: 64px 0 56px; background: var(--c-white); border-bottom: 1px solid var(--c-border); }
.cl-product-hero__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cl-product-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; color: var(--c-ink); }
.cl-product-hero__tagline { font-size: 1.05rem; color: var(--c-muted); margin-bottom: 18px; }
.cl-product-hero__summary { font-size: 1rem; color: var(--c-text); max-width: 680px; line-height: 1.7; margin-bottom: 22px; }
.cl-product-hero__links { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.cl-product-hero__meta { font-size: .85rem; color: var(--c-muted); }

.cl-product-section { padding: 56px 0; }
.cl-product-section h2 { font-size: 1.4rem; font-weight: 800; color: var(--c-ink); margin-bottom: 20px; letter-spacing: -.02em; }

.cl-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cl-feature {
  border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 20px;
  background: var(--c-white);
}
.cl-feature__header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cl-feature__header h3 { font-size: .95rem; font-weight: 700; color: var(--c-ink); }
.cl-feature p { font-size: .87rem; color: var(--c-muted); line-height: 1.6; }
.badge { font-size: .65rem; font-weight: 700; padding: 2px 9px; border-radius: 100px; letter-spacing: .04em; text-transform: uppercase; flex-shrink: 0; }
.badge-basic { background: #e4e4e7; color: #3f3f46; }
.badge-pro   { background: #fef3c7; color: #92400e; }
.badge-pro-plus { background: #ede9fe; color: #6d28d9; }
.badge-free { background: #dcfce7; color: #166534; }

.cl-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.cl-pricing-card { border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 28px 24px; background: var(--c-white); }
.cl-pricing-card.popular { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgb(79 70 229/.1); }
.cl-pricing-card__name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.cl-pricing-card__subtitle { font-size: .8rem; color: var(--c-muted); margin-bottom: 18px; }
.cl-pricing-card__price { font-size: 1.6rem; font-weight: 900; color: var(--c-ink); margin-bottom: 18px; }
.cl-pricing-card__price small { font-size: .8rem; font-weight: 600; color: var(--c-muted); }
.cl-pricing-card ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.cl-pricing-card li { font-size: .84rem; padding-left: 18px; position: relative; }
.cl-pricing-card li::before { content: '✓'; color: #16a34a; font-weight: 700; position: absolute; left: 0; }

/* ======================== CONTACT / FOOTER ======================== */
.cl-contact { padding: 72px 0; text-align: center; }
.cl-contact h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; color: var(--c-ink); letter-spacing: -.03em; margin-bottom: 14px; }
.cl-contact p { font-size: 1rem; color: var(--c-muted); max-width: 480px; margin: 0 auto 28px; }

.cl-footer { background: var(--c-ink); padding: 36px 0; }
.cl-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cl-footer__name { font-size: .95rem; font-weight: 700; color: #fff; }
.cl-footer__copy { font-size: .78rem; color: #94a3b8; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 920px) {
  .cl-product-grid { grid-template-columns: 1fr 1fr; }
  .cl-feature-list { grid-template-columns: 1fr; }
  .cl-nav__links { display: none; }
  .cl-nav__burger { display: flex; }
}
@media (max-width: 640px) {
  .cl-hero { padding: 56px 0 44px; }
  .cl-products, .cl-product-section, .cl-contact { padding: 52px 0; }
  .section-header { margin-bottom: 36px; }
  .cl-product-grid { grid-template-columns: 1fr; }
  .cl-footer__inner { flex-direction: column; text-align: center; }
}
