/* TiniBuds — Apps for Education */
:root {
  --bg: #faf9f6;
  --bg-alt: #f0eee8;
  --text: #1a1917;
  --text-muted: #5c5954;
  --accent: #c45c3e;
  --accent-hover: #a84d32;
  --border: #e5e2dc;
  --radius: 12px;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, padding 0.2s;
}

.header.scrolled {
  border-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-large {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45%;
  max-width: 520px;
  pointer-events: none;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  mask-image: linear-gradient(to left, black 40%, transparent);
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 50ch;
}

/* What we do */
.what-we-do {
  background: var(--bg-alt);
}

.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.capability {
  background: var(--bg);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.capability:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.capability-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.75rem;
}

.capability h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.capability p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Why us */
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 50ch;
}

.benefit-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.benefit-list strong {
  color: var(--text);
}

/* Contact */
.contact {
  background: var(--bg-alt);
}

.contact-inner {
  text-align: center;
}

.contact-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.contact .btn-primary {
  margin: 0 auto;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

.footer-domain a {
  color: var(--accent);
  text-decoration: none;
}

.footer-domain a:hover {
  text-decoration: underline;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 240px;
    background: var(--bg);
    flex-direction: column;
    padding: 5rem 1.5rem 1.5rem;
    gap: 1rem;
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.06);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 99;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .menu-btn {
    display: flex;
    z-index: 101;
  }

  .hero-visual {
    width: 80%;
    opacity: 0.4;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
