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

:root {
  --ink: #0a0c10;
  --surface: #0f1117;
  --card: #161b22;
  --border: #1e2530;
  --muted: #5a6478;
  --body: #8b95a8;
  --text: #e8ecf2;
  --gold: #c9a84c;
  --gold-lt: #e8c96a;
  --teal: #0f766e;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Noise overlay texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* Background grid framework lines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* Navigation Framework Layout */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold) !important;
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 7px 16px;
  border-radius: 6px;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: rgba(201, 168, 76, 0.08) !important;
  border-color: var(--gold) !important;
  color: var(--gold-lt) !important;
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--body);
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-btn svg path {
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    d 0.25s ease;
}

/* Hero Section */
section {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero-tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--body);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}

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

/* Layout Structural Blocks */
.section {
  padding: 96px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--gold);
}

h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 40px;
}

/* About Grid layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 48px;
}

.about-text p {
  font-size: 16px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.stat:hover {
  border-color: rgba(201, 168, 76, 0.3);
}

.stat:first-child {
  border-radius: 12px 0 0 0;
}
.stat:nth-child(2) {
  border-radius: 0 12px 0 0;
}
.stat:nth-child(3) {
  border-radius: 0 0 0 12px;
}
.stat:last-child {
  border-radius: 0 0 12px 0;
}

.stat-num {
  font-family: "Syne", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Products Grid Cards Layout */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-3px);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card.inactive {
  opacity: 0.5;
  pointer-events: none;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  width: fit-content;
}

.badge-live {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}

.badge-dev {
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.product-name {
  font-family: "Syne", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.product-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.7;
  flex: 1;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  pointer-events: all;
}

.product-link svg {
  transition: transform 0.2s;
}

.product-card:hover .product-link svg {
  transform: translateX(3px);
}

/* Contact Block Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}

.contact-info h3 {
  font-family: "Syne", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.contact-info p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item:hover {
  color: var(--gold);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Contact Interactive Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.3px;
}

input,
textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
textarea:focus {
  border-color: rgba(201, 168, 76, 0.5);
}

textarea {
  min-height: 120px;
}

.form-status {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Footer structure */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: 13px;
  color: var(--muted);
}

.footer-left strong {
  color: var(--body);
  font-weight: 500;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Core Animations Layout rules */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries Configuration rules */
@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 20px;
    z-index: 99;
  }
  .nav-mobile-btn {
    display: block;
  }

  .hero {
    padding: 100px 20px 60px;
  }
  h1 {
    letter-spacing: -1px;
  }

  .section {
    padding: 64px 20px;
  }
  .divider {
    margin: 0 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 24px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}
