/* design system tokens */
:root {
  --bg-primary: #121812;
  --bg-secondary: #1a2319;
  --text-primary: #f2f7f1;
  --text-secondary: #9cb09b;
  --accent-glow: linear-gradient(135deg, #15803d, #ca8a04);
  --accent-color: #22c55e;
  --accent-gold: #eab308;
  --border-color: rgba(255, 255, 255, 0.08);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold);
}

/* navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(18, 24, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: var(--border-color);
  z-index: 1000;
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.logo-accent {
  background: var(--accent-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-cta-btn {
  background: var(--accent-glow);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.6);
  color: #ffffff;
}

/* hero section */
.hero-section {
  position: relative;
  padding: 180px 0 120px;
  background-image: radial-gradient(circle at 80% 20%, rgba(22, 197, 94, 0.1) 0%, transparent 50%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 64px;
}

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

.badge {
  display: inline-block;
  background-color: rgba(34, 197, 94, 0.15);
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-glow);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  margin-right: 16px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* tech graphic */
.hero-graphic {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
}

.glow-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.tech-card {
  background: rgba(26, 35, 25, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

.tech-card.delay-1 {
  margin-left: 48px;
  animation-delay: 2s;
}

.tech-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.tech-card h4 {
  font-size: 1.1rem;
}

.tech-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* services section */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: var(--border-color);
  border-bottom: var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.service-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  border-radius: 16px;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* adsense container */
.adsense-container {
  padding: 48px 0;
  text-align: center;
}

/* blog section */
.blog-section {
  padding: 100px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.blog-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.blog-card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-date {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-card-excerpt p {
  margin-bottom: 0;
}

.blog-card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-card-link .arrow {
  transition: var(--transition);
}

.blog-card-link:hover .arrow {
  transform: translateX(4px);
}

/* blog load states */
.blog-loading {
  text-align: center;
  padding: 64px 0;
}

.blog-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent-color);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.blog-loading p, .blog-empty p, .blog-error p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.blog-empty, .blog-error {
  text-align: center;
  padding: 64px 32px;
  background-color: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

/* footer */
.footer {
  background-color: var(--bg-primary);
  border-top: var(--border-color);
  padding: 48px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: #ffffff;
}

/* privacy policy modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 24, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: modalOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalOpen {
  from { transform: translate(-50%, -45%); opacity: 0; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}

.modal-header {
  padding: 24px 32px;
  border-bottom: var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.5rem;
}

.close-btn {
  color: var(--text-secondary);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.modal-body h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin: 24px 0 12px;
}

.modal-body p {
  margin-bottom: 16px;
}

/* cookie banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: calc(100% - 48px);
  max-width: 450px;
  background-color: rgba(26, 35, 25, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  z-index: 1500;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  animation: bannerSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cookie-content a {
  text-decoration: underline;
}

.btn-sm {
  align-self: flex-end;
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* responsive styles */
@media (max-width: 991px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-graphic {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  .tech-card.delay-1 {
    margin-left: 0;
  }
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 767px) {
  .nav-menu, .nav-cta-btn {
    display: none;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .cookie-banner {
    bottom: 12px;
    right: 12px;
    width: calc(100% - 24px);
  }
}
