/* ============================================================
   Rynex Technology Ltd — single page site
   ============================================================ */

:root {
  --green: #008E63;
  --green-deep: #0A5139;
  --green-dark: #0F6B4D;
  --green-light: #1A8A66;
  --green-tint: #E8F5EF;
  --cream: #F7F3EC;
  --cream-dark: #EFE9DF;
  --ink: #16302A;
  --ink-soft: #4B5E58;
  --white: #FFFFFF;
  --line: rgba(10, 81, 57, 0.12);
  --shadow: 0 10px 30px rgba(10, 81, 57, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 81, 57, 0.16);
  --radius: 18px;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Dancing Script", cursive;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 860px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 142, 99, 0.28);
}
.btn-primary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: var(--green); color: var(--green-dark); background: transparent; }
.btn-outline:hover { background: var(--green-tint); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow.light { color: #8FE3C4; }

.script-line {
  font-family: var(--font-script);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.1;
  margin: 6px 0 18px;
}
.script-line.small { font-size: 1.9rem; margin-top: 10px; }
.script-line.small strong { color: var(--ink); font-weight: 600; }
.script-line.tiny { font-size: 1.3rem; margin: 0; color: #A8E6CF; }

.muted { color: var(--ink-soft); }
.text-link { font-weight: 700; font-size: 0.9rem; display: inline-block; margin-top: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em; color: var(--green); }
.brand-sub { font-weight: 600; font-size: 0.68rem; letter-spacing: 0.22em; color: var(--ink-soft); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 700; font-size: 0.93rem; color: var(--ink); position: relative; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--green);
  transition: width 0.25s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav-cta { margin-left: 6px; color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.55;
}
.hero-blob-1 { width: 520px; height: 520px; background: #BFE9D7; top: -160px; right: -120px; }
.hero-blob-2 { width: 420px; height: 420px; background: #EAD9C0; bottom: -200px; left: -140px; opacity: 0.6; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); color: var(--ink); }
.hero h1 br { display: block; }
.hero .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 36px; }

.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; color: var(--green-dark); line-height: 1; }
.hero-stats span { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; margin-top: 4px; }

.hero-visual {
  position: relative;
  height: 460px;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute; border-radius: 50%;
  border: 1.5px dashed rgba(0, 142, 99, 0.35);
}
.orbit-outer { width: 420px; height: 420px; animation: spin 60s linear infinite; }
.orbit-inner { width: 320px; height: 320px; border-style: solid; border-color: rgba(0, 142, 99, 0.18); animation: spin 40s linear infinite reverse; }
.orbit-outer::before, .orbit-inner::before {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); top: -6px; left: calc(50% - 6px);
  box-shadow: 0 0 0 6px rgba(0, 142, 99, 0.15);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-logo-card {
  position: relative;
  width: 250px; height: 250px;
  background: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  padding: 34px;
}
.hero-logo-card img { width: 100%; height: 100%; }

.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700; font-size: 0.85rem;
  color: var(--green-deep);
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip svg { width: 18px; height: 18px; fill: var(--green); }
.chip-1 { top: 36px; left: 0; }
.chip-2 { bottom: 48px; right: 0; animation-delay: -2s; }
.chip-3 { top: 100px; right: -10px; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee band ---------- */
.band {
  background: var(--green);
  color: var(--white);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.band-track {
  display: flex; gap: 48px; white-space: nowrap;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.04em;
}
.band-track em { font-family: var(--font-script); font-style: normal; font-size: 1.5rem; font-weight: 600; color: #DFF7EC; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--cream-dark); }
.section-dark { background: var(--green-deep); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark .section-head p { color: #C9E9DC; }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

h2.stacked-title { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 22px; }
.stacked-title span { display: block; }
.stacked-title .accent { color: var(--green); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-grid p { color: var(--ink-soft); font-size: 1.03rem; }

.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-card h3 { font-size: 1.02rem; margin: 16px 0 6px; }
.value-card p { font-size: 0.9rem; margin: 0; color: var(--ink-soft); }

.icon-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--green-tint);
  display: grid; place-items: center;
}
.icon-ring svg { width: 26px; height: 26px; fill: var(--green-dark); }
.icon-ring.sm { width: 46px; height: 46px; flex-shrink: 0; }
.icon-ring.sm svg { width: 22px; height: 22px; }

/* ---------- Flags ---------- */
.flag-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.flag-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.25s ease;
}
.flag-card:hover { transform: translateY(-4px); }
.flag {
  width: 84px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  overflow: hidden;
}
.more-flag { background: var(--green); display: grid; place-items: center; }
.more-flag svg { width: 32px; height: 32px; fill: var(--white); }
.flag-card h3 { font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; }
.flag-card p { font-size: 0.85rem; color: var(--ink-soft); margin: 6px 0 0; }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-art {
  height: 190px;
  display: grid; place-items: center;
  padding: 26px;
  background: linear-gradient(135deg, #F1EBE1 0%, #E4F3EC 100%);
}
.product-art svg { width: 100%; max-width: 180px; height: auto; }
.product-body { padding: 0; }
.product-body h3 {
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: center;
}
.product-body p {
  padding: 18px 20px 22px;
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.why-item {
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.25s ease, transform 0.25s ease;
}
.why-item:hover { background: rgba(255,255,255,0.11); transform: translateY(-4px); }
.why-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  border: 2px solid #8FE3C4;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
}
.why-icon svg { width: 28px; height: 28px; fill: #BFF0DB; }
.why-item h3 { font-size: 1rem; margin-bottom: 8px; }
.why-item p { font-size: 0.86rem; color: #C9E9DC; margin: 0; }

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--green);
  color: var(--white);
  padding: 46px 0;
  text-align: center;
}
.quote {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  margin: 0;
}
.quote .sep { opacity: 0.6; margin: 0 14px; font-family: var(--font-body); font-weight: 300; }
.quote-mark { font-family: Georgia, serif; font-size: 1.4em; line-height: 0; vertical-align: -0.2em; opacity: 0.7; margin: 0 6px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid; gap: 26px;
}
.contact-row { display: flex; gap: 18px; align-items: flex-start; }
.contact-row h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.contact-row a { font-weight: 700; font-size: 1.05rem; }
.contact-row address, .contact-row p { color: var(--ink); line-height: 1.6; margin: 0; }

.contact-side { display: grid; gap: 20px; }
.contact-cta {
  background: var(--green-deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  display: grid; gap: 12px;
  justify-items: center;
}
.contact-cta img { width: 72px; height: 72px; background: var(--white); border-radius: 50%; padding: 12px; }
.contact-cta h3 { font-size: 1.3rem; }
.contact-cta p { color: #C9E9DC; font-size: 0.95rem; }
.contact-cta .btn-outline { border-color: #8FE3C4; color: var(--white); }
.contact-cta .btn-outline:hover { background: rgba(255,255,255,0.08); }

.hours-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hours-card h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-top: 8px; }
.hours-card h4:first-child { margin-top: 0; }
.hours-card p { margin: 4px 0 8px; font-weight: 600; }

/* ---------- Privacy ---------- */
.privacy summary { list-style: none; cursor: pointer; text-align: center; }
.privacy summary .eyebrow { display: block; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary h2 { font-size: clamp(1.5rem, 3vw, 2rem); display: inline-flex; align-items: center; gap: 12px; }
.privacy summary h2::after {
  content: "+"; font-weight: 400; color: var(--green); font-size: 1.4em; line-height: 1;
}
.privacy[open] summary h2::after { content: "–"; }
.privacy-body { margin-top: 30px; color: var(--ink-soft); }
.privacy-body p { margin-bottom: 14px; }
.privacy-body strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: #D7EFE4;
  padding: 64px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: #A8D9C5; }
.footer-brand .brand-mark { background: var(--white); border-radius: 50%; padding: 6px; }
.footer-brand p { margin-top: 16px; max-width: 320px; color: #BFE3D3; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.footer-col a, .footer-col span { color: #D7EFE4; font-size: 0.95rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  padding-top: 22px;
  font-size: 0.88rem;
  color: #A8D9C5;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orbit, .float-chip, .band-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .flag-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: 14px 0 0; border-bottom: 0 !important; }
  .nav-toggle { display: flex; }

  .hero { padding: 56px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 380px; order: -1; }
  .orbit-outer { width: 340px; height: 340px; }
  .orbit-inner { width: 260px; height: 260px; }
  .hero-logo-card { width: 200px; height: 200px; padding: 28px; }
  .chip-3 { right: 0; top: 60px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .flag-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .value-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-visual { height: 320px; }
  .float-chip { font-size: 0.78rem; padding: 8px 12px; }
  .chip-1 { top: 10px; }
  .chip-2 { bottom: 10px; }
  .chip-3 { top: 40px; }
  .script-line { font-size: 2rem; }
  .contact-card { padding: 24px 20px; }
  .contact-cta { padding: 26px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
