/* ============ The Cool Company, Inc. ============ */
:root {
  --blue: #5b8fd3;
  --blue-soft: #7aa7e0;
  --blue-dark: #3d6cab;
  --navy: #14202e;
  --navy-2: #1c2d40;
  --ink: #1a2430;
  --muted: #5b6b7c;
  --line: #e3e9f1;
  --bg: #f7f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 32, 46, 0.08);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue-dark); text-decoration: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img { height: 38px; width: auto; }

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.15;
}

.brand-name small {
  display: block;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.main-nav { display: flex; align-items: center; gap: 1.8rem; }

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.15s;
}

.main-nav a:hover, .main-nav a.active { color: var(--blue-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue-dark);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(61, 108, 171, 0.35);
}

.btn-primary:hover { background: #345d94; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue);
}

.btn-ghost:hover { background: rgba(91, 143, 211, 0.08); transform: translateY(-2px); }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 0 5rem;
}

.hero h1 span { color: var(--blue-dark); }

.hero p.lead { margin: 1.4rem 0 2.2rem; max-width: 34rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-art { position: relative; }

.hero-art img { width: 100%; max-width: 460px; margin: 0 auto; }

.hero-note {
  margin-top: 2.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--navy);
  color: var(--white);
  padding: 2.6rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-soft);
}

.stat span { font-size: 0.9rem; color: #b9c6d4; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg); }

.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 1rem; color: var(--muted); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(20, 32, 46, 0.12); }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(91, 143, 211, 0.14);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.card .icon svg { width: 24px; height: 24px; stroke: var(--blue-dark); }

.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: rgba(91, 143, 211, 0.35);
  display: block;
  margin-bottom: 0.6rem;
}

.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Dark feature section (Control Center) ---------- */
.dark-section {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.dark-section h2, .dark-section h3 { color: var(--white); }
.dark-section .kicker { color: var(--blue-soft); }
.dark-section p { color: #b9c6d4; }

.dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.4rem; margin-top: 1.8rem; }

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #d3dde8;
}

.feature-list li::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--blue) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/11px no-repeat;
}

.waves-bg {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  opacity: 0.14;
  pointer-events: none;
}

/* ---------- Split (two-column text/image) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem;
}

.check-list { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.85rem; }

.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink); }

.check-list li::before {
  content: "";
  flex: 0 0 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--blue) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/12px no-repeat;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { color: #e6eefb; max-width: 38rem; margin: 0 auto 2rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero h1 { color: var(--white); }
.page-hero p { color: #b9c6d4; max-width: 40rem; margin-top: 1.1rem; font-size: 1.1rem; }

/* ---------- Team / roles ---------- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.role {
  border-left: 4px solid var(--blue);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.6rem 1.6rem 1.6rem 1.8rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.role h3 { margin-bottom: 0.5rem; }
.role p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.founder-card {
  background: var(--navy);
  border-radius: var(--radius);
  color: var(--white);
  padding: 2.4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.founder-card .avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue), var(--blue-dark));
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
}

.founder-card h3 { color: var(--white); font-size: 1.25rem; }
.founder-card span { color: var(--blue-soft); font-size: 0.9rem; font-weight: 600; }
.founder-card .langs { margin-top: 1.2rem; display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.founder-card .langs em {
  font-style: normal;
  font-size: 0.78rem;
  background: rgba(122, 167, 224, 0.18);
  color: #cfdef3;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
}

.founder-bio p + p { margin-top: 1rem; }
.founder-bio p { color: var(--muted); }

/* ---------- Values ---------- */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }

.contact-info .item { display: flex; gap: 1rem; margin-bottom: 1.6rem; }

.contact-info .item .icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(91, 143, 211, 0.14);
  display: grid;
  place-items: center;
}

.contact-info .item .icon svg { width: 22px; height: 22px; stroke: var(--blue-dark); }

.contact-info h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contact-info p { color: var(--muted); font-size: 0.95rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

.form-status { margin-top: 1rem; font-size: 0.92rem; color: var(--blue-dark); display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c6d4; padding: 3.5rem 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.site-footer img.footer-logo { width: 170px; margin-bottom: 1.2rem; }

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer a { color: #b9c6d4; font-size: 0.95rem; }
.site-footer a:hover { color: var(--white); }
.site-footer p { font-size: 0.92rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: #7e8fa0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .dark-grid, .split, .founder, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 300px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    inset: 63px 0 auto 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.95rem 6%; width: 100%; border-top: 1px solid var(--line); }
  .main-nav .btn { margin: 0.9rem 6% 1.2rem; width: auto; }
  .nav-toggle { display: block; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}
