/* ===== KIRIN SOLUTIONS — Custom Theme ===== */

:root {
  --navy:       #1a1714;
  --navy-light: #211e1a;
  --slate:      #332e28;
  --steel:      #9a8e80;
  --silver:     #c8bfb2;
  --white:      #f0ebe0;
  --accent:     #d4a853;
  --accent-dim: #b8903a;
  --accent-glow: rgba(212, 168, 83, 0.12);
  --sienna:     #c4714a;
  --gold:       #d4a853;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
  --max-width:  1140px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--silver);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--white); font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.05em; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }
hr { border: none; border-top: 1px solid var(--slate); margin: 2.5rem 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 23, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
}
.logo:hover { color: var(--white); }
.logo-img {
  height: 84px;
  width: auto;
  mix-blend-mode: lighten;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--steel);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--white);
  background: var(--accent-glow);
}
.nav-links a.active {
  color: var(--white);
  font-weight: 700;
  background: var(--accent-glow);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--silver);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#network-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
}
/* Hero animated content — overlaid on top of the giraffe wireframe */
.hero-content--animated {
  position: absolute;
  bottom: 4vh;
  left: 0;
  right: 0;
}
.hero-content--animated .hero-wordmark,
.hero-content--animated .hero-tagline,
.hero-content--animated .hero-cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease, transform 1s ease;
}
.hero-content--animated.revealed .hero-wordmark {
  opacity: 1; transform: translateY(0);
}
.hero-content--animated.revealed .hero-tagline {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.3s;
}
.hero-content--animated.revealed .hero-cta {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.6s;
}
.hero-wordmark {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.hero-wordmark span {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.hero-tagline {
  font-size: 1.25rem;
  color: var(--steel);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: var(--white);
}
.btn-primary:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-glow);
  color: var(--white);
  transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 3rem 0;
}
.section-dark {
  background: var(--navy-light);
}
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  color: var(--steel);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ===== GRIDS ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== CARDS ===== */
.card {
  background: var(--slate);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(212, 168, 83, 0.08);
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 83, 0.25);
}
.card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--accent);
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--steel); margin: 0; }

/* ===== SERVICE CARDS ===== */
.service-card {
  background: var(--navy-light);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--slate);
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--accent); }
.service-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--steel); font-size: 0.95rem; }
.link-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== INSIGHTS LINKS ===== */
.insights-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.insight-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--slate);
  border-radius: 12px;
  color: var(--silver);
  font-weight: 500;
  border: 1px solid rgba(212, 168, 83, 0.08);
  transition: border-color 0.2s, color 0.2s;
}
.insight-link:hover {
  border-color: var(--accent);
  color: var(--white);
}
.insight-link svg { flex-shrink: 0; }

/* ===== PRODUCT PREVIEW ===== */
.product-preview {
  background: var(--navy-light);
  border: 1px solid var(--slate);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  max-width: 640px;
  margin: 2rem auto 0;
}
.product-preview h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.product-preview p {
  color: var(--steel);
  margin-bottom: 1.5rem;
}

/* ===== INNER PAGE CONTENT ===== */
.page-content {
  padding: 7rem 0 5rem;
}
.page-content h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.subtitle {
  font-size: 1.15rem;
  color: var(--steel);
  margin-bottom: 2rem;
}
.content-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
  padding-top: 0;
  border-top: none;
  color: var(--accent);
}
.content-body h2:first-child {
  margin-top: 1rem;
}
.content-body h2 + p {
  margin-bottom: 0.5rem;
  color: var(--steel);
  font-size: 0.95rem;
}
.content-body hr {
  display: none;
}
.content-body ul {
  list-style: none;
  padding: 0;
}
.content-body ul li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--steel);
}
.content-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== CONTACT PAGE ===== */
.content-body a[href^="mailto:"] {
  color: var(--accent);
  font-weight: 500;
}
.content-body a[href^="tel:"] {
  color: var(--silver);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-light);
  border-top: 1px solid var(--slate);
  padding: 4rem 0 0;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
}
.footer-brand { max-width: 400px; }
.footer-logo-img {
  height: 108px;
  width: auto;
  margin-bottom: 0.5rem;
  mix-blend-mode: lighten;
}
.footer-tagline {
  color: var(--steel);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.footer-links {
  display: flex;
  gap: 4rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a {
  color: var(--steel);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 1.5rem;
  border-top: 1px solid var(--slate);
  text-align: center;
}
.footer-bottom p {
  color: var(--steel);
  font-size: 0.8rem;
  margin: 0;
}

/* ===== MEDIUM FEED ===== */
.medium-feed {
  display: grid;
  gap: 1.5rem;
}
.medium-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.medium-post {
  display: block;
  background: var(--slate);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(212, 168, 83, 0.08);
  transition: transform 0.2s, border-color 0.2s;
  color: var(--silver);
}
.medium-post:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 83, 0.25);
  color: var(--silver);
}
.medium-post-date {
  font-size: 0.8rem;
  color: var(--steel);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}
.medium-post-title {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.medium-post-excerpt {
  font-size: 0.9rem;
  color: var(--steel);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.medium-post-read {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}
.medium-post:hover .medium-post-read {
  color: var(--white);
}
.medium-feed-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ===== LIST ITEMS ===== */
.list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--slate);
}
.list-item h2 { font-size: 1.25rem; }
.list-item p { color: var(--steel); margin: 0.25rem 0 0; font-size: 0.95rem; }

/* ===== RESPONSIVE ===== */
@media (max-height: 900px) {
  .hero-wordmark { font-size: 2.2rem; }
  .hero-wordmark span { font-size: 1.1rem; }
  .hero-tagline { font-size: 1.05rem; margin-bottom: 1.5rem; }
  .hero-content--animated { bottom: 2vh; }
}
@media (max-height: 700px) {
  .hero-wordmark { font-size: 1.8rem; }
  .hero-wordmark span { font-size: 0.9rem; }
  .hero-tagline { font-size: 0.95rem; margin-bottom: 1rem; }
  .hero-content--animated { bottom: 1vh; }
  .btn { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .medium-feed-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.5rem; }
  .hero-tagline { font-size: 1.1rem; }
  .footer-container { flex-direction: column; }
  .footer-links { gap: 2rem; }
}
@media (max-width: 640px) {
  .medium-feed-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 4rem 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 96px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(26, 23, 20, 0.97);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-bottom: 1px solid var(--slate);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
  .insights-links { flex-direction: column; align-items: center; }
}
