/* AIxic Labs — landing page stylesheet
   Design language: bright minimalist white + accent blue, semiconductor / deep-tech.
   Typography: Inter (system fallback). All layout responsive.
*/

:root {
  --bg:        #ffffff;
  --bg-alt:    #f7f8fa;
  --bg-card:   #ffffff;
  --ink:       #0b1220;
  --ink-soft:  #4b5870;
  --ink-faint: #8a93a6;
  --accent:    #1d4ed8;
  --accent-hi: #2563eb;
  --rule:      #e5e8ee;

  --max-width: 1080px;
  --max-narrow: 680px;
  --radius:    14px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'Helvetica Neue', Arial, 'PingFang TC', 'PingFang SC',
               'Noto Sans CJK TC', 'Noto Sans CJK SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hi); }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.8em; }
h3 { font-size: 1.18rem; margin-bottom: 0.5em; }

p  { margin: 0 0 1em; }

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

.container.narrow {
  max-width: var(--max-narrow);
}

/* ========== HEADER / NAV ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.brand-logo {
  height: 88px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 120px;
  width: auto;
  display: block;
  margin-bottom: 8px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  height: 120px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  color: var(--accent);
  font-size: 1.25rem;
}

.brand-tag {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}

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

.cta-link {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
}
.cta-link:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

.lang-toggle {
  font-size: 0.88rem !important;
  color: var(--ink) !important;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 4px 10px;
  margin-left: 4px;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.cta-link):not(.lang-toggle) { display: none; }
}

/* ========== HERO ========== */

.hero {
  padding: 130px 0 110px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, black 0%, transparent 75%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.18;
  animation: orb-float 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle at 30% 30%, #93c5fd 0%, transparent 70%);
  top: -120px; left: -80px;
}

.orb-2 {
  width: 560px; height: 560px;
  background: radial-gradient(circle at 70% 70%, #c7d2fe 0%, transparent 70%);
  top: 20%; right: -160px;
  animation-delay: -7s;
  opacity: 0.16;
}

@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.05); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
}

.hl {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

.muted { color: var(--ink-faint); font-size: 0.9rem; }

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.18rem;
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.accent { color: var(--accent); }

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hi);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hi);
}

/* ========== STACK FLOW ========== */

.stack {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 60px;
  flex-wrap: wrap;
  max-width: 920px;
}

.stack-step {
  flex: 1 1 180px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stack-step:hover {
  border-color: rgba(96, 165, 250, 0.45);
  transform: translateY(-2px);
}

.stack-step.accent-step {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(96, 165, 250, 0.06));
  border-color: rgba(96, 165, 250, 0.5);
}

.stack-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.stack-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.stack-detail {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.stack-arrow {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 600;
  user-select: none;
}

@media (max-width: 720px) {
  .stack-arrow {
    transform: rotate(90deg);
    margin: -4px 0;
  }
  .stack-step { flex-basis: 100%; }
}

/* ========== STRIVE STRIP ========== */

.strive {
  background: var(--bg);
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.strive-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.strive-strip li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.strive-key {
  color: var(--ink);
  font-weight: 600;
}

/* ========== SECTIONS ========== */

.section {
  padding: 90px 0;
  border-top: 1px solid var(--rule);
}

.section-alt {
  background: var(--bg-alt);
}

.section-eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 680px;
  margin-bottom: 50px;
  line-height: 1.7;
}

/* ========== CARD GRID ========== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 60px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-2px);
}

.card h3 {
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.card li:last-child { border-bottom: none; }
.card li strong { color: var(--ink); font-weight: 600; }

/* ========== SPEC TABLE ========== */

.product-variants {
  margin-top: 40px;
}

.product-variants h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.93rem;
}

.spec-table th, .spec-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.spec-table th {
  background: rgba(96, 165, 250, 0.06);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-table tbody tr:last-child td { border-bottom: none; }

.spec-table td:first-child { font-weight: 600; color: var(--ink); }

@media (max-width: 640px) {
  .spec-table { font-size: 0.84rem; }
  .spec-table th, .spec-table td { padding: 10px 12px; }
}

/* ========== TECH BLOCKS ========== */

.tech-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}

.tech-block:first-of-type { border-top: none; }

.tech-block.reverse .tech-text { order: 2; }
.tech-block.reverse .tech-figure { order: 1; }

@media (max-width: 800px) {
  .tech-block { grid-template-columns: 1fr; gap: 24px; }
  .tech-block.reverse .tech-text,
  .tech-block.reverse .tech-figure { order: initial; }
}

.tech-text h3 {
  color: var(--ink);
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.tech-text p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.tech-meta {
  color: var(--accent) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  margin-top: 12px !important;
}

.tech-figure {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 22px;
  overflow-x: auto;
}

.diagram {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  white-space: pre;
}

/* ========== PAPERS ========== */

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

.paper {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s ease;
}

.paper:hover { border-color: rgba(96, 165, 250, 0.4); }

.paper-venue {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(96, 165, 250, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.paper h3 {
  color: var(--ink);
  font-size: 1.02rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.paper p {
  color: var(--ink-soft);
  font-size: 0.91rem;
  margin: 0;
  line-height: 1.6;
}

/* ========== OPEN ROLES ========== */

.role-group-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 40px 0 18px;
  font-weight: 600;
}

.role-group-heading:first-of-type {
  margin-top: 12px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.role {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.role:hover {
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-2px);
}

.role header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.role-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.tag-exec { background: rgba(29, 78, 216, 0.10); color: var(--accent); }
.tag-dir  { background: rgba(29, 78, 216, 0.06); color: var(--accent); }
.tag-ic   { background: #f1f3f7; color: var(--ink-soft); }

.role h4 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.role-summary {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
  font-style: italic;
}

.role > p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin: 0 0 14px;
  line-height: 1.6;
}

.role ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.role li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 7px 0;
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
  border-bottom: 1px solid var(--rule);
}

.role li:last-child { border-bottom: none; }

.role li::before {
  content: '›';
  color: var(--accent);
  position: absolute;
  left: 4px;
  font-weight: 700;
}

.role li strong { color: var(--ink); font-weight: 600; }

.apply-note {
  margin-top: 24px;
  font-size: 0.92rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ========== CONTACT ========== */

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

.contact-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.contact-value {
  color: var(--accent-hi);
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 500;
}

/* ========== FOOTER ========== */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
  background: var(--bg-alt);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand .brand-mark { font-size: 1.1rem; }
.footer-brand .brand-tag { font-size: 0.9rem; }
.footer-tag {
  margin: 8px 0 0;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

.footer-meta {
  text-align: right;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.footer-meta p { margin: 4px 0; }

@media (max-width: 600px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}
