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

:root {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #0a0a0c;
  --card-border: #27272a;
  --muted: #a1a1aa;
  --muted-foreground: #71717a;
  --primary: #fafafa;
  --primary-foreground: #09090b;
  --accent: #27272a;
  --input: #27272a;
  --ring: #d4d4d8;
  --radius: 0.5rem;
  --destructive: #ef4444;
  --success: #22c55e;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--card-border);
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.logo {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--foreground);
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--foreground);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 6rem 0 4rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  padding: 0.25rem 0.875rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(to bottom, #fafafa, #71717a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
  background: var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Contact */
.contact {
  padding: 4rem 0 6rem;
}

.card {
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  padding: 2rem;
}

.card-header {
  margin-bottom: 1.75rem;
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

input, textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--foreground);
  background: transparent;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder, textarea::placeholder {
  color: var(--muted-foreground);
}

input:focus, textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(212, 212, 216, 0.1);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--primary-foreground);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s;
}

button[type="submit"]:hover {
  opacity: 0.9;
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-icon {
  width: 14px;
  height: 14px;
}

/* Form status */
.form-status {
  margin-top: 1rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  text-align: center;
  font-weight: 500;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--destructive);
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  padding: 1.5rem 0;
  margin-top: auto;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* Mobile */
@media (max-width: 640px) {
  .card {
    padding: 1.5rem;
  }

  footer .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
