:root {
  --bg-dark: #0A0A0A;
  --text-primary: #FFFFFF;
  --text-secondary: #F2F2F2;
  --text-muted: #6B6B6B;
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --border-hairline: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --font-display: 'Geist Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .mono-text, .btn, .eyebrow {
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: 400;
}

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

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background-color: var(--surface-hover);
}

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

section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border-hairline);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border-hairline);
}

.nav-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(to right, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.4) 100%), url("freepik_hyperrealistic-baroque-ce_2866121920.png");
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  z-index: -1;
}

.hero p.lead {
  font-size: 18px;
  margin-bottom: 48px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.service-card {
  padding: 32px 0 48px 0;
  border-top: 1px solid var(--border-hairline);
  background-color: transparent;
  transition: border-color 0.4s ease;
}

.service-card:hover {
  border-top-color: rgba(255, 255, 255, 0.4);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-weight: 500;
}

.service-card.expandable {
  cursor: pointer;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.expand-icon {
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.expanded .expand-icon {
  transform: rotate(180deg);
}

.card-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
}

.service-card.expanded .card-details {
  grid-template-rows: 1fr;
  margin-top: 24px;
  opacity: 1;
}

.card-details > div {
  min-height: 0;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.detail-list li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 16px;
  position: relative;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background-color: var(--text-muted);
  border-radius: 50%;
}

.detail-list strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Positioning Section */
.positioning {
  /* Hairline borders are now handled globally by section */
}

.positioning .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.position-item {
  margin-bottom: 48px;
}

.position-item:last-child {
  margin-bottom: 0;
}

.position-item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 18px;
}

.position-item p {
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border-hairline);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form Elements */
.deploy-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.deploy-form .form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.deploy-form label {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.deploy-form input,
.deploy-form select,
.deploy-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  border-radius: 0;
  transition: all 0.2s ease;
  outline: none;
  appearance: none;
}

.deploy-form input:focus,
.deploy-form select:focus,
.deploy-form textarea:focus {
  border-color: var(--text-primary);
  background: var(--surface-hover);
}

.deploy-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-opacity='0.5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.deploy-form select option {
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

/* Custom Dropdown */
.custom-select-wrapper {
  position: relative;
  user-select: none;
}

.custom-select {
  position: relative;
  display: flex;
  flex-direction: column;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: var(--text-primary);
  background: var(--surface-hover);
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-dark);
  border: 1px solid var(--text-primary);
  border-top: none;
  z-index: 10;
  display: none;
  flex-direction: column;
}

.custom-select.open .custom-options {
  display: flex;
  animation: dropDown 0.2s ease;
}

@keyframes dropDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-option {
  padding: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-default);
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .positioning .grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.25rem;
  }
}
