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

:root {
  --color-bg: #0a0a0a;
  --color-text: #f5f5f5;
  --color-accent: #6b21a8;
  --color-gold: #c8974d;
  --color-purple: #68476f;
  --color-border: #2d2d2d;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'EB Garamond', serif;
  --max-width: 800px;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  margin-bottom: 5rem;
}

.logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.logo-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
              0 0 60px 20px rgba(200, 151, 77, 0.15),
              0 0 100px 40px rgba(104, 71, 111, 0.08);
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 26, 0, 0.2));
}

.hero {
  text-align: center;
  margin-bottom: 5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-gold);
  background-color: rgba(200, 151, 77, 0.08);
  border: 1px solid rgba(200, 151, 77, 0.4);
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.hero h1,
.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.25rem;
  color: var(--color-text);
  opacity: 0.8;
  margin-bottom: 3rem;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button-primary {
  background-color: var(--color-gold);
  color: #0a0a0a;
}

.button-secondary {
  background-color: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}

.button-secondary:hover {
  background-color: rgba(200, 151, 77, 0.1);
}

.about,
.why-we-build,
.what-we-do,
.current-projects {
  margin-bottom: 3rem;
}

.about,
.what-we-do,
.why-we-build {
  background: linear-gradient(135deg,
    rgba(104, 71, 111, 0.08) 0%,
    rgba(200, 151, 77, 0.04) 50%,
    rgba(0, 26, 0, 0.06) 100%);
  border: 1px solid rgba(200, 151, 77, 0.2);
  border-radius: 12px;
  margin-bottom: 4rem !important;
}

.about p,
.what-we-do .description,
.why-we-build p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.why-we-build p:first-of-type {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.teaser {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0.75;
  font-style: italic;
  font-size: 1rem;
}

main {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #0a0a0a;
}

main section {
  margin-bottom: 0;
  padding: 4rem 0;
  background-color: #0a0a0a;
  width: 100%;
}

main section > * {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.about > *,
.what-we-do > *,
.why-we-build > * {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.about > *:first-child,
.what-we-do > *:first-child,
.why-we-build > *:first-child {
  padding-top: 0;
}

.about > *:last-child,
.what-we-do > *:last-child,
.why-we-build > *:last-child {
  padding-bottom: 0;
}

/* Alternating section backgrounds with brand color tints - permanently dark */
main {
  background-color: #0a0a0a;
}

main section:nth-child(1) {
  background-color: #0a0a0a;
}

main section:nth-child(2) {
  background-color: #0f0f0a;
}

main section:nth-child(3) {
  background-color: #0a0a0a;
}

main section:nth-child(4) {
  background-color: #0d0a12;
}

main section:nth-child(5) {
  background-color: #0a0a0a;
}

h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.section-icon {
  margin-right: 0.75rem;
  color: var(--color-gold);
  opacity: 0.8;
}

.app-list {
  display: grid;
  gap: 1.5rem;
}

.app-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
}

.app-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.app-card p {
  margin-bottom: 1rem;
  opacity: 0.7;
}

.apps-showcase {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.app-showcase {
  text-align: center;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-icon {
  width: 200px;
  height: 200px;
  border-radius: 48px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  display: block;
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .app-icon {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  }
}

.app-showcase h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.app-showcase p {
  margin-bottom: 2rem;
  opacity: 0.8;
  line-height: 1.7;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-gold);
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.button:hover {
  opacity: 0.8;
}

.contact {
  text-align: center;
}

.contact > p:first-of-type {
  margin-bottom: 2rem;
  opacity: 0.8;
}

.contact-form {
  max-width: 600px;
  margin: 3rem auto;
  padding: 3rem;
  text-align: left;
  background-color: rgba(104, 71, 111, 0.25);
  border: 1px solid rgba(104, 71, 111, 0.4);
  border-radius: 12px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: var(--color-gold);
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
}

.form-submit:hover {
  opacity: 0.9;
}

.form-note {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-top: 1rem;
}

.form-success,
.form-error {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-align: center;
}

.form-success {
  background-color: rgba(107, 33, 168, 0.05);
}

.form-error {
  background-color: rgba(220, 38, 38, 0.05);
  border-color: rgba(220, 38, 38, 0.2);
}

.form-success h4,
.form-error h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-success p,
.form-error p {
  opacity: 0.8;
}

.contact a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.contact a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding-top: 4rem;
  border-top: 1px solid var(--color-border);
  opacity: 0.6;
  font-size: 0.875rem;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 2.5rem 1rem;
  }

  header {
    margin-bottom: 3rem;
  }

  .logo-img {
    max-width: 280px;
  }

  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: 0.06em;
  }

  .tagline {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}
