/* Sailbit.co — Technical resilience advisory
   Sophisticated, technical aesthetic */

:root {
  --bg-deep: #0d1117;
  --bg-surface: #161b22;
  --bg-elevated: #21262d;
  --border: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #a5adb6;
  --text-muted: #848e9a;
  --accent: #58a6ff;
  --accent-amber: #d29922;
  --accent-teal: #3fb950;
  --accent-red: #f85149;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.07rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: #79b8ff;
}

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 3.2rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
}
.nav a:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.nav a.active {
  color: var(--accent);
  font-weight: 500;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0;
  line-height: 1.25;
}

h1 { font-size: clamp(2.15rem, 5.3vw, 2.95rem); margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  max-width: 65ch;
}

.lead {
  font-size: 1.22rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Code / technical blocks */
.code-block, .tech-example {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.code-block .comment { color: var(--text-muted); }
.code-block .keyword { color: #ff7b72; }
.code-block .string { color: var(--accent-teal); }
.code-block .number { color: var(--accent-amber); }

.tech-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}
.card:hover {
  border-color: var(--accent);
}

.card h3 { margin-top: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #79b8ff;
  color: #fff;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
  color: var(--text-primary);
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}
.hero .lead {
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Pain point items */
.pain-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.pain-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pain-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.pain-item h3 { margin-top: 0; }

/* Schedule / form */
.schedule-intro {
  max-width: 55ch;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}
.site-footer a { color: var(--text-secondary); }

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
