/* ============================================================
   TScientific Co., Ltd. — Template 3
   Color Palette: Deep Navy #0B1D3A, Teal #00C9A7, White, Light #F0F4F8
   Fonts: Noto Sans KR (headings), Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0B1D3A;
  --primary-light: #15294A;
  --accent: #00C9A7;
  --accent-dark: #00A88D;
  --accent-light: #E6FAF6;
  --white: #FFFFFF;
  --light: #F0F4F8;
  --gray-100: #F7F8FA;
  --gray-200: #E8ECF1;
  --gray-300: #C8CDD5;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --font-heading: 'Noto Sans KR', sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.02);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.02);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }

/* ========== NAVBAR ========== */
.navbar {
  background: rgba(11, 29, 58, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white) !important;
  letter-spacing: -0.01em;
}

.navbar .navbar-brand span {
  color: var(--accent);
}

.navbar .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  font-size: 0.925rem;
  padding: 8px 18px !important;
  transition: var(--transition);
  border-radius: 6px;
  margin: 0 2px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,0.1);
}

.navbar .nav-link.cta-nav {
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 8px 24px !important;
  margin-left: 12px;
}

.navbar .nav-link.cta-nav:hover {
  background: var(--accent-dark) !important;
  color: var(--white) !important;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== HERO ========== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,29,58,0.92) 0%, rgba(11,29,58,0.78) 50%, rgba(0,201,167,0.15) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

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

.hero-section .hero-badge {
  display: inline-block;
  background: rgba(0,201,167,0.15);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(0,201,167,0.3);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-section h1 span {
  color: var(--accent);
}

.hero-section .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-section .btn-hero-primary {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  border: none;
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.hero-section .btn-hero-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,201,167,0.25);
}

.hero-section .btn-hero-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-weight: 600;
  padding: 13px 35px;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
  background: transparent;
}

.hero-section .btn-hero-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.hero-stat p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin: 0;
}

/* ========== SECTION COMMON ========== */
.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========== PRODUCT CARDS ========== */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}

.product-card:hover::before {
  height: 100%;
}

.product-card .icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--accent);
}

.product-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.product-card .badge-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 12px;
}

/* ========== STATS SECTION ========== */
.stats-section {
  background: var(--primary);
  padding: 80px 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-item h3 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-item p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin: 0;
}

/* ========== SOLUTION CARDS ========== */
.solution-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
}

.solution-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.solution-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.solution-card .card-body {
  padding: 28px 24px;
}

.solution-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.solution-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ========== TRUST SECTION ========== */
.trust-section {
  background: var(--gray-100);
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 60px;
}

.trust-item {
  text-align: center;
  padding: 20px;
  opacity: 0.7;
  transition: var(--transition);
}

.trust-item:hover {
  opacity: 1;
}

.trust-item .trust-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.trust-item h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.trust-item small {
  color: var(--gray-500);
  font-size: 0.8rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(0,201,167,0.06);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-section .btn-cta {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 1.05rem;
  border: none;
  transition: var(--transition);
}

.cta-section .btn-cta:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,201,167,0.3);
}

.cta-section .btn-cta-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-weight: 600;
  padding: 13px 39px;
  border-radius: 50px;
  font-size: 1.05rem;
  background: transparent;
  transition: var(--transition);
}

.cta-section .btn-cta-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ========== CONTACT SECTION ========== */
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-info-item .ci-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
}

.contact-info-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.contact-form-card .form-control {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form-card .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,201,167,0.1);
}

.contact-form-card .btn-submit {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form-card .btn-submit:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 32px;
}

.footer h5 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer p, .footer li {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

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

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

.footer ul li {
  margin-bottom: 8px;
}

.footer .footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}

.footer .footer-brand span {
  color: var(--accent);
}

.footer .footer-bottom {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer .footer-bottom a {
  color: rgba(255,255,255,0.5);
  margin-left: 20px;
}

.footer .footer-bottom a:hover {
  color: var(--accent);
}

/* ========== PAGE HEADER (sub pages) ========== */
.page-header {
  background: var(--primary);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(0,201,167,0.06);
  pointer-events: none;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-header p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ========== ABOUT PAGE ========== */
.about-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  border-radius: var(--radius);
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  z-index: -1;
  opacity: 0.3;
}

/* ========== TEAM CARDS ========== */
.team-card {
  text-align: center;
  padding: 20px;
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--accent-light);
}

.team-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card small {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
}

/* ========== COOKIE CONSENT ========== */
.cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  padding: 24px;
  z-index: 9999;
  border: 1px solid var(--gray-200);
  font-size: 0.875rem;
  display: none;
}

.cookie-consent.show {
  display: block;
}

.cookie-consent p {
  margin-bottom: 16px;
  color: var(--gray-700);
  line-height: 1.6;
}

.cookie-consent .cookie-btns {
  display: flex;
  gap: 10px;
}

.cookie-consent .btn-cookie-accept {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-consent .btn-cookie-accept:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.cookie-consent .btn-cookie-reject {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--gray-200);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-consent .btn-cookie-reject:hover {
  background: var(--gray-100);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
  .hero-section h1 { font-size: 2.4rem; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .section-padding { padding: 64px 0; }
  .section-header h2 { font-size: 1.9rem; }
  .page-header h1 { font-size: 2rem; }
  .page-header { padding: 120px 0 60px; }
  .navbar .nav-link.cta-nav { margin-left: 0; margin-top: 8px; text-align: center; }
  .navbar-collapse { background: rgba(11,29,58,0.98); border-radius: var(--radius-sm); padding: 16px; margin-top: 8px; }
}

@media (max-width: 575.98px) {
  .hero-section h1 { font-size: 1.8rem; }
  .hero-section .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 20px; }
  .hero-stat h3 { font-size: 1.5rem; }
  .section-header h2 { font-size: 1.6rem; }
  .stat-item h3 { font-size: 2rem; }
  .cta-section h2 { font-size: 1.7rem; }
  .footer .footer-bottom { flex-direction: column; text-align: center; }
}
