/* ═════════════════════════════════════════════════════════════════
   PC-Logon Web Portal Style Sheet
   Modern, Clean, Accessible & Fully Responsive
   ═════════════════════════════════════════════════════════════════ */

:root {
  /* Color Palette - Light */
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-pill: rgba(15, 23, 42, 0.05);
  --bg-header: rgba(255, 255, 255, 0.8);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-subtle: rgba(226, 232, 240, 0.9);
  --border-card: rgba(226, 232, 240, 0.8);
  --border-card-hover: rgba(59, 130, 246, 0.4);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 8px 12px -6px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 30px -8px rgba(14, 165, 233, 0.15), 0 10px 14px -5px rgba(0, 0, 0, 0.06);

  /* Accents */
  --primary-blue: #0284c7;
  --primary-blue-hover: #0369a1;
  --accent-gps: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --accent-sgenv: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  --accent-bmac: #f59e0b;
  --accent-bmac-hover: #d97706;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
html.dark {
  --bg-main: #090d16;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-pill: rgba(255, 255, 255, 0.07);
  --bg-header: rgba(9, 13, 22, 0.8);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-subtle: rgba(30, 41, 59, 0.8);
  --border-card: rgba(51, 65, 85, 0.6);
  --border-card-hover: rgba(56, 189, 248, 0.5);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 10px 0 rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 35px -8px rgba(14, 165, 233, 0.25);
}

/* ════ Base & Reset ════ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Animated Ambient Glow in Background */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

html.dark body::before {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ════ Header ════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.12);
  color: var(--primary-blue);
  border: 1px solid rgba(14, 165, 233, 0.25);
  margin-left: 4px;
}

html.dark .brand-badge {
  color: #38bdf8;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Control Buttons */
.control-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.control-btn:hover {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-blue);
  border-color: rgba(14, 165, 233, 0.3);
}

html.dark .control-btn:hover {
  color: #38bdf8;
}

/* ════ Hero Section ════ */
.hero {
  padding: 56px 0 36px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.1rem;
  }
}

.hero-gradient-text {
  background: linear-gradient(135deg, #0284c7 20%, #6366f1 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ════ App Cards Section ════ */
.apps-section {
  padding: 10px 0 50px;
  flex: 1;
}

.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 820px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* Card Styling */
.app-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card.card-gps::before {
  background: var(--accent-gps);
}

.app-card.card-sgenv::before {
  background: var(--accent-sgenv);
}

.app-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-hover);
}

.app-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-pill);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html.dark .card-icon-wrapper {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
  transition: transform 0.25s ease;
}

.app-card:hover .card-app-icon {
  transform: scale(1.04);
}

.card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.platform-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-ios {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

html.dark .badge-ios {
  background: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.3);
}

.badge-web {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

html.dark .badge-web {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.3);
}

.tag-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-body {
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

/* Feature tags list */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-item {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-pill);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Card Action Footer */
.card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.card-gps .btn-launch {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.card-gps:hover .btn-launch {
  background: #0369a1;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.card-sgenv .btn-launch {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

.card-sgenv:hover .btn-launch {
  background: #0284c7;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-launch svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.app-card:hover .btn-launch svg {
  transform: translate(2px, -2px);
}

/* ════ Support & Coffee Banner ════ */
.support-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(234, 88, 12, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 680px) {
  .support-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.support-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.support-icon {
  font-size: 28px;
  line-height: 1;
}

.support-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.support-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.btn-bmac {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--accent-bmac);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
  transition: var(--transition-smooth);
}

.btn-bmac:hover {
  background: var(--accent-bmac-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* ════ Google AdSense Section ════ */
.adsense-section {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.adsense-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}

.adsense-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.adsense-support-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-bmac-hover);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

html.dark .adsense-support-link {
  color: #fbbf24;
}

.adsense-support-link:hover {
  text-decoration: underline;
}

.adsense-slot-container {
  min-height: 90px;
  background: var(--bg-pill);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 8px;
}

/* ════ Footer ════ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 32px 0 36px;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}
