/* KiwiCam Site Styles */
:root {
  --brand: #36b37e;
  --brand-dark: #007b55;
  --brand-light: #e6f6f0;
  --accent: #ffb74d;
  --text: #1f2933;
  --text-muted: #52606d;
  --surface: #ffffff;
  --bg: #f7f9fb;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--brand);
}

.hero {
  padding: 6rem 0 5rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(54, 179, 126, 0.14), transparent),
    radial-gradient(circle at 80% 10%, rgba(255, 183, 77, 0.2), transparent);
  z-index: -2;
}

.hero-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(242, 250, 247, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 320px;
}

.hero-visual img {
  border-radius: var(--radius-md);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
  width: 100%;
  object-fit: cover;
}

.hero-visual img:nth-child(2) {
  position: absolute;
  width: 60%;
  bottom: -14%;
  right: 4%;
  border: 5px solid #fff;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}

.hero p {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 30px rgba(54, 179, 126, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(54, 179, 126, 0.4);
  background: var(--brand-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #fff;
}

.badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(54, 179, 126, 0.12);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.features {
  padding: 5rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.section-heading p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0.75rem auto 0;
}

.feature-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

.gallery {
  padding: 5rem 0;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid img {
  border-radius: var(--radius-md);
  object-fit: cover;
  height: 100%;
  min-height: 240px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
}

.how-it-works,
.tech-specs {
  padding: 5rem 0;
}

.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step-card {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.step-number {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(54, 179, 126, 0.15);
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.tech-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tech-card {
  background: rgba(54, 179, 126, 0.1);
  border: 1px solid rgba(54, 179, 126, 0.18);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.tech-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.cta-banner {
  margin: 5rem 0;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(54, 179, 126, 0.92), rgba(0, 123, 85, 0.95));
  color: #fff;
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

.cta-banner p {
  margin: 0 auto;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.85);
}

.support-layout {
  padding: 5rem 0;
}

.content-card {
  background: var(--surface);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.content-card h1,
.content-card h2,
.content-card h3,
.content-card h4 {
  color: var(--text);
}

.content-card h1 {
  margin-top: 0;
}

.content-card h2 {
  margin-top: 2.5rem;
}

.content-card h3 {
  margin-top: 2rem;
}

.content-card p,
.content-card li {
  color: var(--text-muted);
}

.content-card ul,
.content-card ol {
  padding-left: 1.2rem;
}

.contact-banner {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: rgba(54, 179, 126, 0.1);
  border: 1px solid rgba(54, 179, 126, 0.2);
  display: grid;
  gap: 0.6rem;
}

footer {
  padding: 3rem 0;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 5rem;
}

footer .footer-inner {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  font-size: 0.95rem;
}

footer nav {
  flex-direction: column;
  gap: 0.75rem;
}

footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  header {
    position: sticky;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 4rem;
  }

  .cta-group {
    width: 100%;
  }

  .cta-group .btn {
    flex: 1;
    min-width: 180px;
  }

  .hero-visual {
    min-height: unset;
  }

  .hero-visual img:nth-child(2) {
    position: static;
    width: 100%;
    border-width: 0;
    margin-top: -0.5rem;
  }

  .gallery-grid img {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

