:root {
  --bg: #071019;
  --bg-2: #0b1624;
  --panel: rgba(14, 25, 39, 0.72);
  --panel-2: rgba(10, 19, 31, 0.86);
  --panel-3: rgba(12, 22, 35, 0.95);
  --border: rgba(62, 104, 155, 0.28);
  --border-strong: rgba(84, 138, 210, 0.42);
  --accent: #d9d9d9;
  --text: #e8eef6;
  --muted: #9fb2c7;
  --gold: #caa400;
  --blue: #2b7cff;
  --blue-2: #1c5fe0;
  --green-box: #12933c;
  --warning-box: #d4aa00;
  --danger: #ff5d5d;
  --glow: rgba(43, 124, 255, 0.20);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(43, 124, 255, 0.14), transparent 24%),
    radial-gradient(circle at 20% 0%, rgba(10, 70, 160, 0.10), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(92vw, 1100px);
  margin: 0 auto;
}

/* Header */
.site-header {
  padding: 2.2rem 0 0;
}

.header-wrap {
  width: min(92vw, 1200px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.nav-shell {
  width: fit-content;
  margin: 0 auto;
  background: rgba(14, 25, 39, 0.78);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.45rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(43, 124, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 14px);
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: #dbe8f6;
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 700;
  padding: 0.62rem 1.2rem;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(43,124,255,0.26), rgba(28,95,224,0.16));
  border: 1px solid rgba(76, 143, 255, 0.22);
  box-shadow:
    0 8px 18px rgba(43, 124, 255, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.brand-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.brand-logo {
  height: clamp(52px, 5vw, 82px);
  width: auto;
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
  filter:
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.08))
    drop-shadow(0 0 24px rgba(43, 124, 255, 0.10));
}

/* Section / Cards */
.section {
  padding: 0rem 0 clamp(22px, 3vw, 40px);
}

.glass-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(16px, 1.9vw, 24px);
  margin: 18px 0;
  backdrop-filter: blur(10px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.hero-card {
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22),
    0 0 30px rgba(43, 124, 255, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.section-card-title {
  font-size: 1.17em;
  font-weight: bold;
  margin: 0 0 1em 0;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Upload */
.upload-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: white;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-size: clamp(14px, 1.1vw, 16px);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.22s ease;
  box-shadow:
    0 8px 18px rgba(24, 95, 224, 0.22),
    0 0 18px rgba(43, 124, 255, 0.10);
}

.upload-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(24, 95, 224, 0.28),
    0 0 24px rgba(43, 124, 255, 0.16);
}

.upload-btn i {
  font-size: 15px;
}

.upload-btn input {
  display: none;
}

.muted {
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 15px);
}

.paste-hint {
  margin-top: 10px;
}

/* Preview */
.preview-frame {
  width: 100%;
  max-width: 100%;
  height: clamp(260px, 32vw, 420px);
  border: 1px solid rgba(70, 108, 156, 0.28);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(4, 11, 19, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Result */
.result-title {
  font-size: 1.17em;
  font-weight: bold;
  margin: 0 0 1em 0;
}

.result-box {
  border: 1px solid rgba(212, 170, 0, 0.95);
  border-radius: 18px;
  padding: 12px;
  margin-top: 12px;
  background: rgba(16, 25, 35, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.02),
    0 0 0 1px rgba(212,170,0,0.06);
}

.option-card {
  border: 1px solid rgba(65, 104, 150, 0.38);
  border-radius: 14px;
  padding: 14px;
  margin-top: 0;
  background: rgba(8, 17, 27, 0.86);
  text-align: center;
}

.primary-result {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
  color: #bcd2ee;
}

.primary-sub {
  color: #c9d7ea;
  font-size: clamp(16px, 1.2vw, 20px);
  text-align: center;
}

.reference-image-box {
  margin-top: 14px;
  text-align: center;
}

.reference-image-frame {
  width: min(24vw, 305px);
  min-width: 220px;
  aspect-ratio: 0.72 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gold);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 10px;
}

.reference-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* Tips */
.tip-box {
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  background: rgba(11, 20, 31, 0.88);
  color: #d6e4f5;
  line-height: 1.7;
  font-size: clamp(14px, 1.1vw, 16px);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.warning-box {
  border: 1px solid rgba(212, 170, 0, 0.55);
}

.success-box {
  border: 1px solid rgba(18, 147, 60, 0.55);
}

.tip-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-size: 14px;
}

.tip-icon.warning {
  background: var(--warning-box);
  color: #111;
}

.tip-icon.success {
  background: var(--green-box);
  color: #fff;
}

.tip-text {
  flex: 1;
}

.error-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4f6fb;
}

.error-row i {
  color: var(--danger);
  font-size: 18px;
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(70, 108, 156, 0.28);
  background: rgba(7, 16, 25, 0.85);
  margin: 6px 6px 0 0;
  font-size: 13px;
}

/* Home/About helpers */
.hero-title {
  font-size: clamp(34px, 4vw, 26px);
  margin: 0 0 12px 0;
  color: #e7f0ff;
}

.hero-text {
  color: var(--text);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.4;
  max-width: 760px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-box {
  background: rgba(11, 20, 31, 0.82);
  border: 1px solid rgba(62, 104, 155, 0.24);
  border-radius: 16px;
  padding: 18px;
}

.info-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.info-box p,
.info-box li {
  color: var(--text);
  line-height: 1.8;
}


/* Footer */
.site-footer {
  margin-top: 48px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(7, 16, 28, 0.72), rgba(11, 15, 20, 0.92));
  border-top: 1px solid rgba(75, 130, 220, 0.18);
  backdrop-filter: blur(10px);
  box-shadow:
    0 -10px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  width: min(60vw, 520px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(43, 124, 255, 0),
    rgba(43, 124, 255, 0.55),
    rgba(43, 124, 255, 0)
  );
  pointer-events: none;
}

.footer-inner {
  padding: clamp(22px, 2.6vw, 34px) 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: clamp(32px, 3vw, 44px);
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.05));
}

