/* ========== Base Reset & Theme ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #111;
  --ink-2: #444;
  --line: #e6e6e6;
  --bg: #fff;
  --accent: #0066cc;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(0,0,0,0.06);
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

/* ========== Links & Buttons ========== */
a {
  color: inherit;
  text-decoration: none;
}

.btn {
  background: var(--ink);
  color: #fff;
  padding: .65rem 1.2rem;
  border-radius: var(--radius);
  display: inline-block;
  font-weight: 500;
  transition: background .2s, transform .2s;
}

.btn:hover {
  background: #000;
  transform: translateY(-2px);
}

.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn.ghost:hover {
  background: var(--ink);
  color: #fff;
}

/* ========== Navigation ========== */
.nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  z-index: 100;
}

.nav .brand {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
}

/* ========== Hero Section ========== */
.hero {
  padding: 4rem 1.25rem 3rem;
  background: linear-gradient(180deg, #fafafa, #fff);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-text .lead {
  max-width: 680px;
  color: var(--ink-2);
  margin: 1rem 0;
}

.hero-img {
  display: flex;
  justify-content: center;
}

.hero-img img {
  width: 240px;
  max-width: 70vw;
  border-radius: 10%;
  animation: fadeIn 1.2s ease both;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  transition: transform .25s;
}

.hero-img img:hover {
  transform: scale(1.04);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Social links under hero */
.inline-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 1rem 0 0;
}

.inline-links a {
  color: var(--accent);
  text-decoration: underline;
  font-size: 0.95rem;
}

/* ========== Sections ========== */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.wrap h2 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--ink-2);
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Cards */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
  transition: transform .15s, box-shadow .15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.tags li {
  background: #f4f4f4;
  border-radius: var(--radius);
  padding: .3rem .7rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* ========== Form ========== */
.form {
  display: grid;
  gap: .8rem;
  max-width: 560px;
}

.form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--ink);
}

input, textarea {
  width: 100%;
  padding: .8rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  margin-top: .3rem;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.hidden { display: none; }

/* ========== Footer ========== */
footer {
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 1rem;
  color: #666;
  font-size: .9rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text .cta {
    justify-content: center;
  }
  .nav nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
  }
  .hero-img {
    margin-top: 1.5rem;
  }
}
