@font-face {
  font-family: "Maomaofont Display";
  src: url("../assets/fonts/Maomaofont-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Maomaofont Text";
  src: url("../assets/fonts/Maomaofont-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #729451;
  --primary-light: #95b377;
  --primary-dark: #3b630f;
  --accent: #e8dcc4; /* Warm cream/beige */
  --accent-light: #f9f5eb;

  --bg-light: #f9f5eb;
  --bg-dark: #0a0a0a;

  --text-main: #171717;
  --text-muted: #525252;
  --text-light: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  --font-heading: "Maomaofont Display", "Fredoka", cursive;
  --font-body: "Maomaofont Text", "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
.company-name {
  font-family: var(--font-heading);
  font-weight: 600;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: var(--primary-light);
  opacity: 0.3;
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1deg);
}

/* Transparent Header */
.transparent-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent; /* No glass effect */
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: center; /* Center alignment */
  align-items: center;
}

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

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

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* Ensure contents are centered */
  gap: 0.75rem; /* Increased gap for better spacing */
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-heading); /* Use handwritten font */
  font-weight: 500; /* Slightly lighter weight for the Black font */
  font-size: 1.1rem; /* Slightly larger for this font */
  letter-spacing: 0.02em;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
}

.btn span {
  position: relative;
  top: 2px; /* Visual alignment fix for the handwritten font */
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(114, 148, 81, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(114, 148, 81, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
  background: var(--primary-light);
  color: white;
}

/* Hero Section */
.hero {
  padding-top: 140px; /* Header height + space */
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite alternate;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-light);
  top: -100px;
  right: -100px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #e8dcc4;
  bottom: -50px;
  left: -50px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(30px, 50px) rotate(10deg);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

/* CSS Phone Mockup */
/* CSS Phone Mockup - iPhone 14 Pro Max Style */
.phone-mockup {
  width: 320px;
  height: 693px; /* ~19.5:9 aspect ratio */
  position: relative;
  margin: 0 auto;
  perspective: 1000px;
  animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.phone-frame {
  width: 100%;
  height: 100%;
  background: #2b2b2b; /* Darker frame */
  border-radius: 55px; /* More rounded */
  padding: 10px; /* Bezel size */
  box-shadow: 0 0 0 2px #444, /* Outer rim */ 0 0 0 4px #1a1a1a,
    /* Inner bezel edge */ 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: rotateY(-10deg) rotateX(10deg);
  transition: transform 0.3s ease;
  z-index: 10;
}

.phone-mockup:hover .phone-frame {
  transform: rotateY(0) rotateX(0);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 46px; /* Matches frame radius minus padding */
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 25px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
}

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow);
}

/* About Section */
.about-section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.about-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Product Section */
.products-section {
  padding: 5rem 0;
  background: var(--accent-light);
  border-radius: 50px 50px 0 0;
  position: relative;
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  background: var(--primary-light);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-list {
  list-style: none;
  margin: 2rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Feature Art Placeholder */
.product-image-container {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.art-circle {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0.2;
  position: absolute;
}

.art-cat-face {
  width: 150px;
  height: 120px;
  background: var(--primary);
  border-radius: 60px;
  position: relative;
  z-index: 10;
}

.art-cat-face .ear {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 40px solid var(--primary);
  position: absolute;
  top: -25px;
}

.art-cat-face .ear.left {
  left: 10px;
  transform: rotate(-15deg);
}
.art-cat-face .ear.right {
  right: 10px;
  transform: rotate(15deg);
}

.art-cat-face .eye {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 40px;
  animation: blink 4s infinite;
}

@keyframes blink {
  0%,
  96%,
  100% {
    transform: scaleY(1);
  }
  98% {
    transform: scaleY(0.1);
  }
}

.art-cat-face .eye.left {
  left: 40px;
}
.art-cat-face .eye.right {
  right: 40px;
}

.art-cat-face .nose {
  width: 10px;
  height: 8px;
  background: #ffadad;
  border-radius: 50%; /* Soft oval */
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
}

/* Footer */
.glass-footer {
  background: var(--primary-dark);
  color: white;
  padding: 4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  opacity: 1; /* Increased opacity */
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
}
/* Footer */
.glass-footer {
  background: var(--primary-dark);
  color: white;
  padding: 4rem 0 1rem;
}

.glass-footer p {
  color: rgba(255, 255, 255, 0.9);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.logo-img-sm {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  opacity: 1; /* Increased opacity for visibility */
}

/* Paw Cursor */
.paw-cursor {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  opacity: 0.5;
  mix-blend-mode: multiply;
  display: none; /* Only show on non-touch devices via JS detection if needed, or just default hidden */
}

@media (min-width: 992px) {
  .paw-cursor {
    display: block;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .phone-mockup {
    width: 250px;
    height: 500px;
    margin-top: 2rem;
  }

  .product-showcase {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .feature-list {
    text-align: left;
    display: inline-block;
  }

  .product-image-container {
    order: -1;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-container .logo span {
    display: block; /* ensure text is visible */
  }
}