.footer-brand {
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 700;
  color: #e7f0ff;
  text-shadow: 0 0 12px rgba(43, 124, 255, 0.12);
}

.footer-text {
  color: #9fb2c7;
  font-size: clamp(13px, 1vw, 15px);
}

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

.footer-links a {
  color: #dbe8f6;
  font-weight: 600;
  padding: 0.32rem 0.74rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.22s ease;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(43, 124, 255, 0.10);
  border-color: rgba(76, 143, 255, 0.18);
  box-shadow: 0 0 16px rgba(43, 124, 255, 0.10);
}

@media (max-width: 768px) {
  .nav-shell {
    width: fit-content;
    max-width: 92vw;
    padding: 10px 12px;
  }

  .site-header {
    padding-top: 2.4rem;
  }

  .brand-anchor {
    margin-top: 0.55rem;
  }

  .brand-logo {
    height: 58px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .reference-image-frame {
    width: min(68vw, 300px);
    min-width: 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* HERO FLEX */
.hero-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.hero-text-block {
  max-width: 600px;
}

.hero-logo img {
  width: clamp(120px, 12vw, 180px);
  opacity: 0.9;
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.team-card {
  display: flex;
  gap: 18px;
  align-items: center;
}

.team-img {
  width: 260px;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-content {
  flex: 1;
}

.team-name {
  font-size: 20px;
  font-weight: 700;
}

.team-role {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.team-desc {
  font-size: 14px;
  line-height: 1.6;
}

/* PARTNER */

.partner-title {
  font-size: clamp(34px, 4vw, 26px);
    margin: 0 0 12px 0;
}

.partner-text {
  color: var(--text);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.4;
  max-width: 760px;
}

.partner-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.partner-logo img {
  width: clamp(120px, 12vw, 180px);
  opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .hero-flex {
    flex-direction: column;
    text-align: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-direction: column;
    text-align: center;
  }

  .partner-card {
    flex-direction: column;
    text-align: center;
  }
}