/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  color: #fff;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  margin-left: 14px;
  font-size: 0.95rem;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-links a.active {
  text-decoration: underline;
  font-weight: 400;
}

/* Hero Header Section */
.hero {
  background-image: url('images/hero-clouds.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 60px;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 110px 20px 80px;
}

.hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 15px;
  opacity: 0.9;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.2rem;
  font-weight: 400;
  margin-bottom: 15px;
  letter-spacing: 2px;
  line-height: 1.1;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  opacity: 0.95;
  letter-spacing: 1px;
}

/* Hero call-to-action */
.hero-cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Page header for inner pages */
.page-header {
  padding-top: 70px;
  background: #f3f5f7;
  border-bottom: 1px solid #e6e9ee;
}

.page-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 42px 20px;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: #2c3e50;
  margin-bottom: 8px;
}

.page-header p {
  color: #666;
  font-size: 1.05rem;
}

/* Main Content Section */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section {
  margin-bottom: 46px;
}

.content h2 {
  color: #2c3e50;
  font-size: 2.3rem;
  margin-bottom: 18px;
  font-family: 'Playfair Display', serif;
}

.content h3 {
  color: #34495e;
  font-size: 1.8rem;
  margin-bottom: 16px;
  margin-top: 8px;
  font-family: 'Playfair Display', serif;
}

.content h4 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 400;
}

.content p {
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 14px;
  color: #666;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.98rem;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.92);
  color: #2c3e50;
}

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

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: rgba(255, 255, 255, 0.95);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 1);
  color: rgba(255, 255, 255, 1);
}

.link-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.card {
  display: block;
  padding: 18px 18px;
  border: 1px solid #e6e9ee;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
}

.card:hover {
  border-color: #d6dbe3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.card p {
  margin-bottom: 0;
}

.card-static {
  cursor: default;
}

.card-static:hover {
  box-shadow: none;
}

/* Lists and helpers */
.clean-list {
  margin-left: 18px;
  color: #666;
}

.clean-list li {
  margin-bottom: 8px;
}

.muted {
  color: #777;
}

.note {
  color: #777;
  font-size: 0.98rem;
  margin-top: 10px;
}

/* Email copy functionality */
.email-copy {
  cursor: pointer;
  display: inline-block;
  color: #666;
}

.email-copy:hover {
  text-decoration: underline;
  color: #2c3e50;
}

/* Code block style for pseudocode */
.code-block {
  border: 1px solid #e6e9ee;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  color: #333;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Footer */
.footer {
  border-top: 1px solid #e6e9ee;
  padding-top: 20px;
  margin-top: 40px;
  color: #777;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .nav-links a {
    margin-left: 10px;
    font-size: 0.92rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 420px;
    background-attachment: scroll;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 3px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-tagline {
    font-size: 1.45rem;
  }

  .content h2 {
    font-size: 2rem;
  }

  .content h3 {
    font-size: 1.5rem;
  }

  .nav {
    background: rgba(0, 0, 0, 0.5);
  }

  .nav-inner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .nav-links a {
    margin-left: 0;
    margin-right: 10px;
    display: inline-block;
  }
}
