/* Everdot Official Website Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

:root {
  /* Color Palette - Dark Cyber Tech Theme */
  --bg-dark: #090d16;
  --bg-card: rgba(18, 26, 43, 0.7);
  --bg-card-hover: rgba(28, 40, 65, 0.85);
  --bg-nav: rgba(9, 13, 22, 0.85);
  
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.3);
  
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-text: linear-gradient(135deg, #60a5fa 0%, #c084fc 50%, #38bdf8 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 70%);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.25);
  
  --font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Atmosphere Glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 600px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-logo .logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.brand-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Layout Containers */
.main-wrapper {
  flex: 1;
  margin-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Typography & Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.page-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-title {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* Cards & Glassmorphism */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

/* App Grid Section */
.section-header {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.app-meta h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.app-meta span {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.app-desc {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Legal & Policy Page Content Styling */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--accent-blue);
  border-radius: 2px;
}

.legal-section p {
  color: var(--text-sub);
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.legal-section li {
  color: var(--text-sub);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.legal-section li::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  color: var(--accent-blue);
  font-weight: bold;
}

/* Legal Table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.legal-table th, .legal-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.legal-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-weight: 600;
  width: 30%;
}

.legal-table td {
  color: var(--text-sub);
}

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(10, 15, 26, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* App Detail Page Showcase */
.hero-app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}

.hero-app-info h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-app-media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mockup-img {
  max-width: 320px;
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.mockup-img:hover {
  transform: scale(1.02) rotate(-1deg);
}

/* PWA Phone UI Mockup Container */
.pwa-phone-container {
  width: 100%;
  max-width: 330px;
  background: #111827;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(59, 130, 246, 0.25);
  border: 4px solid rgba(255, 255, 255, 0.15);
  position: relative;
  transition: var(--transition);
}

.pwa-phone-container:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(59, 130, 246, 0.4);
}

.pwa-phone-screen {
  background: radial-gradient(120% 80% at 50% -10%, #f7efe4 0%, rgba(247, 239, 228, 0) 60%),
              linear-gradient(180deg, #eaf0f5 0%, #edf1f4 100%);
  border-radius: 32px;
  padding: 18px 14px 20px 14px;
  color: #1b2430;
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* Camera Punch Hole */
.pwa-phone-screen::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #090d14;
  border-radius: 12px;
  z-index: 10;
}

.pwa-screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.pwa-place-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #1b2430;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid #dfe4ea;
  box-shadow: 0 2px 6px rgba(27, 36, 48, 0.04);
}

.pwa-date-tag {
  font-size: 11px;
  font-weight: 600;
  color: #1b2430;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #dfe4ea;
}

/* Main Cards Grid */
.pwa-board-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pwa-verdict-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(27, 36, 48, 0.06);
  border: 1px solid #edf1f5;
}

.pwa-verdict-icon {
  font-size: 24px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-verdict-icon.dry { background: rgba(63, 143, 91, 0.1); color: #3f8f5b; }
.pwa-verdict-icon.rain { background: rgba(47, 111, 143, 0.1); color: #2f6f8f; }
.pwa-verdict-icon.hot { background: rgba(212, 96, 46, 0.1); color: #d4602e; }

.pwa-verdict-info {
  display: flex;
  flex-direction: column;
}

.pwa-verdict-label {
  font-size: 10px;
  color: #5c6672;
  font-weight: 500;
}

.pwa-verdict-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #1b2430;
  margin-top: 1px;
}

/* Hourly Timeline */
.pwa-timeline-box {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #dfe4ea;
}

.pwa-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #5c6672;
}

.pwa-timeline-item.active {
  font-weight: 700;
  color: #1b2430;
  background: #ffffff;
  padding: 4px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.pwa-timeline-item .ico { font-size: 14px; }
.pwa-timeline-item .temp { font-size: 11px; font-weight: 600; }

/* GPS & Settings Mock */
.pwa-gps-btn {
  background: #1b2430;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  padding: 9px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(27, 36, 48, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pwa-settings-bar {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 10.5px;
  color: #5c6672;
  display: flex;
  justify-content: space-between;
  border: 1px solid #dfe4ea;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 1.75rem;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: rgba(5, 8, 14, 0.95);
  border-top: 1px solid var(--border-light);
  padding: 3rem 0 2rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  max-width: 300px;
}

.footer-nav {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-nav-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-nav-col ul {
  list-style: none;
}

.footer-nav-col li {
  margin-bottom: 0.5rem;
}

.footer-nav-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 868px) {
  .hero-app {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-app-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    gap: 1rem;
  }

  .page-title {
    font-size: 2.1rem;
  }
  
  .legal-table th, .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }

  .footer-top {
    flex-direction: column;
  }
}
