/* ===========================
   RESET & VARIABLES
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:        #F5F3EE;
  --c-bg-dark:   #111210;
  --c-bg-accent: #1A3A2A;
  --c-text:      #1A1A18;
  --c-muted:     #6B6B65;
  --c-muted-light: rgba(255,255,255,0.55);
  --c-accent:    #2E7D32;
  --c-accent-2:  #81C784;
  --c-border:    rgba(26,26,24,0.12);
  --c-border-lt: rgba(255,255,255,0.12);

  --f-display: 'DM Serif Display', Georgia, serif;
  --f-body:    'DM Sans', system-ui, sans-serif;

  --radius: 12px;
  --gap:    clamp(1.5rem, 4vw, 3rem);
  --section-py: clamp(4rem, 8vw, 7rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.section { padding-block: var(--section-py); }
.section--dark { background: var(--c-bg-dark); }
.section--accent { background: var(--c-bg-accent); }

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }

em { font-style: italic; color: var(--c-accent); }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(46,125,50,0.1);
  padding: 0.3em 0.85em;
  border-radius: 2em;
  margin-bottom: 1.2rem;
}
.label--light {
  color: var(--c-accent-2);
  background: rgba(129,199,132,0.12);
}

.section__title--light { color: #fff; }

/* ===========================
   NAVIGATION
   =========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(245,243,238,0.85);
  border-bottom: 1px solid var(--c-border);
}

.nav {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--f-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--c-text);
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav__links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--c-accent); }

@media (max-width: 600px) {
  .nav__links { display: none; }
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(46,125,50,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(46,125,50,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 5rem;
}

.hero__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.08;
  max-width: 14ch;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.25s forwards;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 50ch;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: var(--c-muted);
  animation: bounce 2s infinite;
}

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

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===========================
   BUTTON
   =========================== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.8em 1.8em;
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  animation: fadeUp 0.7s 0.55s forwards;
}
.btn--primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(46,125,50,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46,125,50,0.4);
}

/* ===========================
   ABOUT
   =========================== */
.about__text p {
  color: var(--c-muted);
  margin-bottom: 1rem;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  box-shadow: 0 2px 32px rgba(0,0,0,0.04);
}

.stat__num {
  display: block;
  font-family: var(--f-display);
  font-size: 2.5rem;
  color: var(--c-accent);
  line-height: 1;
}
.stat__label {
  font-size: 0.82rem;
  color: var(--c-muted);
  letter-spacing: 0.05em;
}

/* ===========================
   SERVICES
   =========================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border-lt);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: background 0.25s, transform 0.25s;
}
.service-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
}
.service-card h3 { color: #fff; }
.service-card p { color: var(--c-muted-light); font-size: 0.9rem; }

.service-card__icon {
  font-size: 1.5rem;
  color: var(--c-accent-2);
  margin-bottom: 1rem;
}

/* ===========================
   TOOL SECTION
   =========================== */
.tool__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 768px) {
  .tool__wrapper { grid-template-columns: 1fr; }
}

.tool__desc p {
  color: var(--c-muted);
  margin-bottom: 1rem;
}

.tool__features {
  list-style: none;
  margin-block: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool__features li {
  font-size: 0.9rem;
  color: var(--c-muted);
}

.tool__features code {
  font-size: 0.82rem;
  background: rgba(46,125,50,0.1);
  color: var(--c-accent);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.tool__note {
  font-size: 0.82rem !important;
  background: rgba(46,125,50,0.06);
  border-left: 3px solid var(--c-accent);
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  color: var(--c-muted) !important;
}

/* ===========================
   TERMINAL
   =========================== */
.terminal {
  background: #0D1117;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
}

.terminal__bar {
  background: #21262D;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.terminal__bar span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #FF5F57;
}
.terminal__bar span:nth-child(2) { background: #FEBC2E; }
.terminal__bar span:nth-child(3) { background: #28C840; }
.terminal__bar small { margin-left: auto; color: #6E7681; font-size: 0.75rem; }

.terminal__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; min-height: 180px; }

.terminal__line { line-height: 1.6; }
.t-fade { opacity: 0; transition: opacity 0.4s; }
.t-fade.visible { opacity: 1; }

.t-prompt { color: #7EE787; margin-right: 0.5rem; }
.t-cmd { color: #E3B341; }
.t-key { color: #79C0FF; }
.t-dim { color: #6E7681; }
.t-ok { color: #7EE787; margin-right: 0.35rem; }

/* ===========================
   CONTACT
   =========================== */
.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

@media (max-width: 768px) {
  .contact__wrapper { grid-template-columns: 1fr; }
}

.contact__wrapper h2 { color: #fff; }

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.contact__icon { font-size: 1.2rem; }

.contact__item small { display: block; font-size: 0.72rem; color: var(--c-muted-light); }
.contact__item strong { display: block; color: #fff; font-size: 0.9rem; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--c-bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-block: 1.5rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__inner span { color: #6E7681; font-size: 0.82rem; }

.footer a {
  color: var(--c-accent-2);
  text-decoration: none;
  font-size: 0.82rem;
}
.footer a:hover { text-decoration: underline; }
