:root {
  --bg: #09090b;
  --surface-low: #18181b;
  --surface-mid: #27272a;
  --surface-high: #3f3f46;
  --text: #fafafa;
  --muted: #a1a1aa;
  --primary: #3b82f6;
  --border: #27272a;
  --success: #22c55e;
  --error: #ef4444;
  --radius: 0.5rem;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface-low);
}

.card {
  background: var(--surface-low);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--primary);
}

/* Navigation */
nav {
  height: 4rem;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Alfa ribbon — diagonal top-right corner */
.alfa-ribbon-wrap {
  position: fixed;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  overflow: hidden;
  z-index: 9999;
  pointer-events: none;
}

.alfa-ribbon-label {
  position: absolute;
  top: 36px;
  right: -38px;
  width: 170px;
  padding: 9px 0;
  background: linear-gradient(180deg, #9333ea, #7c3aed);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transform: rotate(45deg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4),
              0 1px 0 rgba(255,255,255,0.15) inset;
  pointer-events: all;
  transition: background 0.2s;
}

.alfa-ribbon-label::before,
.alfa-ribbon-label::after {
  content: '';
  position: absolute;
  top: 100%;
  border: 4px solid #6b21a8;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.alfa-ribbon-label::before {
  left: 0;
  border-right-color: #6b21a8;
  border-left-color: transparent;
}

.alfa-ribbon-label::after {
  right: 0;
  border-left-color: #6b21a8;
  border-right-color: transparent;
}

.alfa-ribbon-label:hover {
  background: linear-gradient(180deg, #a855f7, #9333ea);
  color: #fff;
}

.alfa-ribbon-dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #a855f7;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: all;
  transition: background 0.15s;
}

.alfa-ribbon-dismiss:hover {
  background: rgba(124, 58, 237, 0.5);
  color: #fff;
}

/* Open Alfa nav link */
.nav-alfa-link {
  color: #a855f7 !important;
  font-weight: 700;
}

.nav-alfa-link:hover {
  color: #c084fc !important;
}

/* Customers section */
.section-surface {
  background: var(--surface-low);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
}

.customer-grid {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.customer-card {
  text-align: center;
  max-width: 350px;
}

.customer-logo {
  width: 50%;
  margin-bottom: 1.5rem;
}

.customer-name-link {
  color: var(--text);
  text-decoration: none;
}

.customer-name-link:hover {
  color: var(--primary);
}

.customer-description {
  color: var(--muted);
  margin-top: 1rem;
}


.nav-dropdown-toggle {
  color: var(--text) !important;
  text-decoration: none;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  background: none;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus {
  color: var(--primary) !important;
}


/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.success-banner {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  padding: 1rem;
  border: 1px solid var(--success);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.error-list {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  padding: 1rem;
  border: 1px solid var(--error);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  list-style: none;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

/* Tech Decisions page */
.tech-decisions-hero {
  text-align: center;
  padding: 6rem 0 3rem;
}

.tech-decisions-title {
  font-size: 3rem;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.tech-decisions-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.tech-decisions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.tech-decision-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tech-decision-key {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}

.tech-decision-body {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.tech-decisions-empty {
  text-align: center;
  color: var(--muted);
  padding: 4rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}
