@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg-color: #f7f6f2;
  --text-color: #333333;
  --heading-color: #1a1a1a;
  --accent-color: #3BA9DE;
  --border-color: #d4d0c8;
  --card-bg: #e8e6e0;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background noise */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400; /* Normal weight as requested */
  line-height: 1.2;
  color: var(--heading-color);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 2rem;
}

body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #999;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
}

.dotted-underline {
  border-bottom: 2px dotted var(--border-color);
  padding-bottom: 0.2rem;
  display: inline-block;
  margin-bottom: 3rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Base Layout */
.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(247, 246, 242, 0.95);
  backdrop-filter: blur(8px);
  padding: 0;
  height: 64px;
  display: flex;
  align-items: center;
  transition: border-bottom 0.3s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  border-bottom: 1px solid #e8e6e0;
}

.nav-container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 36px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  position: relative;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--accent-color);
}

/* Remove underline on nav links per new instructions */

main {
  flex: 1;
}

section {
  padding: 120px 0;
}

footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: #888;
}

footer a {
  color: #888;
}
footer a:hover {
  color: var(--accent-color);
}

/* Home Page */
.banner {
  width: 100%;
  background: var(--border-color);
  color: var(--text-color);
  text-align: center;
  padding: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  margin-top: 64px; /* Account for fixed header */
}

.location-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Hero Staggered Load Animation */
.hero > * {
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeUp 0.4s ease-out forwards;
}

.hero > *:nth-child(1) { animation-delay: 0.1s; }
.hero > *:nth-child(2) { animation-delay: 0.2s; }
.hero > *:nth-child(3) { animation-delay: 0.3s; }
.hero > *:nth-child(4) { animation-delay: 0.4s; }
.hero > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: 1px solid var(--accent-color);
  font-family: var(--font-sans);
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: var(--accent-color);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-color);
  color: #fff;
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
  border: 1px solid var(--accent-color);
}

.btn-primary:hover {
  filter: brightness(0.9);
  background: var(--accent-color);
}

/* Grid & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  padding: 32px;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card.pricing-card:hover {
  border-color: var(--accent-color);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-color);
  margin-bottom: 2rem;
  flex: 1;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: block;
}

.card a.link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
  margin-top: auto;
}

.card a.link span {
  display: inline-block;
  transition: transform 0.2s ease;
  margin-left: 0.5rem;
}

.card a.link:hover {
  color: var(--accent-color);
}

.card a.link:hover span {
  transform: translateX(4px);
}

/* Distinct elements */
.highlight-card {
  border: 1px solid var(--accent-color);
  position: relative;
}

.badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--card-bg);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #999;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 6px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--heading-color);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 169, 222, 0.1);
}

/* Utils */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.4s ease forwards;
}

/* Scroll Revealing */
.scroll-reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }
  .hero {
    min-height: 80vh;
  }
}
